开发者

jQuery + Flash Media Playback or YouTube: call function after flv finishes playing?

I have an .flv movie embedded in HTML using Adobe's Flash Media Playback. Once the movie finishes playing, is it possible to call a function with jQuery开发者_如何学C and/or Javascript? Would this be possible with an embedded YouTube video?

Once the movie finishes I need to display some content. At the moment, the user has to click a button to close the movie and continue on to that content and I'd like to remove the need for that click.


Yes, that is possible. If you have access to the actionscript you can use an ExternalInterface to communicate with javascript. Also, youtube has an javascript api that is very comprehensive and should allow you to determine the status of the video and do whatever you want after it finishes with player.getPlayerState()

http://code.google.com/apis/youtube/js_api_reference.html#Playback_status

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜