Table of content

Work with the loop parameter


Your embedded content can be automatically played again by adding the loop runtime Player parameter of your embed method on either a video or a playlist object.

Depending on your Player configuration and your object, you will be able to either loop a list of recommendations, a playlist or a single video.

Player configuration for specific loop behaviors

See how to set up your Player configuration to achieve the intended loop behavior:

Expected loop behavior Embedded object Loop Parameters in Player configuration
Automatic recommendations with:
enable_automatic_recommendations
Autonext with:
enable_autonext
Loop upon single video
Video loops smoothly without any interruption
Video true false false
Loop upon recommendation list
Once your video is finished, the recommended videos will play. When the last video reaches the end, the playback will play again from the beginning of the queue.
Video true true true
Loop upon playlist
Once your video is finished, your playlist will play. When the last video reaches the end, the playlist will play again from the beginning.
Playlist
or
Video within a playlist
true true true

Integration examples

Check the following examples to see how to add the loop parameter in your embed method.

Player Embed Script

See the Pen Player embed script – loop param by dailymotion-developer (@dailymotion-developer) on CodePen.

Player Library Script

See the Pen Player library script – loop param by dailymotion-developer (@dailymotion-developer) on CodePen.

Player iFrame

See the Pen Player iframe embed – loop param by dailymotion-developer (@dailymotion-developer) on CodePen.