stekel / kodi
与 Kodi 实例交互的库
v0.1.3
2018-03-03 18:21 UTC
Requires
- php: ~5.6|~7.0
- guzzlehttp/guzzle: ~6.0
- illuminate/support: ~5
Requires (Dev)
- phpunit/phpunit: >=5.4.3
This package is auto-updated.
Last update: 2024-09-26 21:29:18 UTC
README
此包提供了一个简单的 API,用于使用 Kodi jsonrpc API 与运行中的 Kodi 实例交互。
安装
通过 Composer
$ composer require stekel/kodi
用法
Laravel
use Kodi; Kodi::player()->playPause(); // Play/Pause the currently playing media
手动
use stekel\Kodi\Kodi $kodi = Kodi::connect('192.168.1.100', '8080', 'xbmc', 'xbmc'); $kodi->player()->playPause(); // Play/Pause the currently playing media