I’ll typically create a video on a page like this…
[code=javascript]
<div id=’vtLocation’ align=”center”>
<video width=”640″ height =”480″ controls poster=”/images/somephoto.jpg”>
<!–cSafari / iOS, latest firefox, and all modern browsers SHOULD support now –>
<source src =”/vids/myVideo.mp4″ type=’video/mp4′ >
<!– Older Firefox / Opera / Chrome –>
<source src =”/vids/myVideo.webm” type=’video/webm’ >
<!– Firefox / Opera / Chrome ???–>
<source src =”/vids/myVideo.ogv” type=’video/ogg’ >
<!– my call here will test for HTML5 readyness and involk Flash player if not. –>
<script type=”text/javascript”> InvolkPlayer(‘myVideo.flv’, false, ‘vtLocation’, true); </script>
<!– download as last resort ??–>
<div align=”center”>
<p>If you are unable to view the video, please email me, and let<br>
me know what computer and browser you’re using, so I can improve the site.<br><br>
</p>
</div>
</video>
</div>
For now take it for granted my InvokePlayer() call for FLASH fallback works. My question is, what if I want to set up some buttons or links on the page to switch to another video. I’m thinking to do that i would have to directly access the video element from the DOM, and modify it there? Not sure.