<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 (see Handling taps and 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
- Call element methods
<webview>: show web content, such as an embedded player
