2011-01-26, 13:11
i'm a little confused by an error message i get when using AudioPlayer->PlayPause() the code i try is
the error i get is
The reason i am confused is because from what i can see the index 'id' does exist at line 25 of response.php, i can print it at that point, so... i really don't get it!
I'm hoping you can make sense of it Mindzai
PHP Code:
try {
$response = $rpc->AudioPlayer->PlayPause() ;
} catch (XBMC_RPC_Exception $e) {
die($e->getMessage());
}
print '<p>response from XBMC:</p>';
print_r($response);
the error i get is
Quote:Notice: Undefined index: id in /mnt/hostwebinc/plugins/XBMC/rpc/Response.php on line 25 Invalid JSON RPC response
The reason i am confused is because from what i can see the index 'id' does exist at line 25 of response.php, i can print it at that point, so... i really don't get it!
I'm hoping you can make sense of it Mindzai