Class Media
An SDP media description with a transport protocol of "RTP/AVP" or "RTP/SAVP".
Inherited Members
Namespace: FM.LiveSwitch.Sdp.Rtp
Assembly: FM.LiveSwitch.dll
Syntax
public class Media : Media
Constructors
Media(String, Int32, String, Int32[])
Initializes a new instance of the Media class.
Declaration
public Media(string mediaType, int transportPort, string transportProtocol, int[] rtpPayloadTypeNumbers)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaType | The media type. See MediaType for possible values. |
System.Int32 | transportPort | The transport port. |
System.String | transportProtocol | The transport protocol. |
System.Int32[] | rtpPayloadTypeNumbers | The RTP payload type numbers. |
Properties
RtpAvpfTransportProtocol
Gets the protocol keyword for the extended RTP audio/video profile.
Declaration
public static string RtpAvpfTransportProtocol { get; }
Property Value
Type | Description |
---|---|
System.String |
RtpAvpTransportProtocol
Gets the protocol keyword for the RTP audio/video profile.
Declaration
public static string RtpAvpTransportProtocol { get; }
Property Value
Type | Description |
---|---|
System.String |
RtpSavpfTransportProtocol
Gets the protocol keyword for the extended Secure RTP audio/video profile.
Declaration
public static string RtpSavpfTransportProtocol { get; }
Property Value
Type | Description |
---|---|
System.String |
RtpSavpTransportProtocol
Gets the protocol keyword for the Secure RTP audio/video profile.
Declaration
public static string RtpSavpTransportProtocol { get; }
Property Value
Type | Description |
---|---|
System.String |
UdpTlsRtpSavpfTransportProtocol
Gets the protocol keyword for the extended Secure RTP audio/video profile with DTLS key exchange.
Declaration
public static string UdpTlsRtpSavpfTransportProtocol { get; }
Property Value
Type | Description |
---|---|
System.String |
UdpTlsRtpSavpTransportProtocol
Gets the protocol keyword for the Secure RTP audio/video profile with DTLS key exchange.
Declaration
public static string UdpTlsRtpSavpTransportProtocol { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GenerateRtpProfile(StreamType, Boolean, Boolean, Boolean)
Generates Rtp Prfile for a given combination of stream type, whjether or not RTCP-based feedback is supported, whether (D)TLS is in use and whether encryption is in use in general.
Declaration
public static string GenerateRtpProfile(StreamType type, bool rtcpFeedbackSupported, bool useDtls, bool useEncryption)
Parameters
Type | Name | Description |
---|---|---|
StreamType | type | Stream type. |
System.Boolean | rtcpFeedbackSupported | Indicates whether Rtcp-based feedback is supported. |
System.Boolean | useDtls | Indicates whether (D)TLS is in use. |
System.Boolean | useEncryption | Indicates whether encryption is in use. |
Returns
Type | Description |
---|---|
System.String |
GetPayloadTypes(String)
Gets the payload types.
Declaration
public static int[] GetPayloadTypes(string formatDesciption)
Parameters
Type | Name | Description |
---|---|---|
System.String | formatDesciption | The media format desciption. |
Returns
Type | Description |
---|---|
System.Int32[] |
GetWellKnownPayloadClockRate(Int32)
Returns the clockrate of a well-known payload type.
Declaration
public static int GetWellKnownPayloadClockRate(int payloadType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | payloadType | The well-known payload type to get the clockrate of. |
Returns
Type | Description |
---|---|
System.Int32 |
GetWellKnownPayloadName(Int32)
Returns the name of a well-known payload type.
Declaration
public static string GetWellKnownPayloadName(int payloadType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | payloadType | The well-known payload type to get the name of. |
Returns
Type | Description |
---|---|
System.String |
SupportsEncryption(String)
Returns a value indicating whther a given protocol supports encryption.
Declaration
public static bool SupportsEncryption(string protocol)
Parameters
Type | Name | Description |
---|---|---|
System.String | protocol | Protocol keyword. |
Returns
Type | Description |
---|---|
System.Boolean | Value indicating whther a given protocol supports encryption. |
SupportsRtcpBasedFeedback(String)
Returns a value indicating whther a given protocol supports encryption.
Declaration
public static bool SupportsRtcpBasedFeedback(string protocol)
Parameters
Type | Name | Description |
---|---|---|
System.String | protocol | Protocol keyword. |
Returns
Type | Description |
---|---|
System.Boolean | Value indicating whther a given protocol supports encryption. |