XBMC-JSON an open source .NET XBMC JSON-RPC Library

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
dstruktiv Offline
Member
Posts: 66
Joined: Jul 2010
Reputation: 0
Location: New Zealand
Post: #31
grimstoner Wrote:Added them now. Used to TFS, not Subversion...

Looks great mate good stuff - I love open source projects, I was a bit low on motivation to implement the System and Video player stuff etc. Tongue

XBMC Remote7 an XBMC library browser/remote for Windows Phone 7.
Xbmc-Json a .NET XBMC JSON API Library.
Xbmc-Remote-Control a .NET based XBMC library browser and remote for Windows, Linux and OS X.
find quote
Cyb3rH4Xter Offline
Member
Posts: 82
Joined: Apr 2010
Reputation: 0
Post: #32
Great stuff! Would need this for my program though can't find a way to download it?

EDIT: Tortoise of course.

EDIT2: Got it setup and working now, though I got a question: where is the ScanforContent thingy? Can only find get stuff in the VideoLibrary Sad

EDIT3:
Why do we love open-source? Cause then we can fix it ourselves! Big Grin Just added this tiny code:

Code:
public void ScanForContent()
        {
            _Client.GetData("VideoLibrary.ScanForContent", null, null, null);
        }

And now I can use it as I want Smile Thx for great library.
(This post was last modified: 2011-01-28 23:44 by Cyb3rH4Xter.)
find quote
jitterjames Offline
VoxCommando Founder
Posts: 297
Joined: Aug 2008
Reputation: 0
Location: canada
Post: #33
Hi All.

It's time to add JSON support for my project which is written in C# so something like this looks like the way to go. I have a few questions though, so hopefully someone can help me out. At this point I've been trying to figure out the whole JSON thing and I'm a bit overwhelmed.

This library looks great, but I want to make sure that it is what I want to use before I invest too much time. There seems to be another XBMC JSON C# out there as well.

http://sourceforge.net/projects/xbmcjsonsharp/

My main concern is that I don't want to choose one that is not going to be developed, since the actual JSON interface continues to evolve. Once I figure things out a bit I would probably also like to contribute.

So what's the difference between these two libraries and which one is more likely to stay alive in the long run?

tia for any input on this
find quote
jitterjames Offline
VoxCommando Founder
Posts: 297
Joined: Aug 2008
Reputation: 0
Location: canada
Post: #34
I guess both this thread, and the project are dead.
find quote
dstruktiv Offline
Member
Posts: 66
Joined: Jul 2010
Reputation: 0
Location: New Zealand
Post: #35
Hi jitterjames - Although I haven't personally been contributing to this library lately it is open source and you can contribute to it if you'd like. It's fairly simple and a quick look through the code should help you get your head around it. It's very easy to update/add additional functionality without needing to understand the whole thing. In terms of library retrieval and media playing I would say it's 90% - 95% done and all the most important stuff is there.

I had a quick look at the other library you linked and from what I can see it is synchronous - i.e. It will block the current thread while it fetches information. So if you chose to use it you will need to either multi thread your code or your users will have to put up with your application freezing while it fetches their XBMC information.

XBMC-JSON is asynchronous so it will not block the current thread and you could get away without even having to know/care about multi threading.

Any questions I'm happy to help or if you'd like any changes made I can do them Smile

XBMC Remote7 an XBMC library browser/remote for Windows Phone 7.
Xbmc-Json a .NET XBMC JSON API Library.
Xbmc-Remote-Control a .NET based XBMC library browser and remote for Windows, Linux and OS X.
find quote
lewisc Offline
Junior Member
Posts: 33
Joined: Aug 2010
Reputation: 0
Post: #36
There are no downloads on the projects page? How do you get the library?

[Image: widget]
find quote
john.doe Offline
Banned
Posts: 514
Joined: Aug 2010
Post: #37
@lewis

http://xbmc-remote-control.googlecode.co...20v0.3.zip
find quote
lewisc Offline
Junior Member
Posts: 33
Joined: Aug 2010
Reputation: 0
Post: #38
Many thanks for that, I've downloaded it and got it working with the test code on page 1 of this thread with a VS2010 Express C# console application.

I am trying to use the XbmcJson.dll in a Windows 8 Metro app using the new Windows 8 Developer Preview build and VS2011.

When I add the XbmcJson.dll reference to the project it breaks the designer, the error it displays is:

System.Runtime.Remoting.RemotingException

Failed to read from an IPC Port: The pipe has ended.


And when I try and run the app with the reference added and the XbmcConnection setup I get this error:

Message = "File or assembly name 'System, Version=3.5.0.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes', or one of its dependencies, was not found."

Has anyone else played around with the Windows 8 dev tools yet or have any ideas on how to troubleshoot this?

[Image: widget]
find quote
cmartin Offline
Junior Member
Posts: 3
Joined: Aug 2011
Reputation: 0
Post: #39
You'll have to recompile the lib, targeting the WinRT profile.
find quote
lewisc Offline
Junior Member
Posts: 33
Joined: Aug 2010
Reputation: 0
Post: #40
Is the source for this library here? http://code.google.com/p/xbmc-json/sourc...vn%2Ftrunk

[Image: widget]
find quote
hobbes487 Offline
Junior Member
Posts: 22
Joined: Jun 2011
Reputation: 1
Post: #41
Hopefully this thread isn't completely dead. I have been using this library in my project and even updated it a little with some more functionality. My question is how can I update the library somehow so I can check to see if XBMC is still running and the connection is still live? I don't want to have to restart my program that is used to control XBMC if XBMC has to be restarted or the machine it is on is turned off.
find quote
blademansw Offline
Junior Member
Posts: 11
Joined: Apr 2011
Reputation: 0
Post: #42
I tried to contact the project leader, but I have had no response yet - perhaps he is on holiday.

I am in the process of updating this library to be compatible with the Eden JSON specifications, so to this end I created a new google code project at http://code.google.com/p/xbmc-json-v3/.

I have so far got some of the library functions working, but there are quite a lot of things to change, so its a work in progress!
find quote
hobbes487 Offline
Junior Member
Posts: 22
Joined: Jun 2011
Reputation: 1
Post: #43
That's great! How is it going so far? Now that the first Beta of Eden is out I would like to update my project to support it. Is your v3 of the library in a usable state?
find quote
blademansw Offline
Junior Member
Posts: 11
Joined: Apr 2011
Reputation: 0
Post: #44
I have got some parts working, but there is an awful lot still to change for the Eden API.

I was hoping to get a lot done over Xmas, but that didn't pan out as my wife had a minor op just before Xmas, then my step daughter had appendicitis on Boxing Day, so Xmas was pretty much wiped outShocked

Probably going to be another 1-2 weeks before I have something usable - what functionality is your application using?
find quote
hobbes487 Offline
Junior Member
Posts: 22
Joined: Jun 2011
Reputation: 1
Post: #45
Currently my project is only doing the following:

Sending Play/Stop/Skip ffw/back commands for video
Receive notifications for playback started/stopped/resumed/ended/paused

Eventually I will be adding a lot more integration between my project and XBMC, but that is is all I am using for now.

Thanks for deciding to take over development of this!
find quote