Idea: Pause download package when video is playing.
|
2nd Feb, 2013, 11:47 AM
Post: #5
|
|||
|
|||
RE: Pause download package when video is playing.
Thank you very much for your help!
I will make the script print something in order to see it in the log, regarding the while loop, I didn't find any other way of telling the "onPlayBackEnded" function when XBMC wasn't playing video, I thought it would work that way, if video is playing funcion "onPlayBackStarted" is called and the While loop keeps VIDEO = 1 until video stops playing, then the whole script get's executed again. I had to call that python function with os.system because I have to execute it with sudo, and i don't know how i can do that without executing XBMC as root. In order to execute the python function that closes services with sudo, I configure it with Visudo so i can avoid password input. I'm going to see if it is actually getting executed. EDIT: It dosn't seem to get executed at startup. Here is the log file: http://pastebin.com/TdwtfYPD Near line 100 scripts get executed. I have added the following lines to the default.py: http://pastebin.com/VmkqecST I'm unsure if thats the right way of doing it, I found the xbmc.log method here: http://mirrors.xbmc.org/docs/python-docs/xbmc.html#-log |
|||
« Next Oldest | Next Newest »
|