iphone-inline-video icon indicating copy to clipboard operation
iphone-inline-video copied to clipboard

<source> might not work as well as <video src>

Open neo opened this issue 8 years ago • 2 comments

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

neo avatar Feb 09 '17 15:02 neo

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.

fregante avatar Feb 09 '17 15:02 fregante

Thanks!

neo avatar Feb 09 '17 15:02 neo