Chromecast Playlists

Playlists with ads and subtitles

Playlists with Chromecast Demo

Demonstrated is a detailed playlist , with subtitles. Subtitles will be configured to display while casting.

    
  <div class="flex w-full">
          <div id="playlists" class="">
              <a class="fp-prev">prev</a>
              <a class="fp-next">next</a>
          </div>
  </div>
  <script type="text/javascript">
  	var player = flowplayer("#playlists", {
    "chromecast": {
        "castAppID": "5C78621A",
        "debug": true
    },
    "playlist": [
        {
            "castInfo": {
                "artwork": [
                    {
                        "sizes": "128x128",
                        "src": "images/stills/bbb_128x128.png",
                        "type": "image/png"
                    },
                    {
                        "sizes": "512x512",
                        "src": "images/stills/bbb_512x512.png",
                        "type": "image/png"
                    }
                ],
                "images": [
                    {
                        "url": "http://192.168.5.25:8000/plugins//flowplayer/flowplayer7/chromecast/images/stills/bbb_still.png"
                    }
                ],
                "subtitle": "Subtitle",
                "title": "Big Buck Bunny"
            },
            "ima": {
                "ads": [
                    {
                        "adTag": "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=",
                        "time": 30
                    },
                    {
                        "adTag": "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/48717572/fp-overlay&ciu_szs&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&description_url=https%3A%2F%2Fflowplayer.org&correlator=[timestamp]",
                        "time": 60
                    }
                ]
            },
            "sources": [
                {
                    "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"
                }
            ],
            "subtitles": [
                {
                    "default": 1,
                    "kind": "subtitles",
                    "label": "English",
                    "src": "//videos.electroteque.org/subtitles/sintel/sintel_en.vtt",
                    "srclang": "en"
                },
                {
                    "kind": "subtitles",
                    "label": "Deutsch",
                    "src": "//videos.electroteque.org/subtitles/sintel/sintel_de.vtt",
                    "srclang": "de"
                },
                {
                    "kind": "subtitles",
                    "label": "French",
                    "src": "//videos.electroteque.org/subtitles/sintel/sintel_fr.vtt",
                    "srclang": "fr"
                },
                {
                    "kind": "subtitles",
                    "label": "Italian",
                    "src": "//videos.electroteque.org/subtitles/sintel/sintel_it.vtt",
                    "srclang": "it"
                }
            ]
        },
        {
            "castInfo": {
                "artwork": [
                    {
                        "sizes": "128x128",
                        "src": "images/stills/sintel_128x128.png",
                        "type": "image/png"
                    },
                    {
                        "sizes": "512x512",
                        "src": "images/stills/sintel_512x512.png",
                        "type": "image/png"
                    }
                ],
                "images": [
                    {
                        "url": "http://192.168.5.25:8000/plugins//flowplayer/flowplayer7/chromecast/images/stills/sintel_still.png"
                    }
                ],
                "subtitle": "Subtitle",
                "title": "Sintel"
            },
            "sources": [
                {
                    "src": "https://videos.electroteque.org/bitrate/sintel_2000k.mp4",
                    "type": "video/mp4"
                }
            ],
            "subtitles": [
                {
                    "default": 1,
                    "kind": "subtitles",
                    "label": "English",
                    "src": "//videos.electroteque.org/subtitles/sintel/sintel_en.vtt",
                    "srclang": "en"
                },
                {
                    "kind": "subtitles",
                    "label": "Deutsch",
                    "src": "//videos.electroteque.org/subtitles/sintel/sintel_de.vtt",
                    "srclang": "de"
                },
                {
                    "kind": "subtitles",
                    "label": "French",
                    "src": "//videos.electroteque.org/subtitles/sintel/sintel_fr.vtt",
                    "srclang": "fr"
                },
                {
                    "kind": "subtitles",
                    "label": "Italian",
                    "src": "//videos.electroteque.org/subtitles/sintel/sintel_it.vtt",
                    "srclang": "it"
                }
            ]
        }
    ],
    "share": false
});
  </script>