| ARRIS Enterprises, Inc. Confidential Information |
Video element propertiesIntroductionThe The "controls" attribute of the HTML5 video tag is not supported. The HTML5 video tag can be used in two ways. If
There are two usage scenarios for the video element: one is to create main video element, the other is to create a PiP(Picture in Picture) video element. In each scenario, only the last created video element takes effect, even though multi-video elements are created! That means no two PiP or two main video elements can take effect at the meantime! Video OverlayingVideo overlaying can be done by using the CSS z-index property. An element with greater z-index will be placed above elements with lower z-index.
ExamplesPositions the video surface on the screen with a height and width of 300x300 pixels.
or
One way of doing full screen using style sheet attributes for the video tag.
Example of z-index positioning. The z-index is used for positioning the surface along the z-axis.
Example of doing an autoplay as soon as the video is ready
Example of loop playing the video
JavaScript ExamplesFull screen with JavaScript
Volume control
The video tag has a volume attribute. Setting the volume attribute will control volume by calling
Video aspect ratioVideo aspect ratio is by default preserved using AVM. The video tag CSS property "object-fit" is by default set to "fill" to make the video follow the size of the video tag. Hole-punchingThe |
