-
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
issue to play video on ios with videojs API #3283
Comments
That should work, especially since that's what the videojs play button does anyway. |
Hello gkatsev, Thanks for your help ! i have an example here : http://public.matdev.fr/videojs To test the issue, you just need to turn user agent on iPad (tested with chrome and safari) |
I suspect this has something to do with the option: movingMediaElementInDOM, which is on by default for iOS and detected by useragent. |
One weird thing I'm seeing is a doubly-nested player div. videojs should be able to handle that, though, but can you try removing the |
yes, it work. thanks ! |
Interesting, I wonder why it does that double wrapping in this case. I'll investigate. |
@gkatsev Running into the same issue here. If you setup the player automatically with 'data-setup', and then in your own javascript reference the player with |
I remember investigating this. I don't remember anything happening from it. |
I was able to fix this by initializing video.js with the var myVideo = videojs(videoEl, { controls: true }); Importantly, I did not include the <video class="video-js vjs-default-skin vjs-big-play-centered" poster="img/video-poster.jpg">
...
</video> I have not dug into the video.js code, but my guess would be that the library is not properly adding the |
I can confirm that the nested |
Finally got time looking into this. Turns out the issue is that we aren't recognizing that the player has been created for that element if videojs is called more than once, either by calling |
Fixed in stable, release imminent. |
Thank you very much. We got exactly this issue as well, iPad not working (Chrome with User Agent iPad, iOS Simulator iOS 10 iPad Air, HW iPad 4) but iPhone 5S with iOS 9 and 10 was working. After the stable release was updated it fixed our issue. |
@inoas thanks for the confirmation! |
The main fix we want is videos playing in iOS See videojs/video.js#3283 Change-Id: I36efab34da33bc126b3fa63993890b6caead8a20
I'm stuck on video.js v4. Does anyone know a workaround for fixing this? Or maybe can someone point me in the right direction to fix this by editing some file in video.js v4? |
I'm with this issue too I can't play in iOS |
Hi, I'm facing the same issue. Dynamic HTML is generating from the server and Literal Control(ASP.NET) used to render the HTML. Way 1. HTML
Added JS and CSS file references in the head tag. When the page loads, Video.js will find this element and automatically set up a player in its place. Way 2. Initialize a HTML |
Sorry I found the solution. My mp4 video encoding was not proper. Tried using videojs's default movie (https://vjs.zencdn.net/v/oceans.mp4) and found that it works. To re-encode the video we can use handbrake(Download URL 'https://handbrake.fr/')" tool. |
I have some trouble to play a video with videojs API on ios 9.2. It work perfectly on desktop.
Steps to reproduce :
Results :
loading animation appear and after black screen, the video don't playing.
source code :
versions
Video.js 5.9.2
ipad air on ios 9.2
iphone 6 on ios 9.3.1
The text was updated successfully, but these errors were encountered: