Constructor
new WebCodecView(propertiesopt)
Create a View.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties |
Object |
<optional> |
{} | the properties of the view
Properties
|
Example
import WebCodecView from 'core/ui/view/video/WebCodecView.js';
let videoView = new WebCodecView({
container: 'video-h264-container',
css: 'video-h264',
name: 'UAV Video',
layers: [
new DataLayer({
dataSourceId: videoDataSource.id
})
]
});
Extends
Methods
(protected) createCanvas(width, height, style)
Create
Parameters:
Name | Type | Description |
---|---|---|
width |
String | the width |
height |
String | the height |
style |
String | the dom element style (Optional) |
reset()
Reset the view by drawing no data array into the YUV canvas.
Events
onAfterDecoded
Called after each decoded frame.
- Overrides:
- Source: