METADATA_*

Definitions for metadata string types

Synopsis:

#include <mme/metadata.h>

#define METADATA_*

Description:

The constants METADATA_* define the metadata types for the strings used by MME functions that retrieve metadata for specific files: mme_explore_info_get() and mme_ms_metadata_get(). For information about how to compose the strings, see the chapter Metadata and Album Art in the MME Developer's Guide.

The table below lists current metadata types. All are types are of METADATA_FORMAT_*, as listed.

Constant Format Value Description
METADATA_TITLE STRING "title" The track title.
METADATA_ALBUM STRING "album" The album with the track.
METADATA_ARTIST STRING "artist" The track's artist.
METADATA_GENRE STRING "genre" The track's genre.
METADATA_COMPOSER STRING "composer" The track composer.
METADATA_PUBLISHER STRING "publisher" The track publisher.
METADATA_NAME STRING "name" The folder name. See METADATA_NAME below.
METADATA_RELEASE_DATE TM "release_date" The track's release date.
METADATA_YEAR UNSIGNED "year" The track's release year.
METADATA_DURATION UNSIGNED "duration" The duration of the track, in milliseconds.
METADATA_COMMENT STRING "comment or description" A description of the track.
METADATA_TRACK_NUMBER UNSIGNED "track_number" The track number.
METADATA_PROTECTED UNSIGNED "protected" The DRM PROTECTED status of the file.

METADATA_NAME

The metadata for METADATA_NAME varies according to the context. With iPods, the name of a folder changes according to its parent folder. For example, the tracks from the album Transparente by Mariza, appear to be in different folders, depending on how the user arrives at the tracks:


Note: io-fs-media -dipod must be set to short for the MME to be able to retrieve metadata for tracks on an iPod.

METADATA_FORMAT_*

enum {
	METADATA_FORMAT_INVALID = 0,
	METADATA_FORMAT_DATA,
	METADATA_FORMAT_STRING,
	METADATA_FORMAT_TM,
	METADATA_FORMAT_UNSIGNED,
};

The enumerated values METADATA_FORMAT_* describe the data types for metadata presentation, as follows:

Classification:

QNX Multimedia

See also:

mme_metadata_create_session(), mme_metadata_free_session(), mme_metadata_getinfo_current(), mme_metadata_getinfo_file(), mme_metadata_getinfo_library(), mme_metadata_image_cache_clear(), mme_metadata_image_load(), mme_metadata_image_unload(), mme_metadata_image_url_t, mme_metadata_session_t