Auto request cast session when available example.
<div class="flex w-full">
<div id="auto-session" class=""></div>
</div>
<script type="text/javascript">
var player = flowplayer("#auto-session", {
"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"
},
"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"
}
],
"share": false
});
player.one("progress", function() {
player.requestSession();
});
</script>