Exemplo n.º 1
0
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()
Exemplo n.º 2
0
Arquivo: main.py Projeto: K0F/FreeJ
 def on_debug(self, menuitem):
     if menuitem.get_active():
         freej.set_debug(3)
     else:
         freej.set_debug(1)
Exemplo n.º 3
0
 def on_debug(self, menuitem):
     if menuitem.get_active():
         freej.set_debug(3)
     else:
         freej.set_debug(1)
Exemplo n.º 4
0
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')