You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/03/27 13:01:15 UTC

[GitHub] [cordova-plugin-media-capture] aragagnin commented on issue #194: cordova-plugin-media-capture is not working on the browser platform

aragagnin commented on issue #194:
URL: https://github.com/apache/cordova-plugin-media-capture/issues/194#issuecomment-808729426


   I have the same problem. In particular, the following line 
   
   ```js
   navigator.device.capture.captureImage(captureSuccess, captureError, {limit:2});
   ```
   
   gives the following exception on both Firefox and Chrome:
   
   ```js
   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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org