Using Onload to stream video
Posted on 2008-10-05
Here is the scenario:
I have email to send a notice to watch a video.
I do not want to embed the video because of flash loading times....I want to use my streaming service.
Seems like an easy solution...just <a href> to the url of the streaming service.
My issue is that when I do that, it opens a whole page and shows a video of 247x207...plenty of white space.
Well...I can build a page and nest the video there...pretty graphics, etc....but what I really want is for the small viewer to pop up upon a click in the e-mail.
Upon loading of THAT page, use onload to call the window.open function that has all of the specifications of the video player.
I have the window.open code assembled.
Can someone help me with the onload code?
Again, the logic:
Receive e-mail --> Click link --> Go to url that has onload script that will automatically run window.open script--> streaming video service launches and video begins --> the Onload page is closed down, leaving the e-mail page and the small video playing. Again, I have the window.open script.