Search Results for

    / fm / liveswitch / ConnectionInfo

    Class: ConnectionInfo

    fm.liveswitch.ConnectionInfo

    Connection information.

    Hierarchy

    • Info

      ↳ ConnectionInfo

    Table of contents

    Constructors

    • constructor

    Methods

    • createClientInfo
    • deserializeProperties
    • fmliveswitchConnectionInfoInit
    • getApplicationId
    • getAudioDirection
    • getAudioFormats
    • getAudioStream
    • getAudioStreams
    • getChannelId
    • getClientId
    • getClientProtocol
    • getClientRoles
    • getClientTag
    • getDataDirection
    • getDataStream
    • getDeviceAlias
    • getDeviceId
    • getError
    • getExternalId
    • getHasAudio
    • getHasData
    • getHasVideo
    • getId
    • getIsSip
    • getLayoutPriority
    • getLayoutZone
    • getLocalAudioDisabled
    • getLocalAudioMuted
    • getLocalAudioUnmuteDisabled
    • getLocalVideoDisabled
    • getLocalVideoMuted
    • getLocalVideoUnmuteDisabled
    • getMediaId
    • getRecording
    • getRecordingTag
    • getRemoteAudioDisabled
    • getRemoteAudioMuted
    • getRemoteConnectionId
    • getRemoteMediaId
    • getRemoteVideoDisabled
    • getRemoteVideoMuted
    • getState
    • getTag
    • getTransports
    • getType
    • getTypeString
    • getUserAlias
    • getUserId
    • getVideoDirection
    • getVideoFormats
    • getVideoStream
    • getVideoStreams
    • isEquivalent
    • serializeProperties
    • setApplicationId
    • setAudioStream
    • setAudioStreams
    • setChannelId
    • setClientId
    • setClientProtocol
    • setClientRoles
    • setClientTag
    • setDataStream
    • setDeviceAlias
    • setDeviceId
    • setError
    • setExternalId
    • setId
    • setLayoutPriority
    • setLayoutZone
    • setMediaId
    • setRecording
    • setRecordingTag
    • setRemoteAudioMuted
    • setRemoteConnectionId
    • setRemoteMediaId
    • setRemoteVideoMuted
    • setState
    • setTag
    • setTransports
    • setType
    • setUserAlias
    • setUserId
    • setVideoStream
    • setVideoStreams
    • shouldSerializeAudioDirection
    • shouldSerializeAudioFormats
    • shouldSerializeDataDirection
    • shouldSerializeLocalAudioMuted
    • shouldSerializeLocalVideoMuted
    • shouldSerializeVideoDirection
    • shouldSerializeVideoFormats
    • toJson
    • fromJson
    • fromJsonArray
    • processArray
    • processBoolean
    • processBooleanArray
    • processDouble
    • processFloat
    • processFloatArray
    • processInteger
    • processIntegerArray
    • processLong
    • processLongArray
    • processObject
    • processShort
    • processShortArray
    • processString
    • toJson
    • toJsonArray

    Constructors

    constructor

    + new ConnectionInfo(): ConnectionInfo

    Initializes a new instance of the [[fm.liveswitch.connectionInfo]] class.

    Returns: ConnectionInfo

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:78

    + new ConnectionInfo(idValue: string, applicationId: string, channelId: string, userId: string, deviceId: string, clientId: string): ConnectionInfo

    Parameters:

    Name Type
    idValue string
    applicationId string
    channelId string
    userId string
    deviceId string
    clientId string

    Returns: ConnectionInfo

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:84

    + new ConnectionInfo(userId: string, deviceId: string, clientId: string, idValue: string, tag: string, type: string, mediaId: string, localAudioMuted: boolean, localVideoMuted: boolean, audioDirection: string, videoDirection: string, dataDirection: string, audioFormats: FormatInfo[], videoFormats: FormatInfo[]): ConnectionInfo

    Initializes a new instance of the [[fm.liveswitch.connectionInfo]] class.

    Parameters:

    Name Type Description
    userId string The user identifier.
    deviceId string The device identifier.
    clientId string The client identifier.
    idValue string The connection identifier.
    tag string The connection tag.
    type string The connection type.
    mediaId string The media identifier.
    localAudioMuted boolean The audio muted boolean.
    localVideoMuted boolean The video muted boolean.
    audioDirection string The audio direction.
    videoDirection string The video direction.
    dataDirection string The data direction.
    audioFormats FormatInfo[] The audio formats.
    videoFormats FormatInfo[] The video formats.

    Returns: ConnectionInfo

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:85

    + new ConnectionInfo(userId: string, userAlias: string, deviceId: string, deviceAlias: string, clientId: string, clientTag: string, clientRoles: string[], clientProtocol: string, idValue: string, tag: string, type: string, mediaId: string, localAudioMuted: boolean, localVideoMuted: boolean, audioDirection: string, videoDirection: string, dataDirection: string, audioFormats: FormatInfo[], videoFormats: FormatInfo[], layoutZone: string, layoutPriority: number): ConnectionInfo

    Initializes a new instance of the [[fm.liveswitch.connectionInfo]] class.

    Parameters:

    Name Type Description
    userId string The user identifier.
    userAlias string The user alias.
    deviceId string The device identifier.
    deviceAlias string The device alias.
    clientId string The client identifier.
    clientTag string The client tag.
    clientRoles string[] The client roles.
    clientProtocol string The client protocol.
    idValue string The connection identifier.
    tag string The connection tag.
    type string The connection type.
    mediaId string The media identifier.
    localAudioMuted boolean The audio muted boolean.
    localVideoMuted boolean The video muted boolean.
    audioDirection string The audio direction.
    videoDirection string The video direction.
    dataDirection string The data direction.
    audioFormats FormatInfo[] The audio formats.
    videoFormats FormatInfo[] The video formats.
    layoutZone string The layout zone.
    layoutPriority number The layout priority.

    Returns: ConnectionInfo

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:105

    Methods

    createClientInfo

    ▸ createClientInfo(): ClientInfo

    Creates a client info object with details from this connection info object.

    Returns: ClientInfo

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:348


    deserializeProperties

    ▸ ProtecteddeserializeProperties(key: string, valueJson: string): void

    Deserializes the properties.

    Parameters:

    Name Type Description
    key string The key.
    valueJson string The value in JSON format.

    Returns: void

    Overrides: Info

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:362


    fmliveswitchConnectionInfoInit

    ▸ PrivatefmliveswitchConnectionInfoInit(): void

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:72


    getApplicationId

    ▸ getApplicationId(): string

    Gets the application identifier.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:477


    getAudioDirection

    ▸ getAudioDirection(): string

    Gets the audio stream direction.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:489


    getAudioFormats

    ▸ getAudioFormats(): FormatInfo[]

    Gets the audio formats, if applicable.

    Returns: FormatInfo[]

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:505


    getAudioStream

    ▸ getAudioStream(): MediaStreamInfo

    Gets the first connection audio stream.

    Returns: MediaStreamInfo

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:553


    getAudioStreams

    ▸ getAudioStreams(): MediaStreamInfo[]

    Gets the connection audio streams.

    Returns: MediaStreamInfo[]

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:565


    getChannelId

    ▸ getChannelId(): string

    Gets the channel identifier.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:577


    getClientId

    ▸ getClientId(): string

    Gets the client identifier.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:589


    getClientProtocol

    ▸ getClientProtocol(): string

    Gets the client protocol.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:601


    getClientRoles

    ▸ getClientRoles(): string[]

    Gets the client roles.

    Returns: string[]

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:613


    getClientTag

    ▸ getClientTag(): string

    Gets the client tag.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:625


    getDataDirection

    ▸ getDataDirection(): string

    Gets the data stream direction. Obsolete.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:638


    getDataStream

    ▸ getDataStream(): DataStreamInfo

    Gets the connection data stream.

    Returns: DataStreamInfo

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:653


    getDeviceAlias

    ▸ getDeviceAlias(): string

    Gets the device alias.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:665


    getDeviceId

    ▸ getDeviceId(): string

    Gets the device identifier.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:677


    getError

    ▸ getError(): Error

    Gets the connection error, if an error exists.

    Returns: Error

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:689


    getExternalId

    ▸ getExternalId(): string

    Gets the connection external identifier.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:701


    getHasAudio

    ▸ getHasAudio(): boolean

    Gets a value indicating whether the connection has an audio stream.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:714


    getHasData

    ▸ getHasData(): boolean

    Gets a value indicating whether the connection has a data stream.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:727


    getHasVideo

    ▸ getHasVideo(): boolean

    Gets a value indicating whether the connection has a video stream.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:740


    getId

    ▸ getId(): string

    Gets the identifier.

    Returns: string

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:336


    getIsSip

    ▸ getIsSip(): boolean

    Gets whether the client is connected via SIP.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:752


    getLayoutPriority

    ▸ getLayoutPriority(): number

    Gets the layout priority.

    Returns: number

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:764


    getLayoutZone

    ▸ getLayoutZone(): string

    Gets the layout zone.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:776


    getLocalAudioDisabled

    ▸ getLocalAudioDisabled(): boolean

    Gets if local audio is disabled.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:788


    getLocalAudioMuted

    ▸ getLocalAudioMuted(): boolean

    Gets whether the local audio is muted. Returns true if the local audio is muted and false otherwise.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:804


    getLocalAudioUnmuteDisabled

    ▸ getLocalAudioUnmuteDisabled(): boolean

    Gets whether the local audio cannot be unmuted. Returns true if the local audio cannot be unmuted and false otherwise.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:820


    getLocalVideoDisabled

    ▸ getLocalVideoDisabled(): boolean

    Gets if local video is disabled.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:836


    getLocalVideoMuted

    ▸ getLocalVideoMuted(): boolean

    Gets whether the local video is muted. Returns true if the local video is muted and false otherwise.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:852


    getLocalVideoUnmuteDisabled

    ▸ getLocalVideoUnmuteDisabled(): boolean

    Gets whether the local video cannot be unmuted. Returns true if the local video cannot be unmuted and false otherwise.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:868


    getMediaId

    ▸ getMediaId(): string

    Gets the media identifier, for MCU or SFU upstream connections.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:884


    getRecording

    ▸ getRecording(): boolean

    Gets whether the connection is recording.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:896


    getRecordingTag

    ▸ getRecordingTag(): string

    Gets the connection recording tag.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:908


    getRemoteAudioDisabled

    ▸ getRemoteAudioDisabled(): boolean

    Gets if remote audio is disabled.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:920


    getRemoteAudioMuted

    ▸ getRemoteAudioMuted(): boolean

    Gets if remote audio is muted.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:936


    getRemoteConnectionId

    ▸ getRemoteConnectionId(): string

    Gets the remote connection identifier, for peer or SFU downstream connections.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:948


    getRemoteMediaId

    ▸ getRemoteMediaId(): string

    Gets the remote media identifier, for SFU downstream connections.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:960


    getRemoteVideoDisabled

    ▸ getRemoteVideoDisabled(): boolean

    Gets if remote video is disabled.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:972


    getRemoteVideoMuted

    ▸ getRemoteVideoMuted(): boolean

    Gets if remote video is muted.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:988


    getState

    ▸ getState(): string

    Gets the connection state.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1008


    getTag

    ▸ getTag(): string

    Gets the connection tag.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1020


    getTransports

    ▸ getTransports(): TransportInfo[]

    Gets the connection transport information. This will be null if BUNDLE is inactive.

    Returns: TransportInfo[]

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1033


    getType

    ▸ getType(): string

    Gets the connection type.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1045


    getTypeString

    ▸ getTypeString(): string

    Returns: string

    Overrides: Info

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:10


    getUserAlias

    ▸ getUserAlias(): string

    Gets the user alias.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1057


    getUserId

    ▸ getUserId(): string

    Gets the user identifier.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1069


    getVideoDirection

    ▸ getVideoDirection(): string

    Gets the video stream direction.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1081


    getVideoFormats

    ▸ getVideoFormats(): FormatInfo[]

    Gets the video formats, if applicable.

    Returns: FormatInfo[]

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1097


    getVideoStream

    ▸ getVideoStream(): MediaStreamInfo

    Gets the first connection video stream.

    Returns: MediaStreamInfo

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1145


    getVideoStreams

    ▸ getVideoStreams(): MediaStreamInfo[]

    Gets the connection video streams.

    Returns: MediaStreamInfo[]

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1157


    isEquivalent

    ▸ isEquivalent(connectionInfo: ConnectionInfo): boolean

    Tests for equivalency.

    Parameters:

    Name Type Description
    connectionInfo ConnectionInfo The connection information.

    Returns: boolean

    true if equivalent; otherwise, false.

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1194

    ▸ isEquivalent(userId: string, deviceId: string, clientId: string, idValue: string): boolean

    Tests for equivalency.

    Parameters:

    Name Type Description
    userId string The user identifier.
    deviceId string The device identifier.
    clientId string The client identifier.
    idValue string The connection identifier.

    Returns: boolean

    true if equivalent; otherwise, false.

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1206


    serializeProperties

    ▸ ProtectedserializeProperties(jsonObject: Hash<string, string>): void

    Serializes the properties.

    Parameters:

    Name Type Description
    jsonObject Hash<string, string> The JSON object.

    Returns: void

    Overrides: Info

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1302


    setApplicationId

    ▸ setApplicationId(value: string): void

    Sets the application identifier.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1415


    setAudioStream

    ▸ setAudioStream(value: MediaStreamInfo): void

    Sets the first connection audio stream.

    Parameters:

    Name Type
    value MediaStreamInfo

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1458


    setAudioStreams

    ▸ setAudioStreams(value: MediaStreamInfo[]): void

    Sets the connection audio streams.

    Parameters:

    Name Type
    value MediaStreamInfo[]

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1470


    setChannelId

    ▸ setChannelId(value: string): void

    Sets the channel identifier.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1482


    setClientId

    ▸ setClientId(value: string): void

    Sets the client identifier.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1494


    setClientProtocol

    ▸ setClientProtocol(value: string): void

    Sets the client protocol.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1506


    setClientRoles

    ▸ setClientRoles(value: string[]): void

    Sets the client roles.

    Parameters:

    Name Type
    value string[]

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1518


    setClientTag

    ▸ setClientTag(value: string): void

    Sets the client tag.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1530


    setDataStream

    ▸ setDataStream(value: DataStreamInfo): void

    Sets the connection data stream.

    Parameters:

    Name Type
    value DataStreamInfo

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1557


    setDeviceAlias

    ▸ setDeviceAlias(value: string): void

    Sets the device alias.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1569


    setDeviceId

    ▸ setDeviceId(value: string): void

    Sets the device identifier.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1581


    setError

    ▸ setError(value: Error): void

    Sets the connection error, if an error exists.

    Parameters:

    Name Type
    value Error

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1593


    setExternalId

    ▸ setExternalId(value: string): void

    Sets the connection external identifier.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1605


    setId

    ▸ setId(value: string): void

    Sets the identifier.

    Parameters:

    Name Type
    value string

    Returns: void

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:363


    setLayoutPriority

    ▸ setLayoutPriority(value: number): void

    Sets the layout priority.

    Parameters:

    Name Type
    value number

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1617


    setLayoutZone

    ▸ setLayoutZone(value: string): void

    Sets the layout zone.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1629


    setMediaId

    ▸ setMediaId(value: string): void

    Sets the media identifier, for MCU or SFU upstream connections.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1719


    setRecording

    ▸ setRecording(value: boolean): void

    Sets whether the connection is recording.

    Parameters:

    Name Type
    value boolean

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1731


    setRecordingTag

    ▸ setRecordingTag(value: string): void

    Sets the connection recording tag.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1743


    setRemoteAudioMuted

    ▸ setRemoteAudioMuted(value: boolean): void

    Sets if remote audio is muted.

    Parameters:

    Name Type
    value boolean

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1768


    setRemoteConnectionId

    ▸ setRemoteConnectionId(value: string): void

    Sets the remote connection identifier, for peer or SFU downstream connections.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1780


    setRemoteMediaId

    ▸ setRemoteMediaId(value: string): void

    Sets the remote media identifier, for SFU downstream connections.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1792


    setRemoteVideoMuted

    ▸ setRemoteVideoMuted(value: boolean): void

    Sets if remote video is muted.

    Parameters:

    Name Type
    value boolean

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1817


    setState

    ▸ setState(value: string): void

    Sets the connection state.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1837


    setTag

    ▸ setTag(value: string): void

    Sets the connection tag.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1849


    setTransports

    ▸ setTransports(value: TransportInfo[]): void

    Sets the connection transport information. This will be null if BUNDLE is inactive.

    Parameters:

    Name Type
    value TransportInfo[]

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1862


    setType

    ▸ setType(value: string): void

    Sets the connection type.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1874


    setUserAlias

    ▸ setUserAlias(value: string): void

    Sets the user alias.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1886


    setUserId

    ▸ setUserId(value: string): void

    Sets the user identifier.

    Parameters:

    Name Type
    value string

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1898


    setVideoStream

    ▸ setVideoStream(value: MediaStreamInfo): void

    Sets the first connection video stream.

    Parameters:

    Name Type
    value MediaStreamInfo

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1941


    setVideoStreams

    ▸ setVideoStreams(value: MediaStreamInfo[]): void

    Sets the connection video streams.

    Parameters:

    Name Type
    value MediaStreamInfo[]

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1953


    shouldSerializeAudioDirection

    ▸ shouldSerializeAudioDirection(): boolean

    Gets whether to serialize the legacy audio direction property.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1973


    shouldSerializeAudioFormats

    ▸ shouldSerializeAudioFormats(): boolean

    Gets whether to serialize the legacy audio formats property.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1985


    shouldSerializeDataDirection

    ▸ shouldSerializeDataDirection(): boolean

    Gets whether to serialize the legacy data direction property.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:1997


    shouldSerializeLocalAudioMuted

    ▸ shouldSerializeLocalAudioMuted(): boolean

    Gets whether to serialize the legacy local audio muted property.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:2009


    shouldSerializeLocalVideoMuted

    ▸ shouldSerializeLocalVideoMuted(): boolean

    Gets whether to serialize the legacy local video muted property.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:2021


    shouldSerializeVideoDirection

    ▸ shouldSerializeVideoDirection(): boolean

    Gets whether to serialize the legacy video direction property.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:2033


    shouldSerializeVideoFormats

    ▸ shouldSerializeVideoFormats(): boolean

    Gets whether to serialize the legacy video formats property.

    Returns: boolean

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:2045


    toJson

    ▸ toJson(): string

    Serializes this instance to Json.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:2057


    fromJson

    ▸ StaticfromJson(connectionInfoJson: string): ConnectionInfo

    Deserializes Json to a ConnectionInfo.

    Parameters:

    Name Type Description
    connectionInfoJson string The serialized Json.

    Returns: ConnectionInfo

    The deserialized ConnectionInfo.

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:279


    fromJsonArray

    ▸ StaticfromJsonArray(connectionInfosJson: string): ConnectionInfo[]

    Deserializes an array of instances from JSON.

    Parameters:

    Name Type Description
    connectionInfosJson string The JSON to deserialize.

    Returns: ConnectionInfo[]

    The deserialized connection infos.

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:299


    processArray

    ▸ StaticprocessArray<T>(newValues: T[], oldValues: T[]): T[]

    Processes an array for an info.

    Type parameters:

    Name Type
    T IEquivalent<T, T>

    Parameters:

    Name Type Description
    newValues T[] The new values.
    oldValues T[] The old values.

    Returns: T[]

    The new values, if the new values are not equivalent to the old values; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:34


    processBoolean

    ▸ StaticprocessBoolean(newValue: boolean, oldValue: boolean): boolean

    Processes a boolean for an info.

    Parameters:

    Name Type Description
    newValue boolean The new value.
    oldValue boolean The old value.

    Returns: boolean

    The new value, if the new value does not equal the old value; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:60


    processBooleanArray

    ▸ StaticprocessBooleanArray(newValues: boolean[], oldValues: boolean[]): boolean[]

    Processes a boolean array for an info.

    Parameters:

    Name Type Description
    newValues boolean[] The new values.
    oldValues boolean[] The old values.

    Returns: boolean[]

    The new values, if the new values do not equal the old values; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:75


    processDouble

    ▸ StaticprocessDouble(newValue: number, oldValue: number): number

    Processes a double for an info.

    Parameters:

    Name Type Description
    newValue number The new value.
    oldValue number The old value.

    Returns: number

    The new value, if the new value does not equal the old value; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:101


    processFloat

    ▸ StaticprocessFloat(newValue: number, oldValue: number): number

    Processes a float for an info.

    Parameters:

    Name Type Description
    newValue number The new value.
    oldValue number The old value.

    Returns: number

    The new value, if the new value does not equal the old value; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:116


    processFloatArray

    ▸ StaticprocessFloatArray(newValues: number[], oldValues: number[]): number[]

    Processes a float array for an info.

    Parameters:

    Name Type Description
    newValues number[] The new values.
    oldValues number[] The old values.

    Returns: number[]

    The new values, if the new values do not equal the old values; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:131


    processInteger

    ▸ StaticprocessInteger(newValue: number, oldValue: number): number

    Processes an integer for an info.

    Parameters:

    Name Type Description
    newValue number The new value.
    oldValue number The old value.

    Returns: number

    The new value, if the new value does not equal the old value; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:157


    processIntegerArray

    ▸ StaticprocessIntegerArray(newValues: number[], oldValues: number[]): number[]

    Processes a integer array for an info.

    Parameters:

    Name Type Description
    newValues number[] The new values.
    oldValues number[] The old values.

    Returns: number[]

    The new values, if the new values do not equal the old values; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:174


    processLong

    ▸ StaticprocessLong(newValue: number, oldValue: number): number

    Processes a long for an info.

    Parameters:

    Name Type Description
    newValue number The new value.
    oldValue number The old value.

    Returns: number

    The new value, if the new value does not equal the old value; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:200


    processLongArray

    ▸ StaticprocessLongArray(newValues: number[], oldValues: number[]): number[]

    Processes a long array for an info.

    Parameters:

    Name Type Description
    newValues number[] The new values.
    oldValues number[] The old values.

    Returns: number[]

    The new values, if the new values do not equal the old values; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:217


    processObject

    ▸ StaticprocessObject<T>(newValue: T, oldValue: T): T

    Processes an object for an info.

    Type parameters:

    Name Type
    T Object & IEquivalent<T, T>

    Parameters:

    Name Type Description
    newValue T The new value.
    oldValue T The old value.

    Returns: T

    The new value, if the new value does not equal the old value; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:243


    processShort

    ▸ StaticprocessShort(newValue: number, oldValue: number): number

    Processes a short for an info.

    Parameters:

    Name Type Description
    newValue number The new value.
    oldValue number The old value.

    Returns: number

    The new value, if the new value does not equal the old value; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:264


    processShortArray

    ▸ StaticprocessShortArray(newValues: number[], oldValues: number[]): number[]

    Processes a short array for an info.

    Parameters:

    Name Type Description
    newValues number[] The new values.
    oldValues number[] The old values.

    Returns: number[]

    The new values, if the new values do not equal the old values; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:281


    processString

    ▸ StaticprocessString(newValue: string, oldValue: string): string

    Processes a string for an info.

    Parameters:

    Name Type Description
    newValue string The new value.
    oldValue string The old value.

    Returns: string

    The new value, if the new value does not equal the old value; otherwise null.

    Inherited from: Info

    Defined in: Generated/TypeScript/fm.liveswitch/Info.ts:307


    toJson

    ▸ StatictoJson(connectionInfo: ConnectionInfo): string

    Serializes an instance to Json.

    Parameters:

    Name Type Description
    connectionInfo ConnectionInfo The instance to serialize.

    Returns: string

    Serialized Json.

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:317


    toJsonArray

    ▸ StatictoJsonArray(connectionInfos: ConnectionInfo[]): string

    Serializes an array of instances to JSON.

    Parameters:

    Name Type Description
    connectionInfos ConnectionInfo[] The connection infos to serialize.

    Returns: string

    The serialized JSON.

    Defined in: Generated/TypeScript/fm.liveswitch/ConnectionInfo.ts:335

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