/ fm / liveswitch / WssRemoteTrack
Class: WssRemoteTrack
fm.liveswitch.WssRemoteTrack
Table of contents
Constructors
Methods
- ProcessAudio
- ProcessFrame
- UpdateOptions
- addOnKeyFrameRequest
- getStats
- handelAudioDecoderMessages
- handleDecodedVideoData
- onKeyFrameRequest
- removeOnKeyFrameRequest
- resetTranscoder
- setVideoElement
- setupAudioDecoder
- setupTranscoder
- setupVideoDecoder
Constructors
constructor
+ new WssRemoteTrack(props
: any, trackId
: any, outboundMessagePort
: MessagePort, inboundMessagePort
: MessagePort): WssRemoteTrack
Parameters:
Name | Type |
---|---|
props |
any |
trackId |
any |
outboundMessagePort |
MessagePort |
inboundMessagePort |
MessagePort |
Returns: WssRemoteTrack
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:30
Methods
ProcessAudio
▸ ProcessAudio(buffer
: ArrayBuffer, timestamp
: number): void
Parameters:
Name | Type |
---|---|
buffer |
ArrayBuffer |
timestamp |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:263
ProcessFrame
▸ ProcessFrame(buffer
: ArrayBuffer, timestamp
: number): void
Parameters:
Name | Type |
---|---|
buffer |
ArrayBuffer |
timestamp |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:244
UpdateOptions
▸ UpdateOptions(options
: any): void
Parameters:
Name | Type |
---|---|
options |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:210
addOnKeyFrameRequest
▸ addOnKeyFrameRequest(receiver
: IAction0): void
Parameters:
Name | Type |
---|---|
receiver |
IAction0 |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:54
getStats
▸ getStats(): Promise<{ [key: string]: number; }>
Returns: Promise<{ [key: string]: number; }>
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:42
handelAudioDecoderMessages
▸ handelAudioDecoderMessages(event
: any): void
Parameters:
Name | Type |
---|---|
event |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:151
handleDecodedVideoData
▸ handleDecodedVideoData(event
: any): void
Parameters:
Name | Type |
---|---|
event |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:176
onKeyFrameRequest
▸ onKeyFrameRequest(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:230
removeOnKeyFrameRequest
▸ removeOnKeyFrameRequest(receiver
: IAction0): void
Parameters:
Name | Type |
---|---|
receiver |
IAction0 |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:58
resetTranscoder
▸ resetTranscoder(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:62
setVideoElement
▸ setVideoElement(videoRef
: any): void
Parameters:
Name | Type |
---|---|
videoRef |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:146
setupAudioDecoder
▸ setupAudioDecoder(outboundMessagePort
: MessagePort, inboundMessagePort
: MessagePort): void
Parameters:
Name | Type |
---|---|
outboundMessagePort |
MessagePort |
inboundMessagePort |
MessagePort |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:71
setupTranscoder
▸ setupTranscoder(outboundMessagePort
: MessagePort, inboundMessagePort
: MessagePort): void
Parameters:
Name | Type |
---|---|
outboundMessagePort |
MessagePort |
inboundMessagePort |
MessagePort |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:202
setupVideoDecoder
▸ setupVideoDecoder(outboundMessagePort
: MessagePort, inboundMessagePort
: MessagePort): void
Parameters:
Name | Type |
---|---|
outboundMessagePort |
MessagePort |
inboundMessagePort |
MessagePort |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:112