Skip to content

Image capture not working on Chrome browser on PC #149

@baibhavprdn

Description

@baibhavprdn

Image capture isn't working on Chrome browser

Problem: The browser does not load the preview as expected

I tested this on android (works beautifully), Edge browser which also shows the preview div with the capture preview option.

What I get: Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided. is thrown in the console

Information

I'm trying to include the media capture plugin in a cordova app I've been working on. However I've failed to implement it in the browser for even simple applications.

I searched around in stackoverflow and answers indicate that createObjectURL is supposed to be passed either Blob, File or MediaSources and not raw data but I'm unsure what exactly I need to do to get the plugin working for chrome.

I'm using all latest versions of chrome, cordova.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions