2009-10-09, 02:09
I am writing a plugin for the music site dishant.com. I am able to scrape the site and build the song ist and play them.
Here are the issues I am running into:
The first issue:
As I scrape the songs and the rtmp url, I am adding them to display and at the same time building the playlist. The first will start playing immediately (For ex: Album ABC has 10 songs. When the album is selected, I would like to play the first song, and build the playlist for all the 10 songs). Here is the code I am using to fetch the infoimage
However it doesnt work. I believe the problem is that when I click on the album page the list item refers to the album and not the individual song
The same code works, if I build the song items and play them one by one using the play button.
Any ideas how I can build the infoimage apriori and assign them to the individual items?
The second issue I have is - when the music starts playing, I am not able to see the visualization even if I activate it. Any ideas as to what I need to do to start playing visualization when the music starts?
I tried using the musicoverlay.xml by xbmc.activatewindow(12903) but still no use.
Thanks
-M
Here are the issues I am running into:
The first issue:
As I scrape the songs and the rtmp url, I am adding them to display and at the same time building the playlist. The first will start playing immediately (For ex: Album ABC has 10 songs. When the album is selected, I would like to play the first song, and build the playlist for all the 10 songs). Here is the code I am using to fetch the infoimage
Code:
g_thumbnail = xbmc.getInfoImage( "ListItem.Thumb" )
item.setThumbnailImage(g_thumbnail)
However it doesnt work. I believe the problem is that when I click on the album page the list item refers to the album and not the individual song
The same code works, if I build the song items and play them one by one using the play button.
Any ideas how I can build the infoimage apriori and assign them to the individual items?
The second issue I have is - when the music starts playing, I am not able to see the visualization even if I activate it. Any ideas as to what I need to do to start playing visualization when the music starts?
I tried using the musicoverlay.xml by xbmc.activatewindow(12903) but still no use.
Thanks
-M