Reputation: 581
i am trying to get a video to play in all browsers, however while it works perfectly fine in chrome, in firefox it comes up with an error, and in I.E. 10 the video box loads up but does not run
here is the code :
<video id="myVideo" width="100%" controls="controls">
<source src="..\resources\Tutorial\video.ogg" type='video/ogg; codecs="theora, vorbis"' />
<source src="..\resources\Tutorial\video.mp4" type='video/mp4;'/>
</video>
how can i get my video to play in all browsers ?
Thanks guys :)
tried :
<video id="myVideo" width="100%" controls="controls">
<source src="..\resources\Tutorial\video.webm" type='video/webm; codecs="vp8, vorbis"' />
<source src="..\resources\Tutorial\video.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
<source src="..\resources\Tutorial\video.ogv" type='video/ogg; codecs="theora, vorbis"' />
Video tag not supported. Download the video <a href="..\resources\Tutorial\video.webm">here</a>.
</video>
but no luck either, same as above
Upvotes: 1
Views: 556
Reputation: 581
Simple solution
the slashes above are the wrong ones, it should be / now all is fine in all browsers apart from I.E 10, no errors just does not run
Upvotes: 1