← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #266643]: Web application real time video detection with Sikuli

 

Question #266643 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266643

RaiMan proposed the following answer:
another option might be:

winVideo = <area> # somehow get the area, the video should be seen

isRunning = True

def running(event):
    global isRunning
    print "is running"
    isRunning = True
    event.stopObserver()

winVideo.onChange(running)

while isRunning:
    winVideo.observe(5) # see comment #1
    wait(1) # pause before restart observe

print "no changes in video display anymore"

the idea is: as long as the video is playing from time to time will
change something in the display area

comment #1: this is the maximum time, that nothing changes, but the
video is still running (e.g. a video containing still images).

... only an idea ;-)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.