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

Use native implementation of getUserMedia on iOS 11+ #5

Open
macdonst opened this issue Oct 16, 2017 · 3 comments
Open

Use native implementation of getUserMedia on iOS 11+ #5

macdonst opened this issue Oct 16, 2017 · 3 comments
Assignees

Comments

@macdonst
Copy link
Member

In iOS 11 Apple has included a native implementation of getUserMedia. We should detect that the OS already has an implementation and use it instead of our implementation.

We should be able to use something like:

cordova.require('cordova/modulemapper').getOriginalSymbol(window, 'navigator.mediaDevices');

to detect if navigator.mediaDevices existed before we clobber it with our implementation.

Once we have a working implementation on iOS 11 we should test ImageCapture and MediaRecorder.

@maverickmishra
Copy link
Member

navigator.getMediaDevices is not available for WKWebView and UIWebView in iOS 11. It is only available for Safari.

@sandstrom
Copy link

This radar entry may be relevant: http://www.openradar.me/33571214

@stephanemagnenat
Copy link

I have tested on iOS 12, and it seems that WKWebView still does not ship navigator.mediaDevices.

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

4 participants