Download Mobile Client SDK for iOS Developer`s Guide
Transcript
Confidential Developer's Guide The behavior of GNOperations.albumIdFile:config:filePaths can be controlled via the AlbumID configuration parameters. See AlbumID Configuration for more information. GNOperations.albumIdList:config:list GNOperations.albumIdList:config:list takes a collection of objects where each object contains the recognition inputs for an audio file. Recognition inputs are: l l l l MusicID-File Fingerprint Textual metadata: l Artist Name l Album Title l Track Title l Track Number File name and path Gracenote Identifiers AlbumID does not require all of the above inputs to be effective; it can use only those provided to assist identification. Note this also means that text can be used if no fingerprint can be created, allowing AlbumID to be used for audio files that cannot be accessed or decoded by Mobile Client. Mobile Client does not provide a method to export Gracenote Identifiers from a file directly to the application; however, the query result contains these identifiers, which can be used for subsequent AlbumID List queries. The following code example shows how to invoke GNOperations.albumIdList:config:list. // Create result-ready object to receive recognition result. // ApplicationSearchResultReady must implement the GNSearchResultReady interface ApplicationSearchResultReady* searchResultready = [ApplicationSearchResultReady alloc]; // Assemble a collection of GNAlbumIdAttributes objects. // Each GNAlbumIdAttributes has the recognition inputs for a specific file. ArrayList<GNAlbumIdAttributes> filesToIdentify = new ArrayList<GNAlbumIdAttributes>(); // Assemble the recognition inputs for individual audio files into GNAlbumIdAttributes instances GNAlbumIdAttributes * fileAttrib = [GNAlbumIdAttributes gNAlbumIdAttributes:@"" identifier:@"List1" albumTitle:@"Keep the Faith" trackTitle:@"" trackNumber:@"" © 2000 to present. Gracenote, Inc. All rights reserved. Page 21 of 66