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

block

"
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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -