The navigator is pre-defined function of JS. When the navigator is called from Lightning, we are getting the mediaDevices property from navigator Object. It will return Undefined.
lighhtning Locker API Viewer is provide to see which standard DOM APIs are supported by Lightning Locker.
It says below standard API's are supported from version 46 and above
- navigator
- mediaDevices
Locker API Viewer URL : https://developer.salesforce.com/docs/component-library/tools/locker-service-viewer.
In our lightning component API version is v49. But unfortunately we are not getting the mediaDevices property value.
If any one give solution, we will really appreciate