Skip to content

mrbdrm/cordova-plugin-videometadata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-videometadata

Returns width, height, rotation, duration, bitrate of video files.

Works with iOS and Android.

Use this until Cordova resolves their issue with MediaFile.getFormatData().

Installation

cordova plugin add https://github.com/shahin8r/cordova-plugin-videometadata.git

Usage

cordova.plugins.VideoMetadata.file(videoFile, function(data) {
    // data contains all our metadata
    if (data.rotation == 90 || data.rotation == -90) {
        alert("No vertical vids please");
    }
}, function(error) {
    // error
});

About

Cordova plugin for metadata of video files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 49.0%
  • Java 47.8%
  • JavaScript 3.2%