setResolvedUrl() for pictures?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ruuk Online
Skilled Python Coder
Posts: 908
Joined: Aug 2005
Reputation: 133
Location: Bremerton, WA USA
Post: #1
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.
(This post was last modified: 2012-05-29 21:20 by ruuk.)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,564
Joined: Oct 2003
Reputation: 138
Post: #2
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).

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
AddonScriptorDE Offline
Fan
Posts: 310
Joined: May 2012
Reputation: 15
Location: Germany
Post: #3
(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
find quote