0

I want to use short video tag format like

<video src="path" controls></video>

And tutorial in w3school says:

To make it work in all browsers - use <source> elements inside the <video> element.

But as far as I can see my browsers handle short syntax very good (I have Google Chrome and Firefox). So should I be worried about any possible issues with short video tag notation?

valignatev
  • 6,020
  • 8
  • 37
  • 61
  • Test on all browsers you are concerned about... – An0nC0d3r Oct 24 '15 at 14:24
  • Unfortunately I don't have access to IE and Safari also as to apple mobile devices so I can't test it against _any_ possible browsers. – valignatev Oct 24 '15 at 14:30
  • What I mean is... what browsers are you supporting? What is your specification?? – An0nC0d3r Oct 24 '15 at 14:31
  • [http://caniuse.com/#feat=ogg-vorbis](http://caniuse.com/#feat=ogg-vorbis). You were just lucky testing it on these browsers, @valentjedi – Cube. Oct 24 '15 at 14:34
  • The thing not in `ogg` format, but in short tag syntax. I especially care about safari and IE (starts with 9 version). – valignatev Oct 24 '15 at 14:51

1 Answers1

1

source part is about making it compatible with all browsers by including alternative formats for browsers that could not support the format specified in src.

In example: If you tried to play an .ogg file in IE12, which doesn't support .ogg with the code above, there would be no video whatsoever. If you provided alternative formats inside source, IE would eventually find the one it can handle and would play it instead.

Cube.
  • 483
  • 6
  • 15