Copy link to clipboard
Copied
I am trying to add eventlistener to this video so that can play some video immediately after the preroll_src ends. Using Adobe media server to run an html5 video player that can fall back to inhertied flash player.See the code:
<body>
<div id="videoDiv">
</div>
<script>
var html="";
preroll_src="http://localhost:8134/Granicus.mp4";
html += '<embed src="swfs/SampleMediaPlayback.swf" width=';
html +=xwidth+' height=';
html+=xheight+' id="SampleMediaPlayback" quality="high" bgcolor="#000000" name="SampleMediaPlayback" allowfullscreen="true" pluginspage="http://www.adobe.com/go/getflashplayer" flashvars="&src=';
html+=preroll_src+'&autoHideControlBar=true&streamType=vod&autoPlay=false&verbose=true" type="application/x-shockwave-flash">';
html += '</embed>';
$("#videoDiv").html(html);
Copy link to clipboard
Copied
could anyone help?
I am trying to embed flash player in html. How do I find out that the video is done playing? My objective is to play another video after this is over. something like adding eventlistener.
<body > <div id="videoDiv" class="cls"></div></body>
<script>
var html = '<embed src="swfs/SampleMediaPlayback.swf" width='400 height=300 id="SampleMediaPlayback" quality="high" bgcolor="#000000" name="SampleMediaPlayback" allowfullscreen="true" pluginspage="http://www.adobe.com/go/getflashplayer" flashvars="&src="http://64.165.34.7:8134/vod/cupertino/nobacco.mp4"&autoHideControlBar=true&streamType=vod&autoPlay=false&verbose=true" type="application/x-shockwave-flash"></embed>';
$("#videoDiv").html(html);