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

Uncaught Error: Missing target URI for thumbnail image. #22

Open
Cozmoz opened this issue May 26, 2021 · 0 comments
Open

Uncaught Error: Missing target URI for thumbnail image. #22

Cozmoz opened this issue May 26, 2021 · 0 comments

Comments

@Cozmoz
Copy link

Cozmoz commented May 26, 2021

Hi,

I am having an issue using the plugin, any help would be appreciated.

My code:

window.PKVideoThumbnail.createThumbnail({
	sourceVideoPath: 'file://' + filePath, 
	targetThumbnailPath: 'file://' + cordova.file.dataDirectory + 'file.jpg',
	options: { base64: true },
})
.then((data) => {
	console.log(data);
})
.catch((error) => {
	console.log(error);
});

The error message:

Uncaught Error: Missing target URI for thumbnail image.
    at Object.PKVideoThumbnail.createThumbnail (PKVideoThumbnail.js:31)
    at index.min.js:593
    at Object.callbackFromNative (cordova.js:295)
    at <anonymous>:1:9
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

1 participant