Ryan Allen(deleted)
|
Re: mediafs playback directory update notification
|
Ryan Allen(deleted)
03/29/2010 9:44 AM
post50677
|
Re: mediafs playback directory update notification
You are correct: it is not possible to detect playback engine changes in
the case of an iPod. With iPod the user controls are locked out while
connected so you don't have the same danger of the playback engine
spontaneously changing as you do with AVRCP devices.
One suggestion we had for another customer who was working with AVRCP
devices was to send a trackchange event for any playback engine changes
and use that as a trigger to indicate that the playback engine may have
changed. Unfortunately overloading the trackchange event could result
in a number of unnecessary reads of the playback engine.
If you're looking for a workaround that doesn't require MediaFS events
then maybe you could use the MEDIA_STATUS event. If you look in
services/io-media/graph/mediafs_2wire/mediafs.c you'll find one place
where an IOM_EV_MEDIA_STATUS event is sent out. This is sent when the
total number of titles changes, or the chapter changes. When io-media
sends this to MME, MME will pass on an MME_EVENT_MEDIA_STATUS event to
its clients. It would be a bit of a hack (you'd have to fake total
titles, or chapter information), but you could get MME to send you an
event that you could react to.
--
Ryan J. Allen
QNX Software Systems
|
|
|