Kodi Community Forum

Full Version: setResolvedUrl() for pictures?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is setResolvedUrl() supposed to work for pictures?
It doesn't seem to. I have successfully used it with videos, but when trying to use it with images, it just tries to load the plugin:// path as if it were a normal URL.

Thanks in advance for any help on this.
Yeah, it probably doesn't work as there is no player. You'd have to parse the URL, call the script etc. in CGUIWindowSlideShow (check the background image loader).
(2012-05-29, 21:18)ruuk Wrote: [ -> ]Is setResolvedUrl() supposed to work for pictures?
It doesn't seem to. I have successfully used it with videos, but when trying to use it with images, it just tries to load the plugin:// path as if it were a normal URL.

Thanks in advance for any help on this.
You could use this workaround:
Copy the image/images to a temp directory and start a slideshow on this dir.
Code:
xbmc.executebuiltin('SlideShow(DIR)')

Of course, you dont have to do this when trying to display an image from within an Image-Addon.

cheers,
asde