Posts: 333
Joined: Aug 2010
Reputation:
0
That would make sense. If it's intended behaviour from the server I can work around it, but I'll wait and see what the devs say before I do anything in case it's a bug on the server's end.
Posts: 16
Joined: Dec 2008
Reputation:
0
Hi,
This is great. A very useful wrapper. I have used it it write a script to tweet the currently playing Movie/TvShow.
I would like to call this every time a new video is started. Is there any easy ways to get the JSON announcements that xbmc sends across the TCP port?
If I telnet into port 9090 I get notification when playback starts
{
"jsonrpc" : "2.0",
"method" : "Announcement",
"params" : {
"message" : "PlaybackStarted",
"sender" : "xbmc"
}
}
Is there a way to read this using this wrapper?
If not is there a way to implement this.
Thanks
Posts: 18
Joined: Jan 2010
Reputation:
0
Do you have any plans of supporting Eden with this wrapper?
Posts: 20
Joined: Feb 2011
Reputation:
0
Romep
Junior Member
Posts: 20
How to get this to work with eden?
Posts: 20
Joined: Feb 2011
Reputation:
0
Romep
Junior Member
Posts: 20
My fault. Should have updated the files. TCP is a lot slower than HTTP, cause it has to read each character instead of a whole line. Any chance to get it faster again?
Posts: 13
Joined: Dec 2012
Reputation:
0
ranpow
Junior Member
Posts: 13
Is this wrapper support v6 prodo?
Iv made some tests and looks like im passing wrong params for example
The object desciption show
Player.Open
Start playback of either the playlist with the given ID, a slideshow with the pictures from the given directory or a single file or an item from the database.
array(4) { ["description"]=> string(158) "Start playback of either the playlist with the given ID, a slideshow with the pictures from the given directory or a single file or an item from the database." ["params"]=> array(1) { [0]=> array(2) { ["name"]=> string(4) "item" ["type"]=> array(3) { [0]=> array(3) { ["additionalProperties"]=> bool(false) ["properties"]=> array(2) { ["playlistid"]=> array(2) { ["$ref"]=> string(11) "Playlist.Id" ["required"]=> bool(true) } ["position"]=> array(2) { ["$ref"]=> string(17) "Playlist.Position" ["default"]=> int(0) } } ["type"]=> string(6) "object" } [1]=> array(1) { ["$ref"]=> string(13) "Playlist.Item" } [2]=> array(3) { ["additionalProperties"]=> bool(false) ["properties"]=> array(3) { ["path"]=> array(2) { ["required"]=> bool(true) ["type"]=> string(6) "string" } ["random"]=> array(2) { ["default"]=> bool(true) ["type"]=> string(7) "boolean" } ["recursive"]=> array(2) { ["default"]=> bool(true) ["type"]=> string(7) "boolean" } } ["type"]=> string(6) "object" } } } } ["returns"]=> array(1) { ["type"]=> string(6) "string" } ["type"]=> string(6) "method" }
Playe
And
[ code ]
$response = $rpc->Player->Open(array('file' => '/home/media/anything_else.avi'));
[ code ]
gives me
PHP Fatal error: Uncaught exception 'XBMC_RPC_ResponseException' with message 'Invalid params.' in xbmc-php-rpc-master\rpc\Response.php:27
Stack trace:
#0 \rpc\Client.php(320): XBMC_RPC_Response->__construct('{"error":{"code...')
#1 \rpc\Client.php(96): XBMC_RPC_Client->sendRpc('Player.Open', Array)
#2 \rpc\Command.php(63): XBMC_RPC_Client->executeCommand(Object(XBMC_RPC_Command))
#3 \rpc\Namespace.php(79): XBMC_RPC_Command->execute(Array)
#4 xbmc.php(65): XBMC_RPC_Namespace->__call('Open', Array)
#5 xbmc.php(65): XBMC_RPC_Namespace->Open(Array)
#6 {main}
thrown in xbmc-php-rpc-master\rpc\Response.php on line 2
7