Click to See Complete Forum and Search --> : Loading Complete Message


PaB
05-28-2005, 08:15 PM
I have been asked to put a video (size about 4.3MB) on a website, which I have done. It is a .avi file and is using Windows Media Player to play. The problem is that because of the size of the file, if autostart is set to "true", the file starts playing before it is fully downloaded. Then, the video freezes periodically while the audio continues to play. If autostart is set to "false", then the visitor doesn't know when the download is complete. Once the download finishes the file plays with no problem.
Will someone let me know how to notify the visitor when the download completes so they will know when to start the video?
Thank you.

PaB
05-29-2005, 09:58 AM
I think I found the information I need at http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onload.asp but I am not able to get it to work. Can someone tell me what I need to change to make it work? I have tried it as an embed and also as an object.
Thank you for your help.

Frozen Peas
05-29-2005, 12:45 PM
Show us what you have so far. There is no such thing as a free lunch.

PaB
05-29-2005, 01:21 PM
I have tried several things. The following is on the page I put a link to:

<SCRIPT>
function imageLoaded()
{
window.status = "Image " + event.srcElement.src + " is loaded";
}
</SCRIPT>
<BODY>
<IMG SRC="sample.gif" onload="imageLoaded()">
</BODY>

Also on that page it states that it will work with an embed, which is what I am using.

The line on my page is:
<EMBED SRC="mysite.com/myvideo.avi" onload="imageLoaded()" AUTOSTART="FALSE" LOOP="0" ALIGN="CENTER"></EMBED>
where I have placed the actual URL and file in the "mysite.com/myvideo.avi" location.

Thank you for your assistance.