SwVideoBackground
Accepts an explicit MP4 URL only. It does not fetch movie playback URLs, sign URLs or report movie playback. Keep a poster underneath and give the parent a size and position: relative. Video appears after playback starts. Failure or eight seconds of buffering unloads it to reveal the poster. Inactive, offscreen, hidden-tab and reduced-motion states do not mount a player.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
url | string | '' | MP4 URL |
active | boolean | true | True for the current real carousel slide only; false for clones |
loop | boolean | true | Loop |
minWidth | number | 0 | Minimum viewport width in px; pass 768 to keep phones on posters |
Events
| Event | Payload | Description |
|---|---|---|
busy | boolean | Preparing or playing; pause the image carousel timer while true |
ended | — | Non-looping playback ended; connect to next() for multiple slides |
error | — | Playback failure or buffering timeout |
Basic background
Basic background
加载中...
Mobile poster
Mobile poster
加载中...
Mixed carousel
Mixed carousel
加载中...