I want to receive audio/video without accepting the permission that browser asks to access mic/cam. Is it possible?
I'm using SimpleWebRTC, my code is here:
// create our webrtc connection
var webrtc = new SimpleWebRTC({
// the id/element dom element that will hold "our" video
localVideoEl: 'localVideo',
// the id/element dom element that will hold remote videos
remoteVideosEl: '',
// immediately ask for camera access
autoRequestMedia: true,
debug: false,
detectSpeakingEvents: true,
autoAdjustMic: false,
media: {
video: {
frameRate: {
max: 30
},
width: {
max: 176
},
height: {
max: 144
}
},
audio: true
},
});
- If I delete this => autoRequestMedia: true or change it to false, so it doesn't ask to get permission and the result is NOTHING :(
If I leave this => autoRequestMedia: true to be true, so the browser asks to get permission,
2-1: if I don't accept, the result is NOTHING :( 2-2: if I accept, it works :)
So my problem is how I can receive(not send) data(audio/video) without accepting that permission popup or even set that autoRequestMedia to false and receive data?
Thanks