How to send constant resolution 640x480

91 views
Skip to first unread message

Genesis

unread,
Sep 29, 2022, 10:49:30 AMSep 29
to discuss-webrtc
Hi, I'm having trouble defining a video resolution in a video conferencing project. I need to always send 640x480 to SDK, I specify this in the getusermedia method. after reading the information in the forums, I realized that getusermedia will not give me what I want, since webrts itself determines the optimal resolution depending on the speed of the Internet and the CPU. My question is:

1) is it possible to specify a permission constant?
2) if yes, how to implement it?

Marcos G.

unread,
Sep 29, 2022, 2:36:16 PMSep 29
to discuss-webrtc

What browser are you using (assuming firefox)?


You're looking for something like this:

getUserMedia({
  audio: true,
  video: {
    width: { min: 1024, ideal: 1280, max: 1920 },
    height: { min: 576, ideal: 720, max: 1080 }
  }
})

The terms you are looking for are "decimating frames" or "downscaling".

Chrome/Edge/Safari decimates frames just fine, firefox is the only major browser that doesn't at the moment. 

Please add a comment here if offering support for firefox in your application https://bugzilla.mozilla.org/show_bug.cgi?id=1286945

Genesis

unread,
Sep 30, 2022, 12:03:01 AMSep 30
to discuss-webrtc

no, it doesn't work in my case. talk about it https://groups.google.com/g/discuss-webrtc/c/u6XlfwUEAo8/m/pqd3Nsk5FQAJ. Are there any examples of using these methods?
четверг, 29 сентября 2022 г. в 23:36:16 UTC+5, marc...@gmail.com:

Genesis

unread,
Sep 30, 2022, 1:12:18 AMSep 30
to discuss-webrtc
https://www.w3.org/TR/mst-content-hint/#dfn-application-set-content-hint but it didn't work for me 

пятница, 30 сентября 2022 г. в 09:03:01 UTC+5, Genesis:

Rajneesh Soni

unread,
Oct 16, 2022, 2:49:38 AMOct 16
to discuss-webrtc
Reply all
Reply to author
Forward
0 new messages