Git Product home page Git Product logo

php-kodi-jsonapi's People

Contributors

kiboost avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

php-kodi-jsonapi's Issues

switch to HTTP Post

Hi,
any plans to change your code so it sends an http POST? I have been shutting down KODI with an HTTP GET directly from Devolo Home Control but since Leia, Kodi does not accept HTTP GET any more for most of the API commands. As there is no way to do a POST from DHC I googled around and came to your Kodi class. But than I realized that it is doing a GET as well ...
Regards
Chris

Sanity Check on openFile

I am using your api and it is most helpful - many thanks.
However, I have been unable to get the openFile working yet (other methods such as togglePlayPause, getActivePlayer, etc are working fine).
I am trying this
`$IP = "192.168.1.231:8080";
$_Kodi = new Kodi($IP);
if (isset($_Kodi->error)) die($_Kodi->error);

print_r($_Kodi->openFile("file://Videos/Videos/Trombone.mp4"));`

The output I get is this (after adding an apropriately placed echo in the class).
{"method":"Player.Open", "params":{"item":{"file":"file%3A%2F%2F%2FVideos%2F%2FVideos%2F%2FTrombone.mp4"}}}Array ( [result] => [error] => Array ( [code] => -32602 [message] => Invalid params. ) )

The equivalent curl command line call works fine

sudo curl -X POST -H "content-type:application/json" http://192.168.1.231:8080/jsonrpc -d '{"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"file://Videos/Videos/Trombone.mp4"}}}'

Multiple Instances

The use case is for controlling 20 Kodis across the network.
Can this API support that or be made to support it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.