Closed iambumblehead closed 7 years ago
Thank you! But it's not that simple, it needs to find the first compatible <source>
, it's probably best to leave it to the browser. I've been thinking that if it can't find a src
it has to wait to initialize it. I
added
getVideoSrc
function, which checks for the<source>
element if video.src or video.currentSource are falsey --allows one to use this script with video that uses the<source>
element.https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML5_audio_and_video