Autoplay, loop, muted playback
You can customize the video playback behavior with a set of attributes and thereby tailor the playback experiences for your viewers.
Loop video playback
With the loop
attribute you can activate continuous video playback. Upon reaching the video's end, playback automatically restarts from the beginning, delivering uninterrupted viewing.
This is particularly useful for content designed for continuous playback, such as looping animations, video advertisements, or background videos. If you’re building an application for short videos, for instance reels and shorts in UGC platforms - this is a must-have feature.
Example to enable loop:
<fp-player
playback-id=`{Playback_id}`
loop
></fp-player>
Muted playback
Use the muted attribute, initiate your video playbacks with the sound muted, ideal for situations where silent video introductions or background playback are preferred.
You can enhance the user experience in scenarios where audio isn't crucial, such as silent video teasers, presentations, or videos playing in public spaces.
Example to enable muted playback:
<fp-player
playback-id=`{Playback_id}`
muted
></fp-player>
Autoplay with mute (conditional)
When the autoplay
attribute is included, playback will initially start muted. Viewers can always unmute or adjust the volume to their preference using the player controls. This streamlines the viewing experience and potentially reduces bandwidth consumption on mobile data plans.
This offers a balance between immediate playback and user control. Videos begin playing without interrupting with sound, but viewers retain the ability to enable audio if desired. It can also be useful for conserving data usage on mobile connections.
<fp-player
playback-id=`{Playback_id}`
auto-play
></fp-player>
Updated 1 day ago