com.commontime.cordova.media-properties

1.2.13 • Public • Published

Media-Properties Plugin

Calls

The following are methods on the plugins.mediaproperties plugin.

getProperties

Gets the properties of a video or audio file. The object return in the success callback has a duration member, which is a number specifying the duration of the media file in seconds, a contentType field, which is the MIME type of the media file.

function success(properties) {
  var duration = properties.duration; // duration of the media file, in seconds
  var contentType = properties.contentType; // content (MIME) type of the media file

  // etc
}

function error(message) {
  // handle error with the given message
}

plugins.mediaproperties.getProperties(success, error, path);

Readme

Keywords

none

Package Sidebar

Install

npm i com.commontime.cordova.media-properties

Weekly Downloads

1

Version

1.2.13

License

MIT

Last publish

Collaborators

  • infinity.team
  • leon.revill