opentok-react icon indicating copy to clipboard operation
opentok-react copied to clipboard

On click of Screen share pop up's cancel button gives an fatal error

Open rohanrana opened this issue 3 years ago • 4 comments

On-screen share, popup cancel am getting this error Unhandled Rejection (OT_USER_MEDIA_ACCESS_DENIED): End-user denied permission to hardware devices (getUserMedia error: NotAllowedError)

please help me out @enricop89 Here is my issue video https://www.loom.com/share/0a2e1e849433433da42ab795904cd608

rohanrana avatar Mar 19 '21 18:03 rohanrana

you can listen to that error using the event accessDenied. It's not really an error though, it's just how the browser handle it.

this.publisherEventHandlers = {
      accessDenied: event => {
        console.log('Publisher Screen press cancel');
      }
    };
  }

  render() {
    return (
      <OTSession apiKey="your-api-key" sessionId="your-session-id" token="your-session-token">
        <OTPublisher
          properties={this.publisherProperties}
          eventHandlers={this.publisherEventHandlers}
        />
      </OTSession>
    );
  }

enricop89 avatar Mar 22 '21 09:03 enricop89

@enricop89 well I have done the same still getting the error and strange thing is that am.not getting this error in Firefox am getting this error only in chrome

rohanrana avatar Mar 22 '21 09:03 rohanrana

Same issue

alanRiveros avatar May 28 '21 02:05 alanRiveros

On-screen share, popup cancel am getting this error Unhandled Rejection (OT_USER_MEDIA_ACCESS_DENIED): End-user denied permission to hardware devices (getUserMedia error: NotAllowedError)

please help me out @enricop89 @alanRiveros @rohanrana

SumitAgarwal1993 avatar Oct 01 '21 08:10 SumitAgarwal1993