Hi,
How can i test with javascript whether <object> like flash, quicktime and etc. has finished loading and ready for playback?
(for image i can use onload event)
detecting when object is completely loaded
Moderator: General Moderators
what i'm trying to do is that i have an iframe into which i load image,wmw,mov,ram or swf file.
while object is loading I want to display some simple js animation and stop when object completely loaded.
How would you do that?
i guess onload event of iframe is useless because it fires when all tags are loaded and not when all content is loaded.
while object is loading I want to display some simple js animation and stop when object completely loaded.
How would you do that?
i guess onload event of iframe is useless because it fires when all tags are loaded and not when all content is loaded.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
could potentially use the onload event of the iframe, at least by that point the object should basically be loaded, whether fully loaded or not I'm not sure, but the object instance itself should exist by that point, so basically it is loaded.. it just may take that object a bit of time to find and load the media it's being pointed to..
i investigated an options of using object properties that are exposed to javascript.
for example some one pointed me to this link:
http://developer.apple.com/documentatio ... ew-78.html
it is for quicktime...
i guess there is something similar for windows media and flash and realvideo... but it is really time-consuming (pita) to read all these various dev manuals and find the needed properties.... and add to that that this must work in at least mozilla based browsers and ie.
i would gladly take the challenge but not in these times.
Maybe you have some other ideas how to detect whether content is finished loading?
for example some one pointed me to this link:
http://developer.apple.com/documentatio ... ew-78.html
it is for quicktime...
i guess there is something similar for windows media and flash and realvideo... but it is really time-consuming (pita) to read all these various dev manuals and find the needed properties.... and add to that that this must work in at least mozilla based browsers and ie.
i would gladly take the challenge but not in these times.
Maybe you have some other ideas how to detect whether content is finished loading?