fluid aspect ratio incorrect on android ( chrome )
See original GitHub issueDescription
Briefly describe the issue. The recorder is too tall on android in chrome in portrait orientation ( possibly others )
Steps to reproduce
set fluid: true, load on android in chrome
Results
Expected
The aspect ratio to match what I see in chrome on the desktop.
Actual
I see the recorder as much taller in chrome on android.
Error output
If there are any errors at all, please include them here.
Additional Information
Please include any additional information necessary here. Including the following:
When I dig into the dev tools on android I see:
.reportVideo-dimensions.vjs-fluid {
padding-top: 177.77777777777777%
}
on the desktop the padding-top is correct at 56.25%.
Here are the settings:
{
controls: true,
autoplay: true,
fluid: true,
controlBar: {
volumePanel: false
},
plugins: {
record: {
debug: true,
audio: true,
video: {
// video constraints: set resolution of camera
mandatory: {
minWidth: 1280,
minHeight: 720
}
},
maxLength: 120,
videoMimeType: 'video/webm;codecs=H264',
// dimensions of captured video frames
frameWidth: 1280,
frameHeight: 720
}
}
}
versions
videojs
what version of videojs does this occur with? 7.0.0
browsers
what browser are affected? chrome
OSes
what platforms (operating systems and devices) are affected? android
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
282484 - html5 changes aspect ratio when fullscreening content
It seems that "video" element's initial "object-fit" value is "fill", which will change the aspect ratio. It used to behave like "contain", which...
Read more >HTML5 Video aspect ratio incorrect on Android - Stack Overflow
But on my Android tablet (Chrome, Firefox, Dolphin), the aspect ratio seems to be locked at 4:3 (although the video is 16:9) and...
Read more >How To Use Aspect-Ratio CSS Property In Responsive Web ...
CSS aspect-ratio property helps you to have a better representation of your web page. This blog tells how CSS aspect-ratio works and how...
Read more >Aspect Ratio Problem - Google Photos Community
When I view them through Google Photos on my computer (PC) the aspect ration for some of the ones I cropped are incorrect....
Read more >AdSize | Google Play services
Mobile Marketing Association (MMA) banner ad size (320x50 density-independent pixels). public static final AdSize FLUID. A dynamically sized banner that matches ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll give that aspectRatio property a try, it looks like it does get used for determining the padding-top.
@smakinson good to see you’re making progress. If you have any fixes to contribute, feel free to open a pull request and I’ll review it asap.