Closed FluorescentHallucinogen closed 7 years ago
This is my code:
<app-media-devices
kind="videoinput"
selected-device="{{videoDevice}}">
</app-media-devices>
<app-media-stream
video-device="[[videoDevice]]"
video-constraints='{"facingMode":"environment"}'
stream="{{stream}}"
active>
</app-media-stream>
If I remove video-device="[[videoDevice]]"
from <app-media-stream>
, all is ok.
Yes, if you specify a device, the device will be given precedence. The device is intended to be a shortcut that adds an exact
field to the video constraints referring to the deviceId
.
One question: why the code above worked in previous versions? :thinking:
For some reason, video-constraints='{"facingMode":"environment"}'
no longer works again starting Chrome for Android 61 (Dev and Canary). All is ok on Chrome for Android 60 and 59 (Beta and Stable).
Here is the code that I use:
<app-media-stream
video-constraints='{"facingMode":"environment"}'
stream="{{stream}}"
active>
</app-media-stream>
The problem is in https://github.com/webrtc/adapter.
I've updated
app-media
to the latest version andvideo-constraints='{"facingMode":"environment"}'
no longer works.