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

PropTypeDefaultDescription
urlstring''MP4 URL
activebooleantrueTrue for the current real carousel slide only; false for clones
loopbooleantrueLoop
minWidthnumber0Minimum viewport width in px; pass 768 to keep phones on posters

Events

EventPayloadDescription
busybooleanPreparing 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

加载中...