• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

How to add event listener to Embedded flash player

New Here ,
Apr 18, 2013 Apr 18, 2013

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);

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 23, 2013 Apr 23, 2013

Copy link to clipboard

Copied

LATEST

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);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines