How to show icon, title when playing online stream? - 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) +--- Thread: How to show icon, title when playing online stream? (/showthread.php?tid=81037) |
How to show icon, title when playing online stream? - 1@berdash - 2010-09-13 Please forgive my ignorance if this has been answered elsewhere but I have been struggling with this for a while now. I am on Dharma and writing an add-on for a radio station and the task seems simple: I have a stream url that I can play without problems using Code: xbmc.Player().play(url) Code: liz = xbmcgui.ListItem('MyChannel Livestream', iconImage='icon.png', thumbnailImage='') And, if that is possible, can I (from an add-on script) perodically check something and change the "currently playing" info? Cheers, Chris - ppic - 2010-09-13 hi, what's "u" in your code, for icon, you have to specify the full path / url to the image. yes you can change a listitem by a script. - 1@berdash - 2010-09-13 The 'u' is the string containing the full URL of the audio stream. As I said, it plays fine and the player is not the problem but what is displayed while playing. - ppic - 2010-09-13 here is the way i use: Code: video = get_video_url(url) i think you miss to put the path in your item. - 1@berdash - 2010-09-13 Thanks folks, the icon is now sorted out by using an absolute path, determined via os.getcwd(). HOWEVER, the title or "now playing" is still at its ugly default which is the last part of the played URL. The strings in the ListItem and infoLabels are completely ignored. Any hints? - ppic - 2010-09-13 post your code - 1@berdash - 2010-09-13 Almost the same code as in the first post. 'u' contains the URL to play. Playing works, icon is displayed but no title: Code: liz = xbmcgui.ListItem('The title I want to see', iconImage=os.getcwd()+'\icon.png', thumbnailImage=os.getcwd()+'\icon.png', path=u) - 1@berdash - 2010-09-15 Anyone? If that code seems correct I will have to file a bug report because it is clearly not working. I'd like to be at least certain that I am at least on the right track. |