- Overview
- Platform Support
- The Command-Line Interface
- Platform Guides
- Using Plugman to Manage Plugins
- The config.xml File
- Icons and Splash Screens
- Embedding WebViews
- Plugin Development Guide
- Privacy Guide
- Whitelist Guide
- Accelerometer
- Camera
- Capture
- Compass
- Connection
- Contacts
- Device
- Events
- File
- Geolocation
- Globalization
- InAppBrowser
- Media
- Notification
- Splashscreen
- Storage
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
- Amazon Fire OS
- Android
- BlackBerry 10
- iOS
- Windows Phone 7 and 8
- Windows 8
Amazon Fire OS Quirks
The API to access media file format information is limited, so not all
[MediaFileData](MediaFileData.html)
properties are supported.
BlackBerry 10 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.