mergMPItemGet

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mergMPItemGet(<pQueryPointer>, <pCollectionNumber>, <pItemNumber>, <pProperty>)
Associationsmergmp
Summary

Get a property of a media item in the collection

Introduced8.0
OSios
Platformsmobile
Parameters
NameTypeDescription
pQueryPointer

a pointer to the query in memory.

pCollectionNumber

a number between 1 and the result of mergMPQueryCollectionCount.

pItemNumber

a number between 1 and the result of mergMPQueryCollectionItemCount.

pProperty

the property to get. One of: - persistent id : an id for the item - album persistent id : an id for the album - artist persistent id : an id for the artist - album artist persistent id : an id for the album artist - album genre persistent id : an id for the genre - album composer persistent id : an id for the composer - album podcast persistent id : an id for the podcast - media types : media types in a list with one per line of:

 * music
 * podcast
 * audio book
 * audio iTunesU
 * any audio
 * movie
 * tv show
 * video podcast
 * music video
 * video iTunesU
 * any video
 * any
  • title
  • album title
  • artist
  • album artist
  • genre
  • album composer
  • playback duration
  • album track number
  • album track count
  • disc number
  • disc count
  • lyrics
  • is compilation : true if the item is a compilation
  • release date : the release date in long seconds since 1970
  • beats per minute
  • comments
  • asset url : the ipod library url which can be used in mergAVPlayer and LiveCode audio player. It can not be used in the LiveCode video player or to read the data of the file.
  • play count : the user's play count for the item
  • skip count : the user's skip count for the item
  • rating : the user's rating for the item
  • last played : the last played date in long seconds since 1970
  • user grouping : the user's grouping of the item
Values
NameTypeDescription
return

the property value

Description

Get a property of a media item in the collection

Tagsexternals