2010-09-13, 19:29
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
The problem is that the player (for example on the home page) only shows the generic loudspeaker icon and the last part of the URL as title. I want to show a .png file in the plugin directory to be shown, and a custom string instead of the URL fragment. I have tried the following:
This runs, but neither the title is displayed nor the icon. Instead, the loudspeaker is gone and there is empty space where the icon should be. Using thumbnailImage is equally ineffective. Is there any way to alter the displayed information when playing a livestream?
And, if that is possible, can I (from an add-on script) perodically check something and change the "currently playing" info?
Cheers,
Chris
Code:
xbmc.Player().play(url)
Code:
liz = xbmcgui.ListItem('MyChannel Livestream', iconImage='icon.png', thumbnailImage='')
liz.setInfo('Audio', infoLabels={'Title': 'MyChannel Livestream', 'Genre': 'Rock'})
xbmc.Player().play(u, liz)
And, if that is possible, can I (from an add-on script) perodically check something and change the "currently playing" info?
Cheers,
Chris