Multi Format Playlist Selection

Youtube Playlist With Mp4 videos

This example demonstrates playing youtube videos with other formats include standard html5 videos.

    <div class="flex w-full h-auto my-auto">
          <div id="multi-playlist" class=""></div>
  </div>
  <script type="text/javascript">
  	var player = jwplayer("multi-playlist").setup({
    "aspectratio": "16:9",
    "backgroundLoading": false,
    "playbackRateControls": true,
    "playlist": [
        {
            "sources": [
                {
                    "file": "http://www.youtube.com/watch?v=Vpg9yizPP_g",
                    "type": "youtube"
                }
            ]
        },
        {
            "sources": [
                {
                    "file": "https://videos.electroteque.org/bitrate/sintel_2000k.webm",
                    "type": "video/webm"
                },
                {
                    "file": "https://videos.electroteque.org/bitrate/sintel_2000k.mp4",
                    "type": "video/mp4"
                }
            ]
        },
        {
            "sources": [
                {
                    "file": "http://www.youtube.com/watch?v=MFg8mBaMoPs",
                    "type": "youtube"
                }
            ]
        }
    ],
    "width": "100%"
});
  </script>