How to remove audio video call icon from firefox and chrome in getusermedia.
var constraints = {
video: {
mandatory: {}
},
audio: {
mandatory: {}
}
};
navigator.getUserMedia_ = (navigator.getUserMedia
|| navigator.mozGetUserMedia
|| navigator.msGetUserMedia);
console.log(constraints);
navigator.getUserMedia_(constraints, function onSuccess(stream) {
}, function onFail(onFail) {
if(utilityService.getLocalStorage("user") === 'first')
{
$ngBootbox.alert('Media Device not connected.').then(function() {
clearTimeout(userNotAvail);
$state.go("profile.conversations");
});
}
else
{
$scope.secondUserCameraStatus = false;
console.log($scope.secondUserCameraStatus);
}
});
I have pass constraints (audio+video) and browser have accessed my camera and headphone and it is showing audio+video icons in top of bar so how can i remove these icons. Thank you.