-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you deny access to the micphone or camera, then DetectRTC returns true for the micphone and camera #82
Comments
Did you try this? navigator.mediaDevices.getUserMedia({
audio: true,
video: true
}).then(function() {
DetectRTC.load(function() {
alert('isWebsiteHasMicrophonePermissions: ' + DetectRTC.isWebsiteHasMicrophonePermissions);
});
}).catch(function() {
DetectRTC.load(function() {
alert('isWebsiteHasMicrophonePermissions: ' + DetectRTC.isWebsiteHasMicrophonePermissions);
});
}); i.e. execute |
I have the same issue. DetectRTC.isWebsiteHasMicrophonePermissions: true :( |
I had the same issue. Even if I removed the Webcam and Microphone, I still received "true" for both.. (tested in Firefox and Chrome latest versions in different machines, results are same). (tested script is https://raw.githubusercontent.com/muaz-khan/DetectRTC/master/DetectRTC.js) However, when I use the script directly provided in <script src="https://github.com/muaz-khan/DetectRTC/releases/download/1.4.1/DetectRTC.js"></script>, it works perfectly. I did not understand what is the problem. Release works fine, but the same versioned DetectRTC.js scriptprovided in main repository do not work properly. I did not compare the scripts, but I believe that, there is a difference in these two scripts. |
Greetings friends, I noticed that in a particular case, DetectRTC does not work at all, for example
DetectRTC.isWebsiteHasMicrophonePermissions: true
DetectRTC.isWebsiteHasWebcamPermissions: true
although isWebsiteHasWebcamPermissions should be false
The text was updated successfully, but these errors were encountered: