2015-02-05, 10:16
I've made an autoexec.py to run a Slideshow from a directory with picture+video.
This was my code
However videos weren't played (!), but if I did
it worked.
I wonder if there's a better way to do it without reproducing the user flow to start the slideshow, and trying to evade the Pictures Menu GUI.
Looking at the code I see that Slideshow is called differently in both.
https://github.com/xbmc/xbmc/blob/master...s.cpp#L849
https://github.com/xbmc/xbmc/blob/master...s.cpp#L430
If I'm not wrong, it should say CGUIWindowSlideShow instead of CGUIWindow in Builtins.cpp
This was my code
Code:
import xbmc
xbmc.executebuiltin('XBMC.Slideshow('/storage/pictures/slideshow/')')
However videos weren't played (!), but if I did
Code:
import xbmc
xbmc.executebuiltin("ActivateWindow(Pictures,/storage/pictures/slideshow/)")
xbmc.executebuiltin("Action(Play)")
it worked.
I wonder if there's a better way to do it without reproducing the user flow to start the slideshow, and trying to evade the Pictures Menu GUI.
Looking at the code I see that Slideshow is called differently in both.
https://github.com/xbmc/xbmc/blob/master...s.cpp#L849
https://github.com/xbmc/xbmc/blob/master...s.cpp#L430
If I'm not wrong, it should say CGUIWindowSlideShow instead of CGUIWindow in Builtins.cpp