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,
layers: [
new VideoDataLayer({
dataSourceId: videoDataSource.id,
getFrameData: (rec) => rec.videoFrame,
getTimestamp: (rec) => rec.timestamp
})
]
});
Extends
Methods
reset()
Reset the view by drawing no data array into the YUV canvas.
- Source:
updateStatistics()
- Overrides:
- Source:
Events
onAfterDecoded
Called after each decoded frame.
- Overrides:
- Source: