2006-04-18, 18:34
hi. i have seen a lot of scripts, attempting to detect media playing and media change.
most code i have seen does this:
loop:
sleep
check media
if media changed do stuff
goto loop
but there is a better way:
the loop in this code, is just because we don't want our script to end.
you can get the code from here, because xbmc forum is sensoring some code:
onplayback.py
most code i have seen does this:
loop:
sleep
check media
if media changed do stuff
goto loop
but there is a better way:
the loop in this code, is just because we don't want our script to end.
you can get the code from here, because xbmc forum is sensoring some code:
onplayback.py