开发者

How to use JavaScript to "stop" and "play" video that's inside an FLV player?

Is it possible to use JavaScript to "stop" and "play" video that's inside an FLV player?

I want to do this using only JavaScript and without modifying the FLV player or movies.

The FLV player I must use is one of the default players bundled with Flash (FLVPlayer_Progr开发者_Python百科essive).


You can use ExternalInterface to communicate between Flash and its host object, in this case JavaScript running within the host browser.

http://kb2.adobe.com/cps/156/tn_15683.html

EDIT: The link to the code download is dead on the previous link. Use this one for the code: http://www.adobe.com/devnet/flash/articles/external_interface.html

You will want to mimic the ExternalInterface_addCallback example.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜