python - problem with pyglet playing video -
I'm new to paglets and I have a problem with video .. I play paglot using a video I am trying. But instead of playing the video in the window it immediately comes out and ends .. Do you have any solution for this problem? How can I hold the window to play vedio? Please use Windows Vista 64 X with Python 2.5 and
"
widnow = pyglet.window.Window ()
source = pyglet.media.StreamingSource ()
Mediaload = pyglet.media.load (vidPath)
player = pyglet.media.player ( )
Player.Q (Media Load)
Player. First ()
@ window.event
... def on_draw ():
... Player.gate_actaction
I think "pyglet.app.run ()" Calling is missing.
Comments
Post a Comment