Re: Default Cam

2020-05-22 Thread Maxim Solodovnik
For reference: https://issues.apache.org/jira/browse/OPENMEETINGS-2369 Thanks for the fix Konstantin :) On Fri, 22 May 2020 at 09:01, Maxim Solodovnik wrote: > You are right, > > I do remember I had some issues with this mediaConstraints, but ideal > seems to work :) > can you create JIRA and P

Re: Default Cam

2020-05-21 Thread Maxim Solodovnik
You are right, I do remember I had some issues with this mediaConstraints, but ideal seems to work :) can you create JIRA and PR? (JIRA is required so this new feature will appear in CHANGELOG) :) On Fri, 22 May 2020 at 02:24, Konstantin Kuzov wrote: > Well, in my understanding "ideal" unlike "

Re: Default Cam

2020-05-21 Thread Konstantin Kuzov
Well, in my understanding "ideal" unlike "exact" is just a suggestion and shouldn't by itself raise any errors if browser cannot satisfy a request. So it shouldn't make any difference for devices with less than two cameras where at least one camera has been marked as "front". I also suspect that in

Re: Default Cam

2020-05-21 Thread Maxim Solodovnik
The main questions will it work 1) at laptop 2) PC without camera 3) laptop/PC with several cameras And I guess it better to test this code with back camera listed first Sebastian can test it at Mac :) (and I guess it can be guarded with "constrain supported" check) On Fri, 22 May 2020 at 00:09,

Re: Default Cam

2020-05-21 Thread Konstantin Kuzov
Browser support seems to be pretty good according to mozilla's link. Only apple devices needs to be tested. Tested it with these changes on my android phone: https://github.com/CkNoSFeRaTU/openmeetings/commit/490f51400e44295b00815fd70f30a065a2705638 And it appears to be working just fine. Though m

Re: Default Cam

2020-05-21 Thread Maxim Solodovnik
Well, this is something other than "Select front camera if none was selected before" But it can help IF such constraint is supported by client browser :) I also had some issues with `acceptable, ideal, and/or exact` constraints This can be investigated :) Any volunteers? :))) On Thu, 21 May

Re: Default Cam

2020-05-21 Thread Konstantin Kuzov
Isn't it possible to suggest or force exact type of camera using MediaTrack's video constraint facingMode? https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints/facingMode чт, 21 мая 2020 г. в 15:45, Maxim Solodovnik : > Hello Peter, > > unfortunately there is no parameters we c

Re: Default Cam

2020-05-21 Thread Maxim Solodovnik
Hello Peter, unfortunately there is no parameters we can use to distinguish if it is front or back camera :( We can get the list of devices and detect if it is Audio or Video device So we create 2 lists and select first item from both (or previously selected ) On Thu, 21 May 2020 at 17:08,