Title: Using the Kodi API to play Youtube videos
-Tags: english, debian, video
-Date: 2018-09-02 23:30
+Tags: english, debian, video, kodi
+Date: 2018-09-02 23:40
<p>I continue to explore my Kodi installation, and today I wanted to
tell it to play a youtube URL I received in a chat, without having to
have check out a nice cover band.</p>
<p><blockquote><pre>curl --silent --header 'Content-Type: application/json' \
- --data-binary '{ "id": 1, "jsonrpc": "2.0", "method": "Player.Open", "params": {"item": { "file": "plugin://plugin.video.youtube/play/?video_id=bmHHw5j2BhI&incognito=true&screensaver=true" } } }' http://projector.local/jsonrpc</pre></blockquote></p>
+ --data-binary '{ "id": 1, "jsonrpc": "2.0", "method": "Player.Open",
+ "params": {"item": { "file":
+ "plugin://plugin.video.youtube/play/?video_id=LuRGVM9O0qg" } } }' \
+ http://projector.local/jsonrpc</pre></blockquote></p>
<p>I've extended kodi-stream program to take a video source as its
first argument. It can now handle direct video links, youtube links