Skip to content

lulee007/cordova-plugin-video-thumbnail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-video-thumbnail

获取本地视频的缩略图

Using the plugin

method:
videoThumbnail.build

params:

  • success callback function
  • error callback function
  • configs object
window.plugins.videoThumbnail.build(
      function (data) {
        console.log(data);
        $scope.thumbnail=data;
        $scope.$apply();
      }, function (error) {
        console.log(error);
      },
      {
        videoPath:"/Users/xxx/Library/Developer/CoreSimulator/Devices/7ECDF8F2-B5DC-4F10-BB1F-FF4FA3757BC1/data/Containers/Data/Application/BA3DD2ED-6EF5-4E41-943E-4232CC52D950/Documents/video1.mov",
        width:100,
        height:100,
        kind:1//android only
      });

Installing the plugin

   cordova plugin add https://github.com/lulee007/cordova-plugin-video-thumbnail.git

About

获取本地视频的缩略图

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published