Chromecast IMA Ads

Launch casting session with Ima Ads

Casting videos with ad break support using Ima ad tags.

    
   <div class="flex w-full">
          <div id="ima-ads" class=""></div>
  </div>
  <script type="text/javascript">
  	var player = flowplayer("#ima-ads", {
    "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.jpg"
            }
        ],
        "subtitle": "Subtitle",
        "title": "Big Buck Bunny"
    },
    "clip": [
        {
            "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"
        }
    ],
    "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
            }
        ]
    },
    "share": false
});
  </script>