开发者

Run script when Flash video completely loads?

开发者 https://www.devze.com 2023-03-11 19:38 出处:网络
I am using an <object> tag to play a Flash video (.swf) on a website. The markup looks like the following:

I am using an <object> tag to play a Flash video (.swf) on a website. The markup looks like the following:

<object classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" 
        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0"
        ...>
    <param name="movie" value="url to video" />
    <param name="bgcolor" value="#000000" />
    ...
    <embed src="url to video" type="application/x-shockwave-flash" ... />
</object>

Is there a client-side event or a way to detect via JavaScript when the Flash video has completely loaded and is ready to play without buffering or interruption开发者_如何转开发s?

In short, I want to hide this <object> tag initially and then show it once the video is completely loaded and ready to play.

Thanks

0

精彩评论

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