Beispiel #1
0
 public void SetAudioEncoderConfigOptions(Media.AudioEncoderConfigurationOptions options)
 {
     BeginInvoke(new Action(() =>
     {
         cmbAudioCodec.Items.Clear();
         foreach (Media.AudioEncoderConfigurationOption option in options.Options)
         {
             cmbAudioCodec.Items.Add(option);
         }
         if (cmbAudioCodec.Items.Count > 0)
         {
             cmbAudioCodec.SelectedIndex = 0;
         }
     }));
 }
Beispiel #2
0
 /// <summary>
 /// Handles audio encoder configuration options received event
 /// </summary>
 /// <param name="options">Received profiles</param>
 protected void OnAudioEncoderConfigOptionsReceived(Onvif.AudioEncoderConfigurationOptions options)
 {
     View.SetAudioEncoderConfigOptions(options);
 }