/ fm / liveswitch / WssAudioEncoder
Class: WssAudioEncoder
fm.liveswitch.WssAudioEncoder
Table of contents
Constructors
Methods
- addOnEncodedAudio
- adjustTimestampForBufferSize
- encode
- onEncodedAudio
- removeOnEncodedAudio
- stop
- updateBitrate
Constructors
constructor
+ new WssAudioEncoder(bitrate
: number): WssAudioEncoder
Parameters:
Name | Type |
---|---|
bitrate |
number |
Returns: WssAudioEncoder
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioEncoder.ts:17
Methods
addOnEncodedAudio
▸ addOnEncodedAudio(receiver
: IAction2<any, number>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction2<any, number> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioEncoder.ts:40
adjustTimestampForBufferSize
▸ Private
adjustTimestampForBufferSize(timestampMicroseconds
: number): number
Parameters:
Name | Type |
---|---|
timestampMicroseconds |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioEncoder.ts:58
encode
▸ encode(audioData
: Float32Array, timestampMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
audioData |
Float32Array |
timestampMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioEncoder.ts:48
onEncodedAudio
▸ onEncodedAudio(encodedAudio
: any, timestampMicroseconds
: number): void
Parameters:
Name | Type |
---|---|
encodedAudio |
any |
timestampMicroseconds |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioEncoder.ts:64
removeOnEncodedAudio
▸ removeOnEncodedAudio(receiver
: IAction2<any, number>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction2<any, number> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioEncoder.ts:44
stop
▸ stop(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioEncoder.ts:91
updateBitrate
▸ updateBitrate(bitrate
: number): void
Parameters:
Name | Type |
---|---|
bitrate |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioEncoder.ts:77