/ fm / liveswitch / WssRemoteTrack
Class: WssRemoteTrack
fm.liveswitch.WssRemoteTrack
Table of contents
Constructors
Methods
- ProcessAudio
- ProcessFrame
- UpdateOptions
- addOnDecodedVideo
- addOnKeyFrameRequest
- handelAudioDecoderMessages
- handleDecodedVideoData
- onDecodedVideo
- onKeyFrameRequest
- removeOnDecodedVideo
- 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:29
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:230
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:210
UpdateOptions
▸ UpdateOptions(options
: any): void
Parameters:
Name | Type |
---|---|
options |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:162
addOnDecodedVideo
▸ addOnDecodedVideo(receiver
: IAction1<any>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction1<any> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:41
addOnKeyFrameRequest
▸ addOnKeyFrameRequest(receiver
: IAction0): void
Parameters:
Name | Type |
---|---|
receiver |
IAction0 |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:49
handelAudioDecoderMessages
▸ handelAudioDecoderMessages(event
: any): void
Parameters:
Name | Type |
---|---|
event |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:125
handleDecodedVideoData
▸ handleDecodedVideoData(event
: any): void
Parameters:
Name | Type |
---|---|
event |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:135
onDecodedVideo
▸ onDecodedVideo(frame
: any): void
Parameters:
Name | Type |
---|---|
frame |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:184
onKeyFrameRequest
▸ onKeyFrameRequest(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:197
removeOnDecodedVideo
▸ removeOnDecodedVideo(receiver
: IAction1<any>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction1<any> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:45
removeOnKeyFrameRequest
▸ removeOnKeyFrameRequest(receiver
: IAction0): void
Parameters:
Name | Type |
---|---|
receiver |
IAction0 |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:53
resetTranscoder
▸ resetTranscoder(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:57
setVideoElement
▸ setVideoElement(videoRef
: any): void
Parameters:
Name | Type |
---|---|
videoRef |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:120
setupAudioDecoder
▸ setupAudioDecoder(messagePort?
: MessagePort): void
Parameters:
Name | Type |
---|---|
messagePort? |
MessagePort |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:66
setupTranscoder
▸ setupTranscoder(messagePort?
: MessagePort): void
Parameters:
Name | Type |
---|---|
messagePort? |
MessagePort |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:154
setupVideoDecoder
▸ setupVideoDecoder(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssRemoteTrack.ts:100