AgoraIO / API-Examples-Web

MIT License
221 stars 199 forks source link

calling AgoraRTC.createMicrophoneAndCameraTracks() does not show prompt permission for audio and camera in chrome #68

Closed Emmszhii closed 1 year ago

Emmszhii commented 1 year ago

The loader is stuck because the prompt for permission of using the camera and audio devices is not showing in chrome

rtc.dummyTracks = await AgoraRTC.createMicrophoneAndCameraTracks( { microphoneId: device?.localAudio, config: { ANS: true } }, { cameraId: device?.localVideo } ); rtc.dummyTracks[1].play(user-${dummyId});

Why is the prompt not showing in the chrome but other browser does?

Emmszhii commented 1 year ago

I'm closing this issue because it's working fine now.