Skip navigation
shivanisanjose
Currently Being Moderated

How to add event listener to Embedded flash player

Apr 18, 2013 2:15 PM

Tags: #flash #player #embedded #eventlistener

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=fa lse&verbose=true" type="application/x-shockwave-flash">';

html += '</embed>';

$("#videoDiv").html(html);

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points