Video Snapshot Playlists

Video Snapshot within playlists

This example demonstrates configuring the plugin with playlist items.

     
     <script src="//cdn.flowplayer.com/releases/native/3/stable/plugins/playlist.min.js"></script>

  <div class="flex flex-col w-full">
          <div id="playlists" class="is-snapshot"></div>


            <div id="playlist-ui"></div>
  </div>
  <script type="text/javascript">
  	var player = flowplayer("#playlists", {
    "controls": "#playlist-ui",
    "snapshot": {
        "serverurl": "https://api.electroteque.org/save",
        "tokenurl": "https://api.electroteque.org/token"
    },
    "src": {
        "items": [
            {
                "snapshotname": "test2-[time].png",
                "src": [
                    {
                        "src": "https://videos.electroteque.org/bitrate/big_buck_bunny_2000k.webm",
                        "type": "video/webm"
                    },
                    {
                        "src": "https://videos.electroteque.org/bitrate/big_buck_bunny_2000k.mp4",
                        "type": "video/mp4"
                    },
                    {
                        "src": "https://videos.electroteque.org/bitrate/big_buck_bunny_2000k.ogv",
                        "type": "video/ogg"
                    }
                ],
                "title": "Big Buck Bunny"
            },
            {
                "snapshotname": "test3-[time].png",
                "src": [
                    {
                        "src": "https://videos.electroteque.org/bitrate/elephants_dream_2000k.webm",
                        "type": "video/webm"
                    },
                    {
                        "src": "https://videos.electroteque.org/bitrate/elephants_dream_2000k.mp4",
                        "type": "video/mp4"
                    },
                    {
                        "src": "https://videos.electroteque.org/bitrate/elephants_dream_2000k.ogv",
                        "type": "video/ogg"
                    }
                ],
                "title": "Elephants Dream"
            }
        ],
        "type": "flowplayer/playlist"
    },
    "token": "eyJraWQiOiIyeHRpc0Q5NHZzTjIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjIjoie1wiYWNsXCI6NixcImlkXCI6XCIyeHRpc0Q5NHZzTjJcIixcImRvbWFpblwiOltcImVsZWN0cm90ZXF1ZS5vcmdcIl19IiwiaXNzIjoiRmxvd3BsYXllciJ9.WLUkZHpDNoaXWDaFO2V5UfXm7SnDvE1pFAM0e7ppnFovOSyCCZM-b8gQNBSElB5yirTP__x76Qyo8pMWh6lVrw"
});
  </script>