---
updatedAt: 2026-09-29T15:25:46.000Z
agentTools:
  projectIndex: https://developers.dailymotion.com/llms.txt
---

# Loop

Work with the loop parameter.

<Callout icon="📘" theme="info">
  ### You are reading **API v2 documentation**

  Still using the Legacy API? Access the <Anchor target="_blank" href="https://developers.dailymotion.com/v0/docs/welcome">Legacy API documentation</Anchor>.
</Callout>

<br />

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 <Anchor target="_blank" href="https://www.dailymotion.com/partner/embed/players">Player configuration</Anchor> and your object, you will be able to either loop a list of recommendations, a playlist or a single video.

<br />

## Player configuration for specific loop behaviors

Use the table below to set up your Player configuration for the intended loop behavior:

<Table align={["left","left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        **Expected loop behavior**
      </th>

      <th>
        **Embedded object**
      </th>

      <th>
        `loop`
      </th>

      <th>
        `recommendations.enable_automatic`
      </th>

      <th>
        `playback.enable_autonext`
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **Loop upon single video**

        Video loops smoothly without any interruption
      </td>

      <td>
        Video
      </td>

      <td>
        `true`
      </td>

      <td>
        `false`
      </td>

      <td>
        `false`
      </td>
    </tr>

    <tr>
      <td>
        **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.
      </td>

      <td>
        Video
      </td>

      <td>
        `true`
      </td>

      <td>
        `true`
      </td>

      <td>
        `true`
      </td>
    </tr>

    <tr>
      <td>
        **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.
      </td>

      <td>
        Playlist or   Video within a playlist
      </td>

      <td>
        `true`
      </td>

      <td>
        `true`
      </td>

      <td>
        `true`
      </td>
    </tr>
  </tbody>
</Table>

## Integration examples

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

<Accordion title="Player Embed Script">
  ```html Template
  
  <script src="https://geo.dailymotion.com/player/{Player ID}.js" data-video="{Video ID}" data-params="loop=true">
  </script>

  
  <script src="https://geo.dailymotion.com/player/{Player ID}.js" data-playlist="{Playlist ID}" data-params="loop=true">
  </script>
  ```
  ```html Example
  

  
  <script src="https://geo.dailymotion.com/player/x8lr5.js" data-video="x84sh87" data-params="loop=true">
  </script>

  
  <script src="https://geo.dailymotion.com/player/x8lr5.js" data-playlist="x79dlo" data-params="loop=true">
  </script>
  ```
</Accordion>

<Accordion title="Player Library Script">
  ```html Template
  <body>
  <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", {
  
      video: "{Video ID}",
  
      playlist: "{Playlist ID}",
  params: {
  loop: true
  }, }) .then((player) => console.log(player)) .catch((e) => console.error(e)); </script>
  </body>
  ```
  ```html Example
  

  <body>
  <script src="https://geo.dailymotion.com/libs/player/x8lr5.js"></script>

  <div id="my-dailymotion-player">My Player placeholder</div>

  <script> dailymotion .createPlayer("my-dailymotion-player", {
  
      video: "x84sh87",
  
      playlist: "x79dlo",
  params: {
  loop: true
  }, }) .then((player) => console.log(player)) .catch((e) => console.error(e)); </script>
  </body>
  ```
</Accordion>

<Accordion title="Player iFrame">
  ```html Template
  
  <iframe frameborder="0"width="640"height="360"
  src="https://geo.dailymotion.com/player/{Player ID}.html?video={Video ID}&loop=true"
  allowfullscreen allow="autoplay; fullscreen; picture-in-picture; web-share">
  </iframe>

  
  <iframe frameborder="0"width="640"height="360"
  src="https://geo.dailymotion.com/player/{Player ID}.html?playlist={Playlist ID}&loop=true"
  allowfullscreen allow="autoplay; fullscreen; picture-in-picture; web-share">
  </iframe>
  ```
  ```html Example
  

  
  <iframe frameborder="0"width="640"height="360"
  src="https://geo.dailymotion.com/player/x8lr5.html?video=x84sh87&loop=true"
  allowfullscreen allow="autoplay; fullscreen; picture-in-picture; web-share">
  </iframe>

  
  <iframe frameborder="0"width="640"height="360"
  src="https://geo.dailymotion.com/player/x8lr5.html?playlist=x79dlo&loop=true"
  allowfullscreen allow="autoplay; fullscreen; picture-in-picture; web-share">
  </iframe>
  ```
</Accordion>