Class: VideoView

VideoView(propertiesopt)

new VideoView(propertiesopt)

Create a View.
Parameters:
Name Type Attributes Default Description
properties Object <optional>
{} the properties of the view
Properties
Name Type Attributes Default Description
container string The div element to attach to
css string The css classes to set, can be multiple if separate by spaces
visible boolean set the default behavior of the visibility of the view
layers Array.<Object> <optional>
[] The initial layers to add
framerate Number <optional>
29.67 The framerate to play 1s/framerate and get smooth display
directPlay Boolean <optional>
false Enable or ignore the framerate play
showTime Boolean <optional>
false Enable or ignore the show timestamp text onto the canvas
showStats Boolean <optional>
false Enable or ignore the display stats (FPS number) onto the canvas
width Number <optional>
1920 Set the default canvas width
height Number <optional>
1080 Set the default canvas height
useWebCodecApi Number <optional>
true Use experimental WebCodecApi
Source: