Extract Thumbnail from Video in Ionic App (Android Version)

2.3k views Asked by At

I am capturing a video using cordova plugin add cordova-plugin-media-capture

Now I want to get a thumbnail from that video. Also, I have used com.photokandy.videothumbnail but I am not getting any result.

I am being stuck in this issue for a long time and highly appreciate any help!

Below is my code snippet:

window.PKVideoThumbnail.createThumbnail ('file:///sdcard/ibhool/Video/ibhool.mp4', 'file:///sdcard/ibhool/Video/thumbtest.png', function(prevSucc) {
   return prevImageSuccess(prevSucc);
}, fail);

function prevImageSuccess(succ) {
   alert('success');       
}',    
1

There are 1 answers

1
Anjali Agrawal On

The above code snippet worked after i tried installing the plugin multiple times and it just worked finally.But still it does not work on all machines and devices.