Dynamic children of DLNA folder

Discuss issues related to PS3 Media Server development (only for programmers)

Dynamic children of DLNA folder

Postby provegard » Wed Aug 07, 2013 1:51 pm

Hi,

I'm writing a plugin that adds a root folder to PMS. Initially, the folder has no children, but children will be added and removed during the lifetime of the application. What would be the proper way to implement that?

Based on reading the source code of DLNAResource, I guess I need to return true from isRefreshNeeded() once I have added or removed a child. I suppose it's also a good idea to add some synchronization since my plugin will be modifying the list of children from a different thread than the main thread.

Something obvious I have missed?

Thanks,
Per
provegard
 
Posts: 3
Joined: Wed Aug 07, 2013 1:32 pm

Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests