<video>
Plays a video from a network URL, like a <video>. It's experimental in Lynx 4.1. Attributes set up the player, and its methods start and stop playback: there's no autoplay.
Usage
src/app/player.ts
Import LYNX_ELEMENTS in your component (see Elements).
Attributes
Plus the common attributes, such as id, class and style.
Events
Read the payload from $event.detail. Angular types $event for each event: see Element events.
Plus the common events, such as bindtap.
Methods
These UI methods (Glossary) control playback. Call them with invoke() on the element (see Call element methods), as the Usage example does with play.
Platform support
Related
- Draw a video frame: draw a video's frame on a
<canvas>, or play it on a three.js mesh - Call element methods
<webview>: show web content, such as an embedded player
