[Help] Auto play music on xbmc_Idle?
#1
Lightbulb 
Hello fellow users of XBMC,

I would like to somehow make my XBMC start playback of an music playlist (or library) When idle for X minutes. (almost like a xbmc_screensaver)

Does anyone have an idea or tips? It would be greatly appreciated.
Even if it's just information whether or not it's possible to even do?
(Perhaps with combination of EventGhost?)

Cheers for reading, don't forget to comment if it's a feature you yourself would be interested in.
Reply
#2
Egoistic bump xD
Reply
#3
Sounds like a nice option for a little elevator music, fade in fade out..
Reply
#4
Yes indeed, something like that.
Reply
#5
Have a look at this post by TREX6662k5
http://forum.xbmc.org/showthread.php?tid...#pid831753
Figure out how to start a playlist instead of a slideshow.

Also:
https://github.com/xbmc/xbmc/pull/1072
Tried to test, but getting wrong structure error.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#6
Cheers mate, ill look into it.
Baffled that you found anything, through search huh?
If you have any other tips, be it search tips or whatever -Feel free to share =)

ps. Best case scenario i would like to preserve the current screensaver.
Alas, i don't know where to start of with that. Thanks though
Reply
#7
Used Google and told it to only search the forum like this:
http://www.google.com/#hl=en&sclient=psy...80&bih=670
I have to admit i haven't looked at all results... So you might find more.

And you would be conserving the current screensaver with using a script. It is basically a python script that checks for inactivity/activity and starts something. You should be able to have "as many as you like" running at the same time at different intervals.
I also think that we can do something more simple then that script.
You need to figure out in what folder scripts go, what to call the file, how to start it, and what the command is to start a playlist.

Starting is probably this one:
Code:
PlayMedia(media[,isdir][,1],[playoffset=xx])
From:
http://wiki.xbmc.org/index.php?title=Lis..._functions
(for more info on how to use the function)

And this checks if the screensaver (slideshow) is active:
Code:
xbmc.getCondVisibility("System.ScreenSaverActive")

So you would maybe do something like:
Code:
If screensaver = active
  Start playlist x

if screensaver = interrupted
   Stop playing music

So that when the slideshow starts, the script will also just start a music playlist. And hope that doesn't stop the screensaver, haha omg.
And then make sure that script starts checking for screensaver activity from startup. And you would have to manually stop the music until you find a function or event that only happens when the screensaver gets stopped/interrupted.
I think that is as far as i can go with scripts though. I never did anything in python before and i have nothing to check syntaxes with.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply

Logout Mark Read Team Forum Stats Members Help
[Help] Auto play music on xbmc_Idle?1