question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fluid aspect ratio incorrect on android ( chrome )

See original GitHub issue

Description

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:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
smakinsoncommented, May 15, 2018

I’ll give that aspectRatio property a try, it looks like it does get used for determining the padding-top.

0reactions
thijstriemstracommented, May 15, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found