Plex Home Theater - JSONRPC problem

So i've been developing a new Plex Home Theater driver for the Control4 home automation system.  As PHT is developed using XBMC Frodo 12.2 as a base it was quite easy to integrate.  The majority of JSONRPC functions work (bar library management which i totally understand).

 

The only problem i have (which for me is a pretty big one) is that player.open accepts smb shares for the windows client but not the osx client.  I understand that i could mount the share and do it that way however i wanted to make it compatible with Control4's Movie interface which only sends smb file paths.

 

I have tested this on XBMC 12.2 frodo and the same command works fine.  Is there an issue with PHT?  I am running OSX Marvericks.  See below for output details.

19/02/2014 11:08:02 - SENDING COMMAND: {"id":"1","method":"Player.Open","jsonrpc":"2.0","params":{"item":{"file":"smb://192.168.1.200/HD movies 2/HD movies/Abraham Lincoln Vampire Hunter (1080p).mkv"}}}

19/02/2014 11:08:02 - Received JSON data : {“jsonrpc”:“2.0”,“method”:“GUI.OnScreensaverDeactivated”,“params”:{“data”:false,“sender”:“xbmc”}}

19/02/2014 11:08:02 - Received JSON data : {“jsonrpc”:“2.0”,“method”:“Playlist.OnClear”,“params”:{“data”:{“playlistid”:1},“sender”:“xbmc”}}{“jsonrpc”:“2.0”,“method”:“Player.OnStop”,“params”:{“data”:{“end”:false,“item”:{“type”:“unknown”}},“sender”:“xbmc”}}{“id”:“1”,“jsonrpc”:“2.0”,“result”:“OK”}

19/02/2014 11:08:02 - Received JSON data : Playlist.OnClear

BUMP.  So nobody has encountered this problem?  How do i lodge a bug report?

So i've been developing a new Plex Home Theater driver for the Control4 home automation system.  As PHT is developed using XBMC Frodo 12.2 as a base it was quite easy to integrate.  The majority of JSONRPC functions work (bar library management which i totally understand).

The only problem i have (which for me is a pretty big one) is that player.open accepts smb shares for the windows client but not the osx client.  I understand that i could mount the share and do it that way however i wanted to make it compatible with Control4's Movie interface which only sends smb file paths.

I have tested this on XBMC 12.2 frodo and the same command works fine.  Is there an issue with PHT?  I am running OSX Marvericks.  See below for output details.

19/02/2014 11:08:02 - SENDING COMMAND: {"id":"1","method":"Player.Open","jsonrpc":"2.0","params":{"item":{"file":"smb://192.168.1.200/HD movies 2/HD movies/Abraham Lincoln Vampire Hunter (1080p).mkv"}}}

19/02/2014 11:08:02 - Received JSON data : {“jsonrpc”:“2.0”,“method”:“GUI.OnScreensaverDeactivated”,“params”:{“data”:false,“sender”:“xbmc”}}

19/02/2014 11:08:02 - Received JSON data : {“jsonrpc”:“2.0”,“method”:“Playlist.OnClear”,“params”:{“data”:{“playlistid”:1},“sender”:“xbmc”}}{“jsonrpc”:“2.0”,“method”:“Player.OnStop”,“params”:{“data”:{“end”:false,“item”:{“type”:“unknown”}},“sender”:“xbmc”}}{“id”:“1”,“jsonrpc”:“2.0”,“result”:“OK”}

19/02/2014 11:08:02 - Received JSON data : Playlist.OnClear

Looking forward to seeing your new driver in action Alan, let me know if you need a beta tester.

BUMP.  Nobody has encountered this problem?

How do i submit a bug report?

bump :(

Ok so i've found the problem.  Turns out several protocols (pretty much everything apart from UNC for windows) has been stripped from Plex Home Theater's implementation of XBMC Frodo.  Shame really.  Code was already there.

09:11:49 T:6912   DEBUG: JSONRPC: Incoming request: {"id":"1","method":"Player.Open","jsonrpc":"2.0","params":{"item":{"file":"smb://alan-desktop/movies/Bel Ami (DVDRip).avi"}}}
09:11:49 T:6912   DEBUG: JSONRPC: Calling player.open
09:11:49 T:6912 WARNING: XFILE::CDirectoryFactory::Create - Unsupported protocol(smb) in smb://alan-desktop/movies/Bel Ami (DVDRip).avi
09:11:49 T:6912   ERROR: XFILE::CDirectory::Exists - Error checking for smb://alan-desktop/movies/Bel Ami (DVDRip).avi

Hey Alan,

The right way to interface with our apps is via the official Plex remote control protocol, which works across all our apps. We don't support that old JSON RPC or want people using it, since it'll only work for PHT.

We don't support raw filesystem protocols because that's something the OS should handle, and the media server deals with HTTP, not SMB or anything.

Drop me an email (elan @) if you'd like the spec for the remote control interface.

@elan

Please, can you give me the specs for the remote control interface.

thank you,

Hi,

Does the remote control spec support event notification as well ? Has anyone written a node.js wrapper for this yet?

Thanks

Paul

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.