autoexec.py Startup Clip...
#1
Hey everyone, I've got what is hopefully an easy question. Blush

I've only got about three hours of Python experience now (as of last night --11PM - 2AM) and I've written a tiny script to play an approximately 5 second DTS 7.1 clip on XBMC Start.

My problem is: what I want and what I've got are two different things.

I'd like the clip to play either: before the XBMC backgrounds and menus load; or, after they load, and behind the home menu (in the background) - the latter is the preference.

I've attached my little script, if anyone could critique and let me know what I'm doing wrong, I'd really appreciate it. Right now the clip is starting after the backgrounds load but before the home menu, and it's playing in the foreground, not behind the menu.

Code:
import xbmc
import time

player = xbmc.Player()
player.play("smb://blackbox/video/Clips/hd_dts_orchestra_short_lossless.m2ts")
time.sleep(.2)
xbmc.executebuiltin('XBMC.ActivateWindow(home)')

It may be worth noting that this code was working at one point (though a bit jumpy), with a previous (slightly longer) clip that my wife just didn't like. After changing the clip to the current one declared in the code, the ActiveWindow(home) call stopped working.
Reply

Logout Mark Read Team Forum Stats Members Help
autoexec.py Startup Clip...0