Data Fields

ml_media_t Struct Reference

Structure to describe a media. More...

Collaboration diagram for ml_media_t:
Collaboration graph
[legend]

Data Fields

ml_gc_object_t ml_gc_data
vlc_mutex_t lock
 Mutex for multithreaded access.
bool b_sparse
 Specifies if media is loaded fully.
ml_type_e i_type
 Type of the media (ml_type_e).
int8_t i_vote
 User vote.
int16_t i_disc_number
 Disc number of media.
int16_t i_track_number
 Track number.
int16_t i_year
 Year of release.
int32_t i_id
 Media ID in the database.
int32_t i_score
 Score computed about the media.
int32_t i_album_id
 Album id.
int32_t i_played_count
 How many time the media was played.
int32_t i_skipped_count
 No.
int32_t i_bitrate
 Extra: Bitrate of the media.
int32_t i_samplerate
 Extra: Samplerate of the media.
int32_t i_bpm
 Extra: Beats per minute.
char * psz_uri
 URI to find the media.
char * psz_title
 Title of the media.
char * psz_orig_title
 Original title (mainly for movies).
char * psz_album
 Name of the album.
char * psz_cover
 URI of the cover.
char * psz_genre
 Genre of the media.
char * psz_preview
 Preview thumbnail for video, if any.
char * psz_comment
 Comment or description about media.
char * psz_language
 Extra: Language.
char * psz_extra
 Extra: Some extra datas like lyrics.
ml_person_tp_people
 Extra: People associated with this media This meta holds only one artist if b_sparse = true.
int64_t i_filesize
 Size of the file.
mtime_t i_duration
 Duration in microseconds.
mtime_t i_last_played
 Time when the media was last played.
mtime_t i_last_skipped
 Time when the media was last skipped.
mtime_t i_first_played
 First played.
mtime_t i_import_time
 Time when media was added.

Detailed Description

Structure to describe a media.

This is the main structure holding the meta data in ML.

See also:
b_sparse indicates whether the media struct has valid values in its Extra fields. Otherwise, it must be loaded with the API function.
i_id indicates whether this struct is saved in the ML if i_id > 0 Otherwise, it can be added to the database

Field Documentation

Specifies if media is loaded fully.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Album id.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Extra: Bitrate of the media.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Extra: Beats per minute.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Disc number of media.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Duration in microseconds.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Size of the file.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

First played.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Media ID in the database.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Time when media was added.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Time when the media was last played.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Time when the media was last skipped.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

How many time the media was played.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Extra: Samplerate of the media.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Score computed about the media.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

No.

of times file was skipped

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Track number.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Type of the media (ml_type_e).

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

User vote.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Year of release.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Mutex for multithreaded access.

Referenced by ml_gc_decref(), and ml_gc_incref().

Extra: People associated with this media This meta holds only one artist if b_sparse = true.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Name of the album.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Comment or description about media.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

URI of the cover.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Extra: Some extra datas like lyrics.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Genre of the media.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Extra: Language.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Original title (mainly for movies).

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Preview thumbnail for video, if any.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

Title of the media.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().

URI to find the media.

Referenced by ml_CopyMedia(), and ml_FreeMediaContent().


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines