Creating and sharing playlists are a great way to engage your users and keep them watching.
With our player, you have 2 different ways to export your playlist. You can either share an entire playlist, or set up a playlist as a video queue
Export an entire playlist
With this method, you'll be able to share an entire playlist on your website or your application.
All you need is to find the playlist ID, and export it on an iframe or through one of our SDK. You can generate an iFrame easily from your Dailymotion Studio:
- Go to the Playlist tab, within the Media section
- Click on the menu available on the right of each playlist
- Select the option Share
- Click on Embed
When you'll include this iframe on your website, a Player will be generated with all the videos from the playlist.
Embed a playlist using an iFrame
<!-- Please replace the PLAYLIST_ID placeholder with your own -->
<div style="position:relative;padding-bottom:56.25%;height:0;overflow:hidden;">
<iframe style="width:100%;height:100%;position:absolute;left:0px;top:0px;overflow:hidden" frameborder="0" type="text/html"
src="https://dailymotion.com/embed/playlist/PLAYLIST_ID?autoplay=1" width="100%" height="100%" allow="autoplay" allowfullscreen>
</iframe>
</div>
Embed a playlist using Player Embed
<!-- Please replace the Player ID and Playlist ID with your own -->
<script src="https://geo.dailymotion.com/player/PLAYER_ID.js" data-playlist="PLAYLIST_ID"></script>
Embed a playlist using Library script
<!-- Please replace the Player ID and Playlist ID with your own -->
<script src="https://geo.dailymotion.com/libs/player/PLAYER_ID.js"></script>
<div id="my-dailymotion-player">My Player placeholder</div>
<script>
dailymotion
.createPlayer('my-dailymotion-player', {
playlist: 'PLAYLIST_ID',
})
.then((player) => console.log(player))
.catch((e) => console.error(e));
</script>