January 21, 2020
|
Player API
How to customize your Player Queue with a specified Playlist

Keep your users engaged on your properties with your selected content. With our new feature, you can now populate the Player “Up Next Queue” with videos from a specified playlist.
Do you want your queue by default to play relevant content next? To customize this experience, simply embed a video and specify the playlist id along with the video id. Grab a playlist ID from a playlist you want to use and add it to your video embed. You can embed any video, with a queue populated with any playlist.
- As you can see from the embedded video below, the queue has now been populated with the playlist
Using an iframe
<iframe frameborder="0" width="480" height="270" src="https://www.dailymotion.com/embed/video/x3rdtfy?playlist=x5zhzj" allowfullscreen allow="autoplay"></iframe>
Using our JS SDK
<script src="https://api.dmcdn.net/all.js"></script>
<div id="videoPlayer"></div>
<script>
var player = DM.player("videoPlayer", {
video : "x3rdtfy",
playlist: "x5zhzj",
width: "480",
height: "270",
});
</script>
See the full JavaScript SDK documentation
Using our “Picture in Picture” technology
<div class="dailymotion-cpe" video-id="x3rdtfy" playlist-id="x5zhzj"></div>
Using the Dailymotion AMP component
<amp-dailymotion data-param-playlist="x5zhzj" data-videoid="x3rdtfy" layout="responsive" width="480" height="270"></amp-dailymotion>