import threading import freej class MyCall(freej.DumbCall): def __init__(self, *args): super(MyCall, self).__init__(*args) def callback(self): print "detected EOS of film (python callback)" freej.set_debug(3) W = 400 H = 300 # init context cx = freej.Context() cx.init() # init screen scr = freej.SdlScreen() scr.init( 400, 300 ) cx.add_screen(scr) v = freej.VideoLayer() v.init(cx) v.open('/home/jaromil/Movies/TheRevolutionWillNotBeTelevisedGilScottHeron.mp4') v.start()
def on_debug(self, menuitem): if menuitem.get_active(): freej.set_debug(3) else: freej.set_debug(1)
import threading import freej class MyCall(freej.DumbCall): def __init__(self, *args): super(MyCall, self).__init__(*args) def callback(self): print "detected EOS of film (python callback)" freej.set_debug(3) W = 400 H = 300 # init context cx = freej.Context() cx.init() # init screen scr = freej.SdlScreen() scr.init(400, 300) cx.add_screen(scr) v = freej.VideoLayer() v.init(cx) v.open('/home/jaromil/Movies/TheRevolutionWillNotBeTelevisedGilScottHeron.mp4')