Your 2nd Add-On: Online Videos!
#20
(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.
Reply


Messages In This Thread
Your 2nd Add-On: Online Videos! - by zag - 2015-11-20, 15:28
RE: Your 2nd Add-On: Online Videos! - by zag - 2015-11-20, 15:33
RE: Your 2nd Add-On: Online Videos! - by zag - 2015-11-30, 14:42
RE: Your 2nd Add-On: Online Videos! - by zag - 2015-12-01, 12:58
RE: Your 2nd Add-On: Online Videos! - by zag - 2016-01-18, 14:37
RE: Your 2nd Add-On: Online Videos! - by Rapboy - 2016-01-19, 09:11
RE: Your 2nd Add-On: Online Videos! - by pa79 - 2020-09-09, 19:59
Logout Mark Read Team Forum Stats Members Help
Your 2nd Add-On: Online Videos!2