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

cordova-plugin-media-capture is not working on the browser platform #194

Open
sanjayhanumegowda opened this issue Oct 6, 2020 · 1 comment

Comments

@sanjayhanumegowda
Copy link

Hi, cordova-plugin-media-capture plugin is not working on the browser platform(chrome) and getting CaptureError {code: 20} when I try to capture video.

@aragagnin
Copy link

I have the same problem. In particular, the following line

navigator.device.capture.captureImage(captureSuccess, captureError, {limit:2});

gives the following exception on both Firefox and Chrome:

Uncaught TypeError: URL.createObjectURL: Argument 1 is not valid for any of the 1-argument overloads.
    startPreview http://localhost:8000/plugins/cordova-plugin-media-capture/src/browser/CaptureProxy.js:120
CaptureProxy.js:120:32
    startPreview http://localhost:8000/plugins/cordova-plugin-media-capture/src/browser/CaptureProxy.js:120

It is probably related to this outdated function call: https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL#using_object_urls_for_media_streams

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

No branches or pull requests

2 participants