Returns a Map containing info from the MediaStore about an audio file.
The fields that are returned are: "ID" "Title" "Album" "Artist" "Track" "Year" "Location" "DisplayName" "Duration" (in ms)
GetExtImageFileInfo (LocationAsString) AsMap
Returns a Map containing info from the MediaStore about an external image file. Location = complete path name for the file.
The fields that are returned are: "ID" "Location" "DisplayName" "DateTaken" (in ticks from 1970) "Height" (with Android 3.0+) "Width" (with Android 3.0+) "Size" (in bytes)
GetExtVideoFileInfo (LocationAsString) AsMap
Returns a Map containing info from the MediaStore about an external video file. Location = complete path name for the file.
The fields that are returned are: "ID" "Location" "DisplayName" "DateTaken" (in ticks from 1970) "Resolution" (can be Null for some files) "Size" (in bytes)
GetImageDimensions (LocationAsString) AsMap
Returns a map containing width and height of the specified file. Location = complete path name for the file.
Returns a Map containing a list of all Audio files in the MediaStore which can be sorted.
The allowed fields for sorting are: Null (if Null is used, it will sort on the ID) "title" "album" "artist" "track" "year" "_data" (location) "_display_name" "duration"
The fields that are returned are: "ID" "Title" "Album" "Artist" "Track" "Year" "Location" "DisplayName" "Duration" (in ms)
Returns a Map containing a list of all Image files in the MediaStore which can be sorted.
The allowed fields for sorting are: Null (if Null is used, it will sort on the ID) "_data" (location) "_display_name" "datetaken" "size"
The fields that are returned are: "ID" "Location" "DisplayName" "DateTaken" (in ticks from 1970) "Height" (with Android 3.0+) "Width" (with Android 3.0+) "Size" (in bytes)
Returns a Map containing a list of all Video files in the MediaStore which can be sorted.
The allowed fields for sorting are: Null (if Null is used, it will sort on the ID) "_data" (location) "_display_name" "datetaken" "_size"
The fields that are returned are: "ID" "Location" "DisplayName" "DateTaken" (in ticks from 1970) "Resolution" (can be Null for some files) "Size" (in bytes)
Returns the micro thumbnail (96x96) or mini thumbnail (512x384) of a video file (it is generated if it doesn't exist). There's a known bug on some Android versions with micro thumbnails: If the micro thumbnail can't be generated (e.g. video file format not recognized), the result is either null or a random thumbnail. Thus, for video files, it is strongly recommended to check if the mini thumbnail is initialized before trying to get the micro thumbnail.
Initialize (EventNameAsString)
MediaAudioPlay (ExternalAsBoolean, IDAsInt)
Plays an audio file. Raises the event "MediaCompleted" when the file end is reached.
MediaIsLoopingAsBoolean
Checks whether the player is looping or non-looping.
MediaIsPlayingAsBoolean
MediaLengthAsInt
Returns the duration in ms.
MediaPause
MediaPositionAsInt
Gets the current playback position.
MediaResume
MediaSeek (positionAsInt)
Seeks to specified time position (in ms). Raises the event "SeekCompleted" when the position change has been completed.
Sets the volume on this player (and this player only). Note that the passed volume values are raw scalars. UI controls should be scaled logarithmically. This function must be called AFTER MediaAudioPlay.