MediaFile.getFormatData

Retrieves format information about the media capture file.

mediaFile.getFormatData(
    MediaFileDataSuccessCB successCallback,
    [MediaFileDataErrorCB errorCallback]
);

Description

This function asynchronously attempts to retrieve the format information for the media file. If successful, it invokes the MediaFileDataSuccessCB callback with a [MediaFileData](MediaFileData.html) object. If the attempt fails, this function invokes the MediaFileDataErrorCB callback.

Supported Platforms

  • Android
  • BlackBerry WebWorks (OS 5.0 and higher)
  • iOS
  • Windows Phone 7 and 8
  • Windows 8

BlackBerry WebWorks Quirks

Does not provide an API for information about media files, so all [MediaFileData](MediaFileData.html) objects return with default values.

Android Quirks

The API to access media file format information is limited, so not all [MediaFileData](MediaFileData.html) properties are supported.

iOS Quirks

The API to access media file format information is limited, so not all [MediaFileData](MediaFileData.html) properties are supported.