/ fm / liveswitch / WssRemoteTrack
Class: WssRemoteTrack
fm.liveswitch.WssRemoteTrack
Table of contents
Constructors
Methods
- ProcessAudio
- ProcessFrame
- UpdateOptions
- addOnKeyFrameRequest
- getFramesDecoded
- handelAudioDecoderMessages
- handleDecodedVideoData
- onKeyFrameRequest
- removeOnKeyFrameRequest
- resetTranscoder
- setVideoElement
- setupAudioDecoder
- setupTranscoder
- setupVideoDecoder
Constructors
constructor
+ new WssRemoteTrack(props
: any, trackId
: any, messagePort
: MessagePort): WssRemoteTrack
Parameters:
Name | Type |
---|---|
props |
any |
trackId |
any |
messagePort |
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:237
ProcessFrame
▸ ProcessFrame(buffer
: ArrayBuffer, timestamp
: number, isKeyFrame
: boolean): void
Parameters:
Name | Type |
---|---|
buffer |
ArrayBuffer |
timestamp |
number |
isKeyFrame |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:217
UpdateOptions
▸ UpdateOptions(options
: any): void
Parameters:
Name | Type |
---|---|
options |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:183
addOnKeyFrameRequest
▸ addOnKeyFrameRequest(receiver
: IAction0): void
Parameters:
Name | Type |
---|---|
receiver |
IAction0 |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:54
getFramesDecoded
▸ getFramesDecoded(): Promise<number>
Returns: Promise<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:137
handleDecodedVideoData
▸ handleDecodedVideoData(event
: any): void
Parameters:
Name | Type |
---|---|
event |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:154
onKeyFrameRequest
▸ onKeyFrameRequest(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:203
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:132
setupAudioDecoder
▸ setupAudioDecoder(messagePort?
: MessagePort): void
Parameters:
Name | Type |
---|---|
messagePort? |
MessagePort |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:71
setupTranscoder
▸ setupTranscoder(messagePort
: MessagePort): void
Parameters:
Name | Type |
---|---|
messagePort |
MessagePort |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:175
setupVideoDecoder
▸ setupVideoDecoder(messagePort
: MessagePort): void
Parameters:
Name | Type |
---|---|
messagePort |
MessagePort |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:105