PDA

View Full Version : Dialog after play (in Python)


scooba77
2004-02-24, 18:35
hi,
i want to have a dialog that appears after mediaplay has finished.
i tried this:
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

darkie
2004-02-24, 20:30
not possible atm.
python does not know when xbmc is finished playing a media file.