INTERACT FORUM

Windows => Plug-in Development => Topic started by: Don W on February 18, 2014, 09:32:01 am

Title: Obtain file info directly from library obtained via MCWS
Post by: Don W on February 18, 2014, 09:32:01 am
I'm considering writing a Windows 8 (i.e. WinRT) front end for MediaCenter using MCWS and have been thinking about how best to get detailed file info as quickly as possible for advanced grouping and sorting scenarios. It seems that the ideal option would be to obtain a copy of the entire library via the Library Get method and parse it directly for file info. Any suggestions on how to go about this? Thanks in advance.
Title: Re: Obtain file info directly from library obtained via MCWS
Post by: Don W on February 18, 2014, 11:56:54 pm
I discovered I can do what I want with Files->Search function. That web method returns a MPL which turns out to be straight xml. Just needed to change the content type of the response to "text/xml" which made it possible to use the framework to easily serialize it into an xml element. I was worried that there might be a performance issue but there is none at all.