class AVCPlayer
Play back a raw opus stream.
Can be used as an image source.
class AVCPlayer
Name | Description |
---|---|
Constructors | |
AVCPlayer() | Creates an AVC-player. |
Properties | |
width | Width of the image source. |
height | Height of the image source. |
Methods | |
dispose() | Dispose the unmanaged resource. |
addPacket() | Add an AVC packet to the play queue. |
updateTexture() | Add an AVC packet to the play queue. |
Constructors
AVCPlayer()
AVCPlayer
()
Creates an AVC-player.
Properties
width
.width
: Number
Width of the image source.
Read-only.
height
.height
: Number
Height of the image source.
Read-only.
Methods
dispose()
.dispose
(): undefined
Dispose the unmanaged resource.
addPacket()
.addPacket
(data
: ArrayBuffer): undefined
Add an AVC packet to the play queue.
updateTexture()
.updateTexture
(): undefined
Attempt to read new frames and update the texture data.