Skip to content
This repository has been archived by the owner on Nov 20, 2021. It is now read-only.

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

Open
neo opened this issue Feb 9, 2017 · 2 comments
Open

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

neo opened this issue Feb 9, 2017 · 2 comments

Comments

@neo
Copy link

neo commented Feb 9, 2017

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

@fregante
Copy link
Owner

fregante commented Feb 9, 2017

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.

@neo
Copy link
Author

neo commented Feb 9, 2017

Thanks!

@fregante fregante changed the title Is IIV compatible with <source> tag, doesn't seem working for me <source> might not work as well as <video src> Feb 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants