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 <master.nosfer...@gmail.com>
wrote:

> 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 most cases only internal cameras will have this user-placement mark if
> OS even support that distinction at all.
> We can guard it by mediaDevices.getSupportedConstraints() but browser
> which doesn't support such constraint should just ignore it without raising
> any errors according to standard.
>
> чт, 21 мая 2020 г. в 20:21, Maxim Solodovnik <solomax...@gmail.com>:
>
>> 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, Konstantin Kuzov <
>> master.nosfer...@gmail.com> wrote:
>>
>>> 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 my phone have first (0)
>>> camera as front camera already. But it behave correctly if I change "user"
>>> to "environment" or vice-versa.
>>>
>>>
>>> чт, 21 мая 2020 г. в 19:27, Maxim Solodovnik <solomax...@gmail.com>:
>>>
>>>> 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 2020 at 23:20, Konstantin Kuzov <
>>>> master.nosfer...@gmail.com> wrote:
>>>>
>>>>> 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 <solomax...@gmail.com>:
>>>>>
>>>>>> 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, Peter Dähn <da...@vcrp.de> wrote:
>>>>>>
>>>>>>> Hi together,
>>>>>>>
>>>>>>> if one use a device with two cams rear view cam is selected by
>>>>>>> default.
>>>>>>> I think if it is possible it is better to use front cam as default.
>>>>>>> WDYT?
>>>>>>>
>>>>>>> Greetings Peter
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards,
>>>>>> Maxim
>>>>>>
>>>>>
>>>>
>>>> --
>>>> Best regards,
>>>> Maxim
>>>>
>>>
>>
>> --
>> Best regards,
>> Maxim
>>
>

-- 
Best regards,
Maxim

Reply via email to