/ fm / liveswitch / WssLocalTrack
Class: WssLocalTrack
fm.liveswitch.WssLocalTrack
Table of contents
Constructors
Methods
- GenerateKeyFrame
- ProcessAudio
- ProcessFrame
- UpdateOptions
- addOnEncodedAudio
- addOnEncodedVideo
- getAudioEncoderState
- getVideoEncoderState
- handleEncodedAudioData
- handleEncodedVideoData
- isAudioConfigSupported
- isVideoConfigSupported
- onEncodedAudioFrame
- onEncodedVideoFrame
- removeOnEncodedAudio
- removeOnEncodedVideo
- resetTranscoder
- setAudioEncoderState
- setVideoEncoderState
- setupAudioEncoder
- setupTranscoder
- setupVideoEncoder
Constructors
constructor
+ new WssLocalTrack(props
: any, trackId
: string): WssLocalTrack
Parameters:
Name | Type |
---|---|
props |
any |
trackId |
string |
Returns: WssLocalTrack
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:41
Methods
GenerateKeyFrame
▸ GenerateKeyFrame(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:175
ProcessAudio
▸ ProcessAudio(audioSamples
: Float32Array, timestamp
: number): void
Parameters:
Name | Type |
---|---|
audioSamples |
Float32Array |
timestamp |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:298
ProcessFrame
▸ ProcessFrame(imageData
: any, timestamp
: number): void
Parameters:
Name | Type |
---|---|
imageData |
any |
timestamp |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:259
UpdateOptions
▸ UpdateOptions(options
: any): void
Parameters:
Name | Type |
---|---|
options |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:186
addOnEncodedAudio
▸ addOnEncodedAudio(receiver
: IAction2<any, number>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction2<any, number> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:61
addOnEncodedVideo
▸ addOnEncodedVideo(receiver
: IAction2<any, number>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction2<any, number> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:53
getAudioEncoderState
▸ getAudioEncoderState(): WssEncoderState
Returns: WssEncoderState
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:333
getVideoEncoderState
▸ getVideoEncoderState(): WssEncoderState
Returns: WssEncoderState
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:346
handleEncodedAudioData
▸ handleEncodedAudioData(event
: any): void
Parameters:
Name | Type |
---|---|
event |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:155
handleEncodedVideoData
▸ handleEncodedVideoData(event
: any): void
Parameters:
Name | Type |
---|---|
event |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:131
isAudioConfigSupported
▸ Private
isAudioConfigSupported(sampleRate
: number, numberOfChannels
: number, bitrate
: number): Promise<boolean>
Parameters:
Name | Type |
---|---|
sampleRate |
number |
numberOfChannels |
number |
bitrate |
number |
Returns: Promise<boolean>
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:375
isVideoConfigSupported
▸ Private
isVideoConfigSupported(width
: number, height
: number, bitrate
: number): Promise<boolean>
Parameters:
Name | Type |
---|---|
width |
number |
height |
number |
bitrate |
number |
Returns: Promise<boolean>
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:350
onEncodedAudioFrame
▸ onEncodedAudioFrame(audioData
: any, timestampMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
audioData |
any |
timestampMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:246
onEncodedVideoFrame
▸ onEncodedVideoFrame(videoData
: any, timestapMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
videoData |
any |
timestapMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:233
removeOnEncodedAudio
▸ removeOnEncodedAudio(receiver
: IAction1<any>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction1<any> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:65
removeOnEncodedVideo
▸ removeOnEncodedVideo(receiver
: IAction2<any, number>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction2<any, number> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:57
resetTranscoder
▸ resetTranscoder(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:69
setAudioEncoderState
▸ setAudioEncoderState(newState
: WssEncoderState): void
Parameters:
Name | Type |
---|---|
newState |
WssEncoderState |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:324
setVideoEncoderState
▸ setVideoEncoderState(newState
: WssEncoderState): void
Parameters:
Name | Type |
---|---|
newState |
WssEncoderState |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:337
setupAudioEncoder
▸ setupAudioEncoder(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:81
setupTranscoder
▸ setupTranscoder(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:123
setupVideoEncoder
▸ setupVideoEncoder(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:103