/ fm / liveswitch / WssVideoEncoder
Class: WssVideoEncoder
fm.liveswitch.WssVideoEncoder
Table of contents
Constructors
Methods
Constructors
constructor
+ new WssVideoEncoder(width
: number, height
: number, fps
: number, bitrate
: number): WssVideoEncoder
Parameters:
Name | Type |
---|---|
width |
number |
height |
number |
fps |
number |
bitrate |
number |
Returns: WssVideoEncoder
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoEncoder.ts:16
Methods
addOnEncodedVideo
▸ addOnEncodedVideo(receiver
: IAction4<any, number, number, number>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction4<any, number, number, number> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoEncoder.ts:37
encode
▸ encode(imageData
: any, timestamp
: number): void
Parameters:
Name | Type |
---|---|
imageData |
any |
timestamp |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoEncoder.ts:48
removeOnEncodedVideo
▸ removeOnEncodedVideo(receiver
: IAction4<any, number, number, number>): void
Parameters:
Name | Type |
---|---|
receiver |
IAction4<any, number, number, number> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoEncoder.ts:41
requestKeyFrame
▸ requestKeyFrame(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoEncoder.ts:70
stop
▸ stop(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoEncoder.ts:89
updateBitrate
▸ updateBitrate(bitrate
: number): void
Parameters:
Name | Type |
---|---|
bitrate |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoEncoder.ts:74