function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mariem MejrissiMariem Mejrissi 

Error " Your browser does not support media devices"

Hi everyone, 
My problem is that mediaSupport return false and the camera still not streaming. How can I fix that ? 
 startStreaming: function() {
        const mediaSupport = 'mediaDevices' in navigator;
        if (mediaSupport && null == {
           navigator.mediaDevices.getUserMedia({ audio: false, video: {facingMode: 'environment' } })
                .then((mediaStream) => {
           = mediaStream;
           = mediaStream;
                .catch(function (err) {
        } else {
            alert('Your browser does not support media devices.');
VinayVinay (Salesforce Developers) 
Hi Mariem,

Currently, navigator.mediaDevices isn't available in lightning.  Kindly review below Idea link and vote for this feature.


Please mark as Best Answer if above information was helpful so that it can help others in the future.