You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The getUserMedia() method is supported in Safari on iOS 11+ but not in WKWebView (which is what Cordova uses). This has been acknowledged by the WebKit team.
Ios 11
Cordova 8.1.2
Platiform ios 4.5.5
I try test this code
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
console.log("load")
navigator.mediaDevices.getUserMedia({
'audio': true,
'video': false
}).then(function (mediaStream) {
var mediaControl = document.querySelector('video');
mediaControl.srcObject = mediaStream;
});
};
but nothing happens, the mobile does not request access to the microphone, no error is returned
I I had some success using this plugin but the same does not return the mediastream I need for my code
https://github.com/edimuj/cordova-plugin-audioinput
The text was updated successfully, but these errors were encountered: