-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for webkit-playsinline #1367
Comments
I'm not sure what you mean by "copy attributes but don't provide an option". If the attribute is persisted when moving the video element (as #314 fixed), it sounds like we're doing everything we can to support this tag from our side. |
for autoplay you provide option or data-options, not for this attibute, this is just not consistent |
and does not work with plugin like youtube, youtube plugin remove the video tag, if you have a playlist mixing different technologies, the video tag is not re-created with the correct attributes. |
Ok I think we're talking about a few different things here. Would you please give an example of what we don't support regarding autoplay or webkit-playsinline? Regarding the YouTube plugin, that specifically is an issue you'll have to take up with the maintainer (but I don't think he'll be able to help there because, YouTube). |
Ok, I'm not clear and there is definitely a problem, let me explain the use case 👍 1/ Consider a html page containing a video tag with webkit-playsinline, and the plugin youtube (youtube plugin is an example and there is no problem with this plugin, the only thing relevant is that the plugin dispose the video attribute) at step 3 we expect the webkit-playsinline to exist, and you understand why it's not the case, nothing on getAttributeValues to get the value and no option to tell videojs to use this attribute. |
Does the process you described work if step two didn't exist? |
@gkatsev, no but the part of code in charge of re-creating the video element is video.js, not videos-youtube, so this is a videojs problem. More over we already have this inconsistency on having no javascript interface for this specific attribute (we have one for autoplay for example). |
I don't know how I feel about adding this to the API. It's not in the W3C spec and is entirely iOS-specific, so I think we shouldn't necessarily be explicitly adding this. That being said, @gkatsev and I just talked about this briefly in IRC and he made the excellent point that we should do a better job of restoring all attributes when re-creating an element. This would allow us to future-proof ourselves from additional namespaced attributes like this for any platform rather than needing to add an API for each one. |
perfect, let's close this pull request, I will sent a new one, thank you. |
Awesome! Thank you so much for the help, @dcharbonnier. |
The PR has been merged! Thanks for the help! |
it's not and you still have the bug, if someone need that, use my fork |
yes I had the same impression |
Soon :) |
NOW it's merged in. :) |
youhou, MERCI ! |
Has this been added to the latest release v4.12.13? I have added playsinline': true, to my videoJs setup and its not detecting it. |
Does anyone perhaps have a working code example for me on how to play video inline on iOS? We have read extensively in the forums and tried all suggestions but we just can't seem to get it to work |
There is currently no way to use videojs to play a video inline on iOS devices .
webkit-playsinline
Indicates that a video element should play inline instead of full-screen. Enabled only in a UIWebView with the allowsInlineMediaPlayback property set to YES.
Related Tags : video
Availability : Available in iOS 4.0 and later.
https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html#//apple_ref/doc/uid/TP40008058-SW30
Related to #896, #314 copy attributes but don't provide an option.
The text was updated successfully, but these errors were encountered: