/ fm / liveswitch / WssVideoDecoder
Class: WssVideoDecoder
fm.liveswitch.WssVideoDecoder
Table of contents
Constructors
Methods
Constructors
constructor
+ new WssVideoDecoder(width
: number, height
: number, fps
: number, messagePort
: MessagePort): WssVideoDecoder
Parameters:
Name | Type |
---|---|
width |
number |
height |
number |
fps |
number |
messagePort |
MessagePort |
Returns: WssVideoDecoder
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoDecoder.ts:15
Methods
addOnKeyFrameRequest
▸ addOnKeyFrameRequest(receiver
: IAction0): void
Parameters:
Name | Type |
---|---|
receiver |
IAction0 |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoDecoder.ts:35
decode
▸ decode(frame
: ArrayBuffer, timestamp
: number, isKeyFrame
: boolean): void
Parameters:
Name | Type |
---|---|
frame |
ArrayBuffer |
timestamp |
number |
isKeyFrame |
boolean |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoDecoder.ts:43
getFramesDecoded
▸ getFramesDecoded(): Promise<number>
Returns: Promise<number>
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoDecoder.ts:66
removeOnKeyFrameRequest
▸ removeOnKeyFrameRequest(receiver
: IAction0): void
Parameters:
Name | Type |
---|---|
receiver |
IAction0 |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoDecoder.ts:39
stop
▸ stop(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssVideoDecoder.ts:62