Add a video background to the extra.
PhiraExtra to modify.
Path to the video file (e.g., "bga.mp4").
"bga.mp4"
Beat at which the video starts playing.
Video options.
The index of the newly added video.
const extra = createExtra(120);addVideo(extra, 'background.mp4', 0, { scale: 'cropCenter', alpha: 0.8, dim: animateValue(0, 4, 0.5, 0),}); Copy
const extra = createExtra(120);addVideo(extra, 'background.mp4', 0, { scale: 'cropCenter', alpha: 0.8, dim: animateValue(0, 4, 0.5, 0),});
Add a video background to the extra.