Listing of different streams
#1
Hi there,

hopefully my problem is quite trivial...
I created an addon that simply play a webstream of our local radio here...
Just two lines of code:
Code:
url = 'http://edge.live.mp3.mdn.newmedia.nacamar.net/radioffh/livestream.mp3.m3u'
xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(url)

Now I would like to add a second stream and the addon shall give me a list
of streams and by clicking on them the file should play...A liitle bit like ListenLive but with fix streams...

I read the docu but can´t figure out how to do that...

May some advanced programmer can halp me out with this...

cheers,
Max
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Reply
#2
if it's just fixed urls, why not simply use a playlist??
Reply
#3
Nice Idea...but I wanted to get this done via addon...it´s just learning how to do this...

thanks for the hint...
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Reply
#4
in that case see any plugin. they all do this.
Reply
#5
that´s what I tried...can´t figure it out...maybe I have to read more documentation...

cheers...
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Reply
#6
This should work for you. default.py

Thanks to Voinage for making this really easy!
http://wiki.xbmc.org/index.php?title=HOW...s_for_XBMC
Reply
#7
Thanks divingmule...
this needs some tweaking I think...
copied the default.py in my addon directory, but the listing fails with the following log-message:
Code:
Traceback (most recent call last):
                                              File "C:\Users\max\AppData\Roaming\XBMC\addons\plugin.audio.ddlbeats\default.py", line 76, in ?
                                                CATEGORIES()
                                              File "C:\Users\max\AppData\Roaming\XBMC\addons\plugin.audio.ddlbeats\default.py", line 6, in CATEGORIES
                                                addLink('FFH','http://edge.live.mp3.mdn.newmedia.nacamar.net/radioffh/livestream.mp3.m3u',1,'')
                                            TypeError: addLink() takes exactly 3 arguments (4 given)
17:27:39 T:10428 M:1371668480   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.ddlbeats/
17:27:39 T:10428 M:1371668480   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.ddlbeats/) failed

Will check this out...hopefully I get this to work...
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Reply
#8
Yeah, My bad. Change line 34 to:
Code:
def addLink(name,url,mode,iconimage):
Reply
#9
YEAH...you made my day...f***in' great...very nice...
Thanks...

cheers...
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Reply

Logout Mark Read Team Forum Stats Members Help
Listing of different streams0