I've recently been writing some C# applications that consume the Media Core Web Service and whilst working on them I kept thinking how much easier it would be if there were .NET wrapper classes and so I have written some and published them to NuGet. These classes only cover the playback and DSP sections at the moment but my plan is to expand them to cover the entire service.
What is the status of this package?Consider it a beta at this stage. I have tested it myself and it all works for me but don't be surprised if you find issues.
What are the prerequisites for using this package?The package has been written using .NET framework version 2 and so it can be used in any .NET application written using that version of the framework or later. The package itself has no dependencies on any other NuGet package.
How do I install these classes?NuGet packages are very easy to install but if you are not familiar with the process then I suggest you take a trip to
https://www.nuget.org where you will find lots of helpful documentation. The NuGet page for the package is here:
https://www.nuget.org/packages/JRiverMCWS/How do I use these classes?Here is a very simple example, written in C#, that connects to Media Center and toggles the play/pause state.
var mediaCenter = new MediaCenter();
mediaCenter.Connect("xxxxxx"); // Replace xxxxxx with your access key
mediaCenter.Playback.PlayPause();
I have tried to make the structure of the classes as simple and self-explanatory as possible and I have added Intellisense documentation to help with that. However, I recommend that you take a look in the Media Center wiki if you are unsure of what functions you need
http://wiki.JRiver.com/index.php/Web_Service_InterfaceAre there any known issues?Here are the issues that I am aware of, hopefully someone can help me figure them out.
1. The Playlist function has a parameter called "NoUI". I couldn't work out what this is for and so I have not included it as a parameter.
2. The PlayLive function has a parameter called "Mode" that is not documented and for this reason I have not included the function at all.
3. I can't get the SetPlaylist function to work and so for this reason I have not included the function at all.
What guarantees do I get with this NuGet package?None at all. All I can tell you is that these classes work for me and while I'm very keen to support them and help resolve any issues, I can't promise I'll be able to solve your particular problem.