Gilles Roy
|
Re: Retrieving album artwork is not working
|
Gilles Roy
06/30/2010 1:10 PM
post58225
|
Re: Retrieving album artwork is not working
On 10-06-30 12:25 PM, "Vadivel Palanisamy" <community-noreply@qnx.com>
wrote:
> // Para-4: Setting the 'metadata' argument to NULL for asynchronously.
>
> // to retrieve the required metadata for a the currently playing track and
> place it in the mme_metadata_info_t data structure.
> rc = mme_metadata_getinfo_current(pWorkerPly->m_mmestatus.sessionID, groups,
> &pWorkerPly->m_mmestatus.mdinfo_rid, NULL);
Hi Vadivel,
As in your comment above, setting metadata to NULL makes the function return
an async event MME_EVENT_METADATA_INFO will be delivered. This event
includes the XML description saying how many images there are, and a
description of each message.
You are not catching that event. You would need to add a new case statement
for MME_EVENT_METADATA_INFO and then parse the XML and then invoke
mme_metadata_load_image(). That would in turn generate the
MME_EVENT_METADATA_IMGAGE you are looking for but not receiving.
BTW, instead of parsing the XML, if you want a shortcut (for testing), you
could instead each time you receive the MME_EVENT_METADATA_INFO just call
mme_metadata_load_image() with an index of 0.
As well, I'd say that adds complexity to use a NULL metadata pointer. You
might want to just get the XML immediately instead of use it in an async
manner.
Regards,
Gilles
|
|
|