2017 © Pedro Peláez
 

library kodi

Library for interacting with a kodi instance

image

stekel/kodi

Library for interacting with a kodi instance

  • Tuesday, March 20, 2018
  • by stekel
  • Repository
  • 0 Watchers
  • 0 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 9 Versions
  • 14 % Grown

The README.md

Kodi

This package provides a simple api for interacting with a running Kodi instance using the Kodi jsonrpc api., (*1)

Install

Via Composer, (*2)

``` bash $ composer require stekel/kodi, (*3)


## Usage ### Laravel ``` php use Kodi; Kodi::player()->playPause(); // Play/Pause the currently playing media

Manual

``` php use stekel\Kodi\Kodi, (*4)

$kodi = Kodi::connect('192.168.1.100', '8080', 'xbmc', 'xbmc');, (*5)

$kodi->player()->playPause(); // Play/Pause the currently playing media ```, (*6)

Supported Functions

Add-ons

Function Execution
Addons.GetAddons $kodi->addons()->getAddons();
Addons.ExecuteAddon : script.playrandomvideos $kodi->addons()->playRandom($model)
$model can be a TvShow or Song

Gui

Function Execution
GUI.ShowNotification $kodi->gui()->showNotification($title, $message);

Player

Function Execution
Player.GetActivePlayers $kodi->player()->getActivePlayers();
Player.Open $kodi->player()->open($model);
$model can be an Episode or Song
Player.PlayPause $kodi->player()->playPause();
Player.Stop $kodi->player()->stop();
Player.GetItem $kodi->player()->getItem();
Returns either an Episode or Song

Video Library

Function Execution
VideoLibrary.GetTVShows $kodi->videoLibrary()->getTvShows();
VideoLibrary.GetTVShowDetails $kodi->videoLibrary()->getTVShowDetails(TvShow $tvshow);
VideoLibrary.GetEpisodes $kodi->videoLibrary()->getEpisodes($tvShowId);
VideoLibrary.GetRecentlyAddedEpisodes $kodi->videoLibrary()->recentlyAddedEpisodes($limit=3);
VideoLibrary.Clean $kodi->videoLibrary()->clean();

The Versions

20/03 2018

dev-dev

dev-dev https://github.com/stekel/kodi

Library for interacting with a kodi instance

  Sources   Download

MIT

The Requires

 

The Development Requires

kodi stekel

03/03 2018

dev-master

9999999-dev https://github.com/stekel/kodi

Library for interacting with a kodi instance

  Sources   Download

MIT

The Requires

 

The Development Requires

kodi stekel

03/03 2018

v0.1.3

0.1.3.0 https://github.com/stekel/kodi

Library for interacting with a kodi instance

  Sources   Download

MIT

The Requires

 

The Development Requires

kodi stekel

03/03 2018

v0.1.2

0.1.2.0 https://github.com/stekel/kodi

Library for interacting with a kodi instance

  Sources   Download

MIT

The Requires

 

The Development Requires

kodi stekel

03/03 2018

v0.1.1

0.1.1.0 https://github.com/stekel/kodi

Library for interacting with a kodi instance

  Sources   Download

MIT

The Requires

 

The Development Requires

kodi stekel

03/03 2018

v0.1

0.1.0.0 https://github.com/stekel/kodi

Library for interacting with a kodi instance

  Sources   Download

MIT

The Requires

 

The Development Requires

kodi stekel

20/02 2018

v0.0.3

0.0.3.0 https://github.com/stekel/kodi

Library for interacting with a kodi instance

  Sources   Download

MIT

The Requires

 

The Development Requires

kodi stekel

20/02 2018

v0.0.2

0.0.2.0 https://github.com/stekel/kodi

Library for interacting with a kodi instance

  Sources   Download

MIT

The Requires

 

The Development Requires

kodi stekel

20/02 2018

v0.0.1

0.0.1.0 https://github.com/stekel/kodi

Library for interacting with a kodi instance

  Sources   Download

MIT

The Requires

 

The Development Requires

kodi stekel