Click to See Complete Forum and Search --> : preloading video?


pdecotis
04-24-2003, 08:37 AM
Is there a way to preload a video so it play seamlessly when a user clicks on it?

pyro
04-24-2003, 08:41 AM
Well, you can preload it, but that doesn't mean it will play seamlessly, as it will quite probably take longer to load than it will have before the user clicks the link to show it. Anyway, here's the syntax:

myvid = new Image()
myvid.src = "youvideo.mpg"

pdecotis
04-24-2003, 08:46 AM
Thanks...the video is 7 minutes long so I want to load it before the page loads fully? Any suggestions?

pyro
04-24-2003, 08:48 AM
Originally posted by pdecotis
Any suggestions? Yeah. Look into streaming video. I seriously doubt anyone is going to sit there and wait while 7 minutes of video load...