Search Results for

    / fm / liveswitch / sdp / MediaType

    Class: MediaType

    liveswitch.sdp.MediaType

    Defines valid SDP media types.

    Table of contents

    Constructors

    • constructor

    Methods

    • getTypeString
    • fromStreamType
    • getApplication
    • getAudio
    • getMessage
    • getText
    • getVideo
    • toStreamType

    Constructors

    constructor

    + new MediaType(): MediaType

    Returns: MediaType

    Methods

    getTypeString

    ▸ getTypeString(): string

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:9


    fromStreamType

    ▸ StaticfromStreamType(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

    ▸ StaticgetApplication(): string

    Gets the SDP media type meaning "Application".

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:44


    getAudio

    ▸ StaticgetAudio(): string

    Gets the SDP media type meaning "Audio".

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:56


    getMessage

    ▸ StaticgetMessage(): string

    Gets the SDP media type meaning "Message".

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:68


    getText

    ▸ StaticgetText(): string

    Gets the SDP media type meaning "Text".

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:80


    getVideo

    ▸ StaticgetVideo(): string

    Gets the SDP media type meaning "Video".

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/sdp/MediaType.ts:92


    toStreamType

    ▸ StatictoStreamType(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

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0