Video
Video support Same-layer rendering. Related api:bn.createVideoContext
Example
Bug & Tip
- tip:video Default width 300px, altitude 225px, available via bxss Set the width and height.
#
PropsName | Type | Description | Default |
---|---|---|---|
id | string | ||
src required | string | Resource address to play video, support network path, local temporary path | |
controls | boolean | Whether to display the default playback controls/Pause on, playback progress, time) | true |
autoplay | boolean | Whether to autoplay | false |
loop | boolean | Whether to play on a loop | false |
muted | boolean | Mute Play | false |
#
EventsName | Description |
---|---|
bindplay | When it starts/Triggers play event while continuing playback |
bindpause | Triggered when playback is paused pause event |
bindended | Triggered when playback is paused pause event |
bindtimeupdate | Triggered when playback progress changes, event. detail = {currentTime, duration} Trigger frequency. 250ms first |
bindfullscreenchange | Triggered when video enters and exits full-screen, event.detail = {fullScreen, direction},direction Valid values are vertical or horizontal |
binderror | Triggered when video playback goes wrong |