How is it possible to play a video stored on the web through HTML5?
For example, this video http://www.cybertechmedia.com/samplevideos.html
And I need to play it. How can I refer to it?
I thought:
var video = getDocumentById('videoPreview');
video.myFile = ???;
What shall I refer to myFile with? Or shall I use something else?
See the chapter on video in Dive into HTML 5 for the long answer.
The short answer is:
In supporting browsers, use the
<video>element and set thesrcto point to the URIBut not those videos as they aren’t stored in formats that browsers support.