So I'm embedding google video on my site. However I want to have navigation on the page that changes what video is displayed to the user and I want it to be done dynamically.
So here is how google tells me to embed a video on my page
<embed id="myVideo" style="width:100%;height:5
" flashvars="&subtitle=on"> </embed>
(note I added the id myself)
and what I want to do is when a link is clicked change the src of the embedded video so that when you hit play it plays the new video. Preferably I'd also like to change the image being cast on the video to that of the new video.
<a href="#" onclick="changeVideo('http://video.google.com/videoplay?docid=-2004785759717366066&hl=en'
.src = videoURL;
I've tried a lot of different things but I can't find anything that will work... does anybody have any ideas?