Dynamic Video Source

J

Jason Robertson

Hi,

I have video on my site and I'm trying to write something in java script
that will change the source of that video (without reloading the page).

Currently I have

<embed id='vid' src='movie.avi' enablejavascript='true>

and then in javascript I do

vid = document.getElementById("vid")
vid.src = <new path name for video>

This technique works for changing the source of images but does not work
here, any ideas? I've also tried using <object> and <param> tags but again
I cannot alter the source.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top