Dailymotion autplay

Dailymotion video with autoplay

This example demonstrates playing Dailymotion videos with autoplay. Due to browser restrictions muted audio is required but randomly Dailymotion will provide unmuted audio. Customisations has been made to accomodate detected unmuted audio and work around JWPlayer restrictions. the mute config is required to make JWPlayer autoplay.

    <div class="flex w-full h-auto my-auto">
          <div id="autoplay" class=""></div>
  </div>
  <script type="text/javascript">
  	var player = jwplayer("autoplay").setup({
    "aspectratio": "16:9",
    "autostart": "true",
    "mute": true,
    "playbackRateControls": true,
    "sources": [
        {
            "file": "http://www.dailymotion.com/video/xkjkp1",
            "type": "video/dailymotion"
        }
    ],
    "width": "100%"
});
  </script>