-
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
Fluid mode is not working for HLS videos on mobile Chrome, Safari #6939
Comments
👋 Thanks for opening your first issue here! 👋 If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
It's because the video element reports |
…7023) The video dimensions aren't necessarily known at loadedmetadata particularly with native playback on iOS. In fluid mode, the player defaults to 16:9 and does not update once the dimensions are known. - Updates player styles on resize events. - Fixes arguments passed to addEventedCallback so the callbacks are executed. Fixes #6939
…ideojs#7023) The video dimensions aren't necessarily known at loadedmetadata particularly with native playback on iOS. In fluid mode, the player defaults to 16:9 and does not update once the dimensions are known. - Updates player styles on resize events. - Fixes arguments passed to addEventedCallback so the callbacks are executed. Fixes videojs#6939
Description
The player fails to keep itself sized to a particular aspect ratio, using the fluid mode, when using HLS video source on mobile Chrome, Safari
Steps to reproduce
Results
Expected
the player should be resized to the video aspect ratio, works on mobile Firefox:
Actual
The player is not resized, keeping its original size and leaving black spaces above and below the video on mobile Chrome, Safari:
Additional Information
versions
videojs
Latest
browsers
Chrome, latest. Safari
OSes
Android, iOS
plugins
none
The text was updated successfully, but these errors were encountered: