1.2.13 • Published 7 years ago

com.commontime.cordova.media-properties v1.2.13

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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);
1.2.13

7 years ago

1.2.12

7 years ago

1.2.11

7 years ago

1.2.10

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

0.0.1

8 years ago