Hi All,
I had faced an issue when receiving a audio call .
received m_permission_refused event while my logs say microphone is enabled.
applicationId : 7afef16f-560c-4187-b44a-c92913b202cb | Microphone enabled | CT: 2020-08-14T16:01:02.756Z | Time: 12:01:32.8298449 | TId:38452 | EId:24885 | Information
*******
applicationId : 7afef16f-560c-4187-b44a-c92913b202cb | ==session event = sent_request | CT: 2020-08-14T16:01:06.545Z | Time: 12:01:32.8298449 | TId:38452 | EId:24886 | Information
*******
applicationId : 7afef16f-560c-4187-b44a-c92913b202cb | ==stack event = m_permission_requested | CT: 2020-08-14T16:01:16.395Z | Time: 12:01:32.8298449 | TId:38452 | EId:24887 | Information
*******
applicationId : 7afef16f-560c-4187-b44a-c92913b202cb | ==stack event = i_new_call | CT: 2020-08-14T16:01:16.397Z | Time: 12:01:32.8298449 | TId:38452 | EId:24888 | Information
*******
applicationId : 7afef16f-560c-4187-b44a-c92913b202cb | ==stack event = m_permission_refused | CT: 2020-08-14T16:01:16.398Z | Time: 12:01:32.8298449 | TId:38452 | EId:24889 | Information
------------------------------------------------------------------------------------------------------------------------------------------------------
my code for check Microphone permissions with interval of 15 secs
this.verifyMicrophonePermissions = function() {
navigator.permissions = navigator.permissions.query({
name: "microphone"
}).then(function(result) {
if (result.state !== "granted") {
isMicrophoneDisabled = true;
if (!isMicrophonePopupDisplayed) {
window.ShowMicrophonePopup();
}
log.error("Microphone disabled", true);
} else {
removeSmartMessageBoxById("microhponePopup");
isMicrophonePopupDisplayed = false;
}
});
};
setInterval(function() {
that.verifyMicrophonePermissions();
}, 15e3);
Am I doing correct checking with microphone permissions?
Of If this is correct, what would be the problem?
Thanks in Advance..
Regards,
Deepak