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

116
Views
getUserMedia - camera vertical stream

I have a problem with streaming from the camera in app. I used webrtc and simple-peer in the project. Project work well but when I would use a camera (Logitech streamcam) as a vertical cam, the stream has black bars on the left and right side. Ultimately app has to work on 2 devices: 1 - vertical screen with a horizontal stream 2 - horizontal screen with a vertical stream Some ideas, how to get a vertical stream without black bars? When I use the front camera from the phone work perfectly...

/**
 * UserMedia constraints
 */
let constraints = {
    audio: true,
    video: true,
}
/////////////////////////////////////////////////////////

constraints.video.facingMode = {
    ideal: "user"
}

// enabling the camera at startup
navigator.mediaDevices.getUserMedia(constraints).then(stream => {

    localVideo.srcObject = stream;
    localStream = stream;

    init()

}).catch(e => alert(`getusermedia error ${e.name}`))

demo - 77.55.214.111:8080

vertical camera stream

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!