public bool Selected { get; set; }
True will select the audio type. If false, then the audio type will be deselected.
using Leadtools;using Leadtools.MediaStreaming;public Server _server = null;public bool _result = false;public void PrintAudioTypesExample(){try{int Count = 0;string strAudioTypes = "";// create an instance of the server object_server = new Leadtools.MediaStreaming.Server();// retrieve a copy of the Live StreamsLiveStreams Streams = _server.GetLiveStreams();// create live stream just to enumerate the audio typesLiveStream stream = Streams.CreateLiveStream();//Get the Audio TypesAudioTypes AudioTypes = stream.AudioTypes;//Get the Audio Types countCount = AudioTypes.Count;// print the stream audio types to a stringstrAudioTypes += string.Format("--- Live Stream Audio Types (count = {0}) ---\n\n", Count.ToString());int nIndex = 0;foreach (AudioType AudioType in AudioTypes){strAudioTypes += string.Format("AudioType[{0}]: {1}.\n", nIndex.ToString(), AudioType.FriendlyName);if (AudioType.Selected)strAudioTypes += string.Format("AudioType[{0}]: is selected\n", nIndex.ToString());nIndex++;}// display a message contains the AudioTypes information stringMessageBox.Show(strAudioTypes, "LEADTOOLS Media Streaming Examples", MessageBoxButtons.OK, MessageBoxIcon.Information);_result = true;}catch (Exception){_result = false;}}