How to get the src for a video with multiple sources?
Posted
by Sam Dutton
on Stack Overflow
See other posts from Stack Overflow
or by Sam Dutton
Published on 2010-05-27T09:19:19Z
Indexed on
2010/05/27
17:31 UTC
Read the original article
Hit count: 139
I'd like to be able to get the src value that is actually used for a video element like the following:
<video>
<source src="foo.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src="foo.webm" type='video/webm; codecs="vp8, vorbis"'>
<source src="foo.ogv" type='video/ogg; codecs="theora, vorbis"'>
</video>
In Firefox (at least), src is defined for the source elements but not for the video element.
How can I find which source is used?
© Stack Overflow or respective owner