A slide-show addon with arbitrary picture order
#1
Hi,

how can I code a picture addon for a slideshow for pictures not in ONE directory.

The pictures I want display in a slideshow are distributed all over the file-system. I have a path-list of all pictures to display as a sequence.
e.g. one picture sequence:

/home/pi/holiday/091.jpg
/home/pi/sweden/20091.jpg
/home/pi/holiday/09.jpg
....


For this porpose I coded a picture-addon that create a list of all my seuquences:

[def createListing() :

listing = []
listing.append( 'The first slide-show')
listing.append( 'The second slide-show')
listing.append( 'Further slide shows ....')

return listing

...
sendToXcmc(.. the list ...)
]

This works fine. I get the list on my tv-screen.
Now I want click of one line to create a list of pictures to display as one slide show. How to do?

If I click to 'Further slide shows ....' I want to display another list of slide-shows to click then[/code][/quote].

Please help me with my first addon in xbmc.
Reply
#2
You'd need to have the addon copy all the files to some temp directory and then use WindowXML to generate a window that shows the files in that directory in a random order. That's basically what I do with Artist Slideshow when a song has multiple artists.
Reply

Logout Mark Read Team Forum Stats Members Help
A slide-show addon with arbitrary picture order0