2016-01-19, 09:11
(2016-01-18, 14:37)zag Wrote: Someone just posted this in another thread, but here is a very very simple way to do the same thing.
https://github.com/myjamtv/kodi
Code:import xbmc
import xbmcgui
# Stream URL here
url = "http://108.61.159.243:1935/XStreamEngine-243/smil:MyJamTV.smil/playlist.m3u8"
# Fake List Item for Stream Name
listitem = xbmcgui.ListItem("My Jam TV")
listitem.setInfo('video', {'Title': 'My Jam TV', 'Genre': 'Music Video'})
# Play the Stream
xbmc.Player().play(url, listitem)
Wow that's very simple but so effective.
A quick newb question: For example the My Jam TV, is there a way to assign two or multiple stream url's to the channel? So that whenever I click on My Jam TV, I get prompted with an option to choose which url to play the stream from?
I have spend countless of sleepless nights trying to figure it out, any help will be hugely appreciated.