Kodi Community Forum
Push local RTMP stream to Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: VideoPlayer InputStream (https://forum.kodi.tv/forumdisplay.php?fid=312)
+---- Thread: Push local RTMP stream to Kodi (/showthread.php?tid=267376)



Push local RTMP stream to Kodi - bLd75 - 2016-04-04

Hi everyone.

I am trying to push a local stream to Kodi in order it to watch the stream automatically as soon as the stream gets live.
Here is my situation
- I have set up a local RTMP stream server via nginx on my RPi (running OSMC), following instructions here : https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/
- I am using Open Broadcaster (obs) on windows to stream PC screen, games and everything else.

I am able to watch the stream from any device in my local network (other PC, phone...) by accessing the stream address rtmp://[RPi nginx server].
Now, I would like the server to push the stream to Kodi screen as soon as the stream gets live.

I thought about a solution using the http server, something working like the firefox extension send to XBMC (https://github.com/dirkjanm/firefox-send-to-xbmc), probably using the JSON-RPC API (http://kodi.wiki/view/JSON-RPC_API#Documentation) but I don't know how to trigger it.
I am not very familiar with Python coding but I can easily understand solutions using it.

By the way, which would be the best extension to watch a local RTMP stream without pushing it (by launching extension and selecting the stream to watch) ? I am planning to have multiple streams running on my server and I would like that only 1 address pushes the stream to Kodi and the others to be available "on demand" from Kodi extension.

Thanks in advance for your help !