Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

89
Views
Video configurations not being followed in getUserMedia()

I am trying to fullscreen my camera stream, but I am running into issues with the sizing. Does getUserMedia() have a size cap?

const $size = params.VIDEO_SIZE[sizeOption];
    const videoConfig = {
      audio: false,
      video: {
        facingMode: "user",
        width: $size.width,
        height: $size.height,
        frameRate: {
          ideal: targetFPS,
        },
      },
    };

    console.log(`${videoConfig.video.width}x${videoConfig.video.height}`); //1866x1051

    const stream = await navigator.mediaDevices.getUserMedia(videoConfig);

    //stream size not following videoConfig settings
    let { width, height } = stream.getTracks()[0].getSettings();
    console.log(`${width}x${height}`); // 1280x720
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!