"Loading Complete" Message
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?
Last edited by PaB; 05-29-2005 at 09:29 AM.
I think I found the information I need at http://msdn.microsoft.com/workshop/a...nts/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.
Show us what you have so far. There is no such thing as a free lunch.
I have tried several things. The following is on the page I put a link to:
window.status = "Image " + event.srcElement.src + " is loaded";
<IMG SRC="sample.gif" onload="imageLoaded()">
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)