/ fm / liveswitch / WssLocalTrack
Class: WssLocalTrack
fm.liveswitch.WssLocalTrack
Table of contents
Constructors
Methods
- GenerateKeyFrame
- ProcessAudio
- ProcessFrame
- UpdateOptions
- addOnEncodedAudio
- addOnEncodedVideo
- getAudioEncoderState
- getFramesEncoded
- 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:44
Methods
GenerateKeyFrame
▸ GenerateKeyFrame(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:205
ProcessAudio
▸ ProcessAudio(audioSamples
: Float32Array, timestamp
: number): void
Parameters:
Name | Type |
---|---|
audioSamples |
Float32Array |
timestamp |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:330
ProcessFrame
▸ ProcessFrame(imageData
: any, timestamp
: number): void
Parameters:
Name | Type |
---|---|
imageData |
any |
timestamp |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:291
UpdateOptions
▸ UpdateOptions(options
: any): void
Parameters:
Name | Type |
---|---|
options |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:216
addOnEncodedAudio
▸ addOnEncodedAudio(receiver
: IAction2<any, number>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction2<any, number> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:76
addOnEncodedVideo
▸ addOnEncodedVideo(receiver
: IAction2<any, number>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction2<any, number> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:68
getAudioEncoderState
▸ getAudioEncoderState(): WssEncoderState
Returns: WssEncoderState
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:365
getFramesEncoded
▸ getFramesEncoded(): Promise<number>
Returns: Promise<number>
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:56
getVideoEncoderState
▸ getVideoEncoderState(): WssEncoderState
Returns: WssEncoderState
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:378
handleEncodedAudioData
▸ handleEncodedAudioData(event
: any): void
Parameters:
Name | Type |
---|---|
event |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:177
handleEncodedVideoData
▸ handleEncodedVideoData(event
: any): void
Parameters:
Name | Type |
---|---|
event |
any |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:146
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:407
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:382
onEncodedAudioFrame
▸ onEncodedAudioFrame(audioData
: any, timestampMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
audioData |
any |
timestampMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:277
onEncodedVideoFrame
▸ onEncodedVideoFrame(videoData
: any, timestapMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
videoData |
any |
timestapMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:263
removeOnEncodedAudio
▸ removeOnEncodedAudio(receiver
: IAction1<any>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction1<any> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:80
removeOnEncodedVideo
▸ removeOnEncodedVideo(receiver
: IAction2<any, number>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction2<any, number> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:72
resetTranscoder
▸ resetTranscoder(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:84
setAudioEncoderState
▸ setAudioEncoderState(newState
: WssEncoderState): void
Parameters:
Name | Type |
---|---|
newState |
WssEncoderState |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:356
setVideoEncoderState
▸ setVideoEncoderState(newState
: WssEncoderState): void
Parameters:
Name | Type |
---|---|
newState |
WssEncoderState |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:369
setupAudioEncoder
▸ setupAudioEncoder(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:96
setupTranscoder
▸ setupTranscoder(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:138
setupVideoEncoder
▸ setupVideoEncoder(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalTrack.ts:118