Esempio n. 1
0
 public void SetVideoEncoderConfigOptions(Media.VideoEncoderConfigurationOptions options)
 {
     BeginInvoke(new Action(() =>
     {
         cmbVideoCodec.Items.Clear();
         if (options.JPEG != null)
         {
             cmbVideoCodec.Items.Add(new VideoCodecWrapper {
                 Jpeg = options.JPEG
             });
         }
         if (options.MPEG4 != null)
         {
             cmbVideoCodec.Items.Add(new VideoCodecWrapper {
                 Mpeg4 = options.MPEG4
             });
         }
         if (options.H264 != null)
         {
             cmbVideoCodec.Items.Add(new VideoCodecWrapper {
                 H264 = options.H264
             });
         }
         if (cmbVideoCodec.Items.Count > 0)
         {
             cmbVideoCodec.SelectedIndex = 0;
         }
     }));
 }
Esempio n. 2
0
 /// <summary>
 /// Handles video encoder configuration options received event
 /// </summary>
 /// <param name="options">Received profiles</param>
 protected void OnVideoEncoderConfigOptionsReceived(Media.VideoEncoderConfigurationOptions options)
 {
     View.SetVideoEncoderConfigOptions(options);
 }