/ fm / liveswitch / WssManager
Class: WssManager
fm.liveswitch.WssManager
Hierarchy
WssManagerBase<WssWebSocketConnection, WebRtcStream, WebRtcAudioStream, WebRtcVideoStream, WebRtcDataStream, WebRtcDataChannel>
↳ WssManager
Table of contents
Constructors
Properties
Methods
- connectionStateUpdate
- doEncode
- doScale
- drawAndEncode
- getTypeString
- onAudioFrame
- onAudioMaxSendBitrateChange
- onVideoFrame
- onVideoMaxSendBitrateChange
- requestKeyFrame
- requestRemoteKeyFrame
- sendConnectionUpdate
- 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:26
Properties
__connection
• Protected
__connection: WssWebSocketConnectionBase<WssWebSocketConnection, WebRtcStream, WebRtcAudioStream, WebRtcVideoStream, WebRtcDataStream, WebRtcDataChannel>
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:14
Methods
connectionStateUpdate
▸ connectionStateUpdate(connectionState
: ConnectionState): void
Parameters:
Name | Type |
---|---|
connectionState |
ConnectionState |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:83
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:84
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:104
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:125
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:6
onAudioFrame
▸ onAudioFrame(audioData
: Float32Array, timestampMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
audioData |
Float32Array |
timestampMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:131
onAudioMaxSendBitrateChange
▸ Private
onAudioMaxSendBitrateChange(bitrateKbps
: number): void
Parameters:
Name | Type |
---|---|
bitrateKbps |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:226
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:74
onVideoMaxSendBitrateChange
▸ Private
onVideoMaxSendBitrateChange(bitrateKbps
: number): void
Parameters:
Name | Type |
---|---|
bitrateKbps |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:220
requestKeyFrame
▸ requestKeyFrame(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:42
requestRemoteKeyFrame
▸ requestRemoteKeyFrame(streamId
: number): void
Parameters:
Name | Type |
---|---|
streamId |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssManagerBase.ts:246
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:276
stop
▸ stop(): Future<WebSocketCloseCompleteArgs>
Returns: Future<WebSocketCloseCompleteArgs>
Defined in: Generated/TypeScript/fm.liveswitch/WssManager.ts:142
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:48
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:437