Skip to content
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

IOS 11 #27

Open
projetoarduino opened this issue Oct 16, 2018 · 2 comments
Open

IOS 11 #27

projetoarduino opened this issue Oct 16, 2018 · 2 comments

Comments

@projetoarduino
Copy link

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

@projetoarduino
Copy link
Author

This code work below on my browser.

@djipco
Copy link
Contributor

djipco commented May 28, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants