Setting a priority folder

Based on user actions, a media application might need to interrupt a synchronization to immediately synchronize the metadata for a particular folder. This priority folder synchronization reduces the time for making specific media content available for viewing or playing.

Suppose your application displays folder information in a mediastore file browser and the user selects a different folder to view or play tracks from but a synchronization is still ongoing. In this case, you should do a priority synchronization of the newly selected folder, to display its metadata and make its media files playable ahead of the files in other folders.

To start a priority folder synchronization, call mm_sync_control() or run the sync_control command with the following extended option settings:

When it receives such a request, mm-sync interrupts the active synchronization on the mediastore on which the priority folder is stored, synchronizes the metadata from that folder, then resumes the original synchronization.

The priority folder feature has the following behavior: