Dialog after play (in Python)
#1
hi,
i want to have a dialog that appears after mediaplay has finished.
i tried this:
Quote:import xbmc, xbmcgui

dialog = xbmcgui.dialog()
list = ['next','cancel']

xbmc.mediaplay("smb://192.168.66.7/videoz/01.mpg")
selected = dialog.select('select an item', list)
if selected == 0:
   xbmc.mediaplay("smb://192.168.66.7/videoz/02.mpg")

but the dialog comes first and after an selection the file plays.

i want that the mpg finishes and then the dialog appears.

thx for help

scooba77
Reply
#2
not possible atm.
python does not know when xbmc is finished playing a media file.
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
Reply
#3
Hi, is it possible now in the svn trunk ?

I need this feature for a script which will update the "viewed" status of a TV episode on a website (BetaSeries.com).

Thanks Smile
Reply
#4
http://forum.xbmc.org/showthread.php?tid=86184
If you have problems please read this before posting

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

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply

Logout Mark Read Team Forum Stats Members Help
Dialog after play (in Python)0