iphone-inline-video
iphone-inline-video copied to clipboard
<source> might not work as well as <video src>
I figured doing the source tags like this:
<video>
<source>
<source>
</video>
is better than this and switch the src
manually:
<video src="..." />
But it doesn't seem to work with me. It works on iOS 10 but not iOS 9, so I think it might be an issue with IIV.
Thanks
If you really need <source>
you'll probably have to use the preload
attribute and run enableInlineVideo()
after loadstart
video.addEventListener('loadstart', function () {
enableInlineVideo(video);
});
I've postponed doing this internally because it'd require non-trivial work to make the entire module async.
The alternative would be to just stick with src
since mp4
is supported everywhere now.
Thanks!