FriendlyName Property (AudioType)

Summary
Retrieves the audio type's descriptive name.
Syntax
C#
C++/CLI
public string FriendlyName { get; } 
public: 
property String^ FriendlyName { 
   String^ get(); 
} 

Property Value

A string that receives the audio type's friendly name.

Example
C#
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 Streams 
      LiveStreams Streams = _server.GetLiveStreams(); 
 
      // create live stream just to enumerate the audio types 
      LiveStream stream = Streams.CreateLiveStream(); 
 
      //Get the Audio Types  
      AudioTypes AudioTypes = stream.AudioTypes; 
 
      //Get the Audio Types count 
      Count = AudioTypes.Count; 
 
      // print the stream audio types to a string 
 
      strAudioTypes += 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 string 
      MessageBox.Show(strAudioTypes, "LEADTOOLS Media Streaming Examples", MessageBoxButtons.OK, MessageBoxIcon.Information); 
 
      _result = true; 
   } 
   catch (Exception) 
   { 
      _result = false; 
   } 
} 
Requirements

Target Platforms

See Also

Reference

AudioType Class

AudioType Members

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MediaStreaming Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.