Class MediaType
Defines valid SDP media types.
Inheritance
System.Object
    MediaType
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: FM.LiveSwitch.Sdp
Assembly: FM.LiveSwitch.dll
Syntax
public static class MediaType
  Properties
Application
Gets the SDP media type meaning "Application".
Declaration
public static string Application { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Audio
Gets the SDP media type meaning "Audio".
Declaration
public static string Audio { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Message
Gets the SDP media type meaning "Message".
Declaration
public static string Message { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Text
Gets the SDP media type meaning "Text".
Declaration
public static string Text { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Video
Gets the SDP media type meaning "Video".
Declaration
public static string Video { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Methods
FromStreamType(StreamType)
Convert a StreamType enum to an SDP media type.
Declaration
public static string FromStreamType(StreamType streamType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| StreamType | streamType | The StreamType enum.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | 
ToStreamType(String)
Converts an SDP media type to a StreamType enum.
Declaration
public static StreamType ToStreamType(string mediaType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | mediaType | The SDP media type.  | 
      
Returns
| Type | Description | 
|---|---|
| StreamType |