/ fm / liveswitch / sdp / MediaType
Class: MediaType
liveswitch.sdp.MediaType
Defines valid SDP media types.
Table of contents
Constructors
Methods
Constructors
constructor
+ new MediaType(): MediaType
Returns: MediaType
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:9
fromStreamType
▸ Static
fromStreamType(streamType
: StreamType): string
Convert a StreamType enum to an SDP media type.
Parameters:
Name | Type | Description |
---|---|---|
streamType |
StreamType | The StreamType enum. |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:18
getApplication
▸ Static
getApplication(): string
Gets the SDP media type meaning "Application".
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:44
getAudio
▸ Static
getAudio(): string
Gets the SDP media type meaning "Audio".
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:56
getMessage
▸ Static
getMessage(): string
Gets the SDP media type meaning "Message".
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:68
getText
▸ Static
getText(): string
Gets the SDP media type meaning "Text".
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:80
getVideo
▸ Static
getVideo(): string
Gets the SDP media type meaning "Video".
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:92
toStreamType
▸ Static
toStreamType(mediaType
: string): StreamType
Converts an SDP media type to a StreamType enum.
Parameters:
Name | Type | Description |
---|---|---|
mediaType |
string | The SDP media type. |
Returns: StreamType
Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:105