How to prohibit the access permission popup for microphone/camera on Web platform?
2023-10-19
Products / Plugins:Video Call / Audio Call / Live streaming
Platform / Framework:Web
There are the following 3 scenarios:
Scenario 1: Prohibit camera access permission popup
- When calling the createZegoStream interface, set the video property of the camera capture stream related configuration to false.
- Comment out the checkSystemRequirements interface related code, or set the camera property of checkSystemRequirements to false.
Both of the above must be satisfied.
Scenario 2: Prohibit microphone access permission popup:
-
When calling the createZegoStream interface, set the audio property of the camera capture stream related configuration to false.
-
Comment out the checkSystemRequirements interface related code, or set the microphone property of checkSystemRequirements to false.
Both of the above must be satisfied.
Scenario 3: Prohibit camera and microphone access permission popup
- Do not call the createZegoStream interface, or when calling the createZegoStream interface, set the video and audio properties of the camera capture stream related configuration to false.
- Comment out the checkSystemRequirements interface related code, or set the camera and microphone properties of checkSystemRequirements to false.
Both of the above must be satisfied.
