public int Count { get; } Public ReadOnly Property Count As Integer public:property int Count {int get();}
An integer value indicating the total count of audio types.
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;}}
Imports LeadtoolsImports Leadtools.MediaStreamingPublic _server As Server = NothingPublic _result As Boolean = FalsePublic Sub PrintAudioTypesExample()TryDim Count As Integer = 0Dim strAudioTypes As String = ""' create an instance of the server object_server = New Leadtools.MediaStreaming.Server()' retrieve a copy of the Live StreamsDim Streams As LiveStreams = _server.GetLiveStreams()' create live stream just to enumerate the audio typesDim stream As LiveStream = Streams.CreateLiveStream()'Get the Audio TypesDim AudioTypes As 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}) ---" & Constants.vbLf + Constants.vbLf, Count.ToString())Dim nIndex As Integer = 0For Each AudioType As AudioType In AudioTypesstrAudioTypes &= String.Format("AudioType[{0}]: {1}." & Constants.vbLf, nIndex.ToString(), AudioType.FriendlyName)If AudioType.Selected ThenstrAudioTypes += String.Format("AudioType[{0}]: is selected" & Constants.vbLf, nIndex.ToString())End IfnIndex += 1Next AudioType' display a message contains the AudioTypes information stringMessageBox.Show(strAudioTypes, "LEADTOOLS Media Streaming Examples", MessageBoxButtons.OK, MessageBoxIcon.Information)_result = TrueCatch e1 As Exception_result = FalseEnd TryEnd Sub
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
