xbmc.executebuiltin('xbmc.activatewindow(home)') doesnt work in latest builds?????
#1
I've been using an old Startup video script that plays videos in the background on xbmc. When I updated to the latest SVN build of XBMC, the script still works, but the videos are not played in the background. I tried using the AutoStartManager script but it is having the same problem. I can still make them play in the background by hitting the 'X' key, but I would like to be able to get the videos to automatically start playing in the background.

The script I use has this line of code for playing the video in the background:
xbmc.executebuiltin('xbmc.activatewindow(home)')

Any suggestions on how I can fix this?
Reply
#2
try replacing home with: 10000

or try:
xbmc.executebuiltin("XBMC.ReplaceWindow("10000")")

Let me know how you go
Reply
#3
using: xbmc.executebuiltin('xbmc.activatewindow(10000)')
had the same effect, the video did not move to the background.

when i used: xbmc.executebuiltin("XBMC.ReplaceWindow("10000")")
the video did not start at all (or was terminated)
Reply
#4
xbmc.executebuiltin( "XBMC.ActivateWindow(0)" )

You can look in the xml files for the window you want to activate.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#5
Nuka1195 Wrote:xbmc.executebuiltin( "XBMC.ActivateWindow(0)" )

You can look in the xml files for the window you want to activate.

same thing. loads the video but doesn't put it in the background.
Reply
#6
your problem is the video isn't starting fast enough, you'll need a sleep between the play() and the activatewindow. Just experiment.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#7
try this:
xbmc.executebuiltin("XBMC.ReplaceWindow("10000")")
time.sleep(0.1)
//YOUR PLAY VIDEO CODE HERE

make sure you import time as well :-D
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc.executebuiltin('xbmc.activatewindow(home)') doesnt work in latest builds?????0