/ fm / liveswitch / WssManager
Class: WssManager
fm.liveswitch.WssManager
Hierarchy
WssManagerBase<WssWebSocketConnection, WebRtcStream, WebRtcAudioStream, WebRtcVideoStream, WebRtcDataStream, WebRtcDataChannel>
↳ WssManager
Table of contents
Constructors
Properties
Methods
- bytesReceivedForStream
- bytesSentForStream
- connectionStateUpdate
- doEncode
- doScale
- drawAndEncode
- getAudioJitter
- getAudioStreamId
- getAudioTrackStats
- getBytesReceived
- getBytesSent
- getMessagesReceived
- getMessagesSent
- getPlisReceived
- getPlisRequested
- getRemoteAudioFrameRate
- getRemoteVideoFrameRate
- getRoundTripTime
- getServiceConnectionId
- getTypeString
- getVideoJitter
- getVideoStreamId
- getVideoTrackStats
- handleKeyFrameRequest
- messagesReceivedForStream
- messagesSentForStream
- onAudioFrame
- onAudioMaxSendBitrateChange
- onVideoFrame
- onVideoMaxSendBitrateChange
- requestKeyFrame
- requestRemoteKeyFrame
- sendConnectionUpdate
- setMediaTrackStatsForAudio
- setMediaTrackStatsForVideo
- stop
- streamLocalMedia
- streamRemoteMedia
Constructors
constructor
+ new WssManager(openArgs
: WssServiceOpenArgs, internalConnection
: WssWebSocketConnection): WssManager
Parameters:
Name | Type |
---|---|
openArgs |
WssServiceOpenArgs |
internalConnection |
WssWebSocketConnection |
Returns: WssManager
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:30
Properties
__connection
• Protected
__connection: WssWebSocketConnectionBase<WssWebSocketConnection, WebRtcStream, WebRtcAudioStream, WebRtcVideoStream, WebRtcDataStream, WebRtcDataChannel>
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:14
Methods
bytesReceivedForStream
▸ bytesReceivedForStream(streamId
: number): number
Parameters:
Name | Type |
---|---|
streamId |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:95
bytesSentForStream
▸ bytesSentForStream(streamId
: number): number
Parameters:
Name | Type |
---|---|
streamId |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:103
connectionStateUpdate
▸ connectionStateUpdate(connectionState
: ConnectionState): void
Parameters:
Name | Type |
---|---|
connectionState |
ConnectionState |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:118
doEncode
▸ Private
doEncode(frame
: ImageData | ImageBitmap, timestampMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
frame |
ImageData | ImageBitmap |
timestampMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:91
doScale
▸ Private
doScale(frame
: ImageData | ImageBitmap, timestampMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
frame |
ImageData | ImageBitmap |
timestampMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:111
drawAndEncode
▸ Private
drawAndEncode(bitmap
: ImageBitmap, width
: number, height
: number, timestampMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
bitmap |
ImageBitmap |
width |
number |
height |
number |
timestampMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:138
getAudioJitter
▸ getAudioJitter(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:167
getAudioStreamId
▸ getAudioStreamId(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:174
getAudioTrackStats
▸ getAudioTrackStats(): MediaTrackStats
Returns: MediaTrackStats
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:207
getBytesReceived
▸ getBytesReceived(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:181
getBytesSent
▸ getBytesSent(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:188
getMessagesReceived
▸ getMessagesReceived(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:195
getMessagesSent
▸ getMessagesSent(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:202
getPlisReceived
▸ getPlisReceived(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:209
getPlisRequested
▸ getPlisRequested(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:216
getRemoteAudioFrameRate
▸ getRemoteAudioFrameRate(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:223
getRemoteVideoFrameRate
▸ getRemoteVideoFrameRate(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:230
getRoundTripTime
▸ getRoundTripTime(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:237
getServiceConnectionId
▸ getServiceConnectionId(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:244
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:6
getVideoJitter
▸ getVideoJitter(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:251
getVideoStreamId
▸ getVideoStreamId(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:258
getVideoTrackStats
▸ getVideoTrackStats(): MediaTrackStats
Returns: MediaTrackStats
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:198
handleKeyFrameRequest
▸ handleKeyFrameRequest(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:265
messagesReceivedForStream
▸ messagesReceivedForStream(streamId
: number): number
Parameters:
Name | Type |
---|---|
streamId |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:303
messagesSentForStream
▸ messagesSentForStream(streamId
: number): number
Parameters:
Name | Type |
---|---|
streamId |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:311
onAudioFrame
▸ onAudioFrame(audioData
: Float32Array, timestampMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
audioData |
Float32Array |
timestampMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:144
onAudioMaxSendBitrateChange
▸ Private
onAudioMaxSendBitrateChange(bitrateKbps
: number): void
Parameters:
Name | Type |
---|---|
bitrateKbps |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:257
onVideoFrame
▸ onVideoFrame(frame
: ImageData | ImageBitmap, timestampMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
frame |
ImageData | ImageBitmap |
timestampMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:81
onVideoMaxSendBitrateChange
▸ Private
onVideoMaxSendBitrateChange(bitrateKbps
: number): void
Parameters:
Name | Type |
---|---|
bitrateKbps |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:251
requestKeyFrame
▸ requestKeyFrame(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:49
requestRemoteKeyFrame
▸ requestRemoteKeyFrame(streamId
: number): void
Parameters:
Name | Type |
---|---|
streamId |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:416
sendConnectionUpdate
▸ sendConnectionUpdate(promise
: Promise<Object>, updateMuteLocalAudio
: boolean, muteLocalAudio
: boolean, updateDisableLocalAudio
: boolean, disableLocalAudio
: boolean, updateDisableRemoteAudio
: boolean, disableRemoteAudio
: boolean, updateMuteLocalVideo
: boolean, muteLocalVideo
: boolean, updateDisableLocalVideo
: boolean, disableLocalVideo
: boolean, updateDisableRemoteVideo
: boolean, disableRemoteVideo
: boolean): void
Parameters:
Name | Type |
---|---|
promise |
Promise<Object> |
updateMuteLocalAudio |
boolean |
muteLocalAudio |
boolean |
updateDisableLocalAudio |
boolean |
disableLocalAudio |
boolean |
updateDisableRemoteAudio |
boolean |
disableRemoteAudio |
boolean |
updateMuteLocalVideo |
boolean |
muteLocalVideo |
boolean |
updateDisableLocalVideo |
boolean |
disableLocalVideo |
boolean |
updateDisableRemoteVideo |
boolean |
disableRemoteVideo |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:449
setMediaTrackStatsForAudio
▸ setMediaTrackStatsForAudio(mediaTrackStats
: MediaTrackStats): Future<Object>
Parameters:
Name | Type |
---|---|
mediaTrackStats |
MediaTrackStats |
Returns: Future<Object>
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:263
setMediaTrackStatsForVideo
▸ setMediaTrackStatsForVideo(mediaTrackStats
: MediaTrackStats): Future<Object>
Parameters:
Name | Type |
---|---|
mediaTrackStats |
MediaTrackStats |
Returns: Future<Object>
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:271
stop
▸ stop(): Future<WebSocketCloseCompleteArgs>
Returns: Future<WebSocketCloseCompleteArgs>
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:155
streamLocalMedia
▸ streamLocalMedia(localMediaForAudio
: LocalMedia, localMediaForVideo
: LocalMedia, audioStreamId
: number, videoStreamId
: number, audioBitrate
: number, videoBitrate
: number): void
Parameters:
Name | Type |
---|---|
localMediaForAudio |
LocalMedia |
localMediaForVideo |
LocalMedia |
audioStreamId |
number |
videoStreamId |
number |
audioBitrate |
number |
videoBitrate |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:55
streamRemoteMedia
▸ streamRemoteMedia(remoteMedia
: RemoteMedia, audioStreamId
: number, videoStreamId
: number, videoStreamInfo
: MediaStreamInfo): void
Parameters:
Name | Type |
---|---|
remoteMedia |
RemoteMedia |
audioStreamId |
number |
videoStreamId |
number |
videoStreamInfo |
MediaStreamInfo |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:610