]> pere.pagekite.me Git - homepage.git/blob - blog/archive/2018/09/09.rss
Generated.
[homepage.git] / blog / archive / 2018 / 09 / 09.rss
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
3 <channel>
4 <title>Petter Reinholdtsen - Entries from September 2018</title>
5 <description>Entries from September 2018</description>
6 <link>http://people.skolelinux.org/pere/blog/</link>
7
8
9 <item>
10 <title>Using the Kodi API to play Youtube videos</title>
11 <link>http://people.skolelinux.org/pere/blog/Using_the_Kodi_API_to_play_Youtube_videos.html</link>
12 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Using_the_Kodi_API_to_play_Youtube_videos.html</guid>
13 <pubDate>Sun, 2 Sep 2018 23:40:00 +0200</pubDate>
14 <description>&lt;p&gt;I continue to explore my Kodi installation, and today I wanted to
15 tell it to play a youtube URL I received in a chat, without having to
16 insert search terms using the on-screen keyboard. After searching the
17 web for API access to the Youtube plugin and testing a bit, I managed
18 to find a recipe that worked. If you got a kodi instance with its API
19 available from http://kodihost/jsonrpc, you can try the following to
20 have check out a nice cover band.&lt;/p&gt;
21
22 &lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;curl --silent --header &#39;Content-Type: application/json&#39; \
23 --data-binary &#39;{ &quot;id&quot;: 1, &quot;jsonrpc&quot;: &quot;2.0&quot;, &quot;method&quot;: &quot;Player.Open&quot;,
24 &quot;params&quot;: {&quot;item&quot;: { &quot;file&quot;:
25 &quot;plugin://plugin.video.youtube/play/?video_id=LuRGVM9O0qg&quot; } } }&#39; \
26 http://projector.local/jsonrpc&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
27
28 &lt;p&gt;I&#39;ve extended kodi-stream program to take a video source as its
29 first argument. It can now handle direct video links, youtube links
30 and &#39;desktop&#39; to stream my desktop to Kodi. It is almost like a
31 Chromecast. :)&lt;/p&gt;
32
33 &lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
34 activities, please send Bitcoin donations to my address
35 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
36 </description>
37 </item>
38
39 </channel>
40 </rss>