Constructor
new FFMPEGView(propertiesopt)
Create a View.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties |
Object |
<optional> |
{} | the properties of the view
Properties
|
- Source:
Example
import FFMPEGView from 'core/ui/view/video/FFMPEGView.js';
let videoView = new FFMPEGView({
container: 'video-h264-container',
css: 'video-h264',
name: 'UAV Video',
framerate:25,
showTime: true,
showStats: true,
dataSourceId: videoDataSource.id
});
Extends
Methods
reset()
Reset the view by drawing no data array into the YUV canvas.
- Source:
Events
onAfterDecoded
Called after each decoded frame.
- Overrides:
- Source: