play rmtp stream - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: play rmtp stream (/showthread.php?tid=186279) |
play rmtp stream - kenneiv - 2014-02-14 Hello, I need some help with creating a very simple addon to xbmc. That should play a RMTP stream. I have tried the following code but according to xbmc so it was the wrong structure. default.py Code: import xbmcaddon, util until.py Code: import xbmcgui, xbmc RE: play rmtp stream - rmcore - 2014-02-14 kenneiv, What is the exact error you are seeing? I've only written one add on, but what you are doing looks a little strange to me. If you know the url of a stream you want to play, all you have to do is one call to xbmc.Player.play Something like this: Code: xbmc.Player().play(item=link) So what you are doing with the list item seems to be confusing the issue if you just want to play back a video with a known url. Also, I am not sure if it is case sensitive but I use "video" with a lower case v when setting the media type. RE: play rmtp stream - Lunatixz - 2014-02-15 Passing media to XBMC through it's api is pretty straight forward, can you elaborate on your problem ? RE: play rmtp stream - kenneiv - 2014-02-15 Hi, I have changed the code. The new code looks like this: Code: import xbmcgui But when i try to run the addon nothing is happening. What have done wrong here ? |