Exemple #1
0
        private void okButton_Click(object sender, EventArgs e)
        {
            VideoCodec vid = new VideoCodec();

            vid.nCodec = Codec.NO_CODEC;

            if (info.videoFmt.picFourCC != FourCC.FOURCC_NONE)
            {
                vid.nCodec = Codec.WEBM_VP8_CODEC;
                vid.webm_vp8.nRcTargetBitrate = 0;
            }
            if (!ttclient.StartStreamingMediaFileToChannel(textBox1.Text,
                                                           vid))
            {
                MessageBox.Show("Failed to stream media file. Ensure media file can be played in WMP!");
            }
        }