Action - Init Variables Media Metadata
The action Init Variables Media Metadata loads the metadata of a media file into local variables (see variables section below).
Examples:
- Load the title of an mp3 and show the title in a notification.
A variable is a container for a value that can be used in many actions and conditions to dynamically define a part of a text.
See action Script for a description.
See action Script for a description.
Supplied Variables
media_cd_track_numberthe order of the audio data source on its original recording or null
media_albumthe album title or null
media_artistthe artist or null
media_authorthe author or null
media_composerthe composer or null
media_datethe date when the data source was created or modified or null
media_genrethe content type or genre or null
media_titlethe title or null
media_yearthe year when the data source was created or modified or null
media_durationthe playback duration in milliseconds or null
media_num_tracksthe number of tracks or null
media_writerthe writer (such as lyricist) or null
media_mimetypethe mime type or null
media_albumartistthe performers/artist or null
media_disc_numberthe disc number or null
media_compilationthe music album compilation or null
media_has_audiotrue if the media contains audio content
media_has_video (Android 4+)true if the media contains video content
media_video_width (Android 4+)the width of the video or null
media_video_height (Android 4+)the height of the video or null
media_bitrate (Android 4+)the bitrate of the media (in bits/sec) or null
media_location (Android 4.0.3+)the location or null
media_video_rotation (Android 4.2+)the video rotation angle in degrees or null
media_album_artthe album art or null