Hi there
I have used pyglet for a video player . however when i used the following 
code than the avi and wav files are displayed with both sound and video but 
mp4 file only shows video but no sound. any suggestion as i have avbin 
installed. here is my code:
mport pyglet
 
 #creates an instance of the 'Window' class

source = pyglet.media.load('example2.mp4',streaming=True)
player = pyglet.media.Player()
window = pyglet.window.Window()
player.queue(source)


@window.event #!#! the actual decorator !#!#>
def on_draw(): #function bound to the decoration
     player.get_texture().blit(0,0)
player.play()

pyglet.app.run() #starts the pyglet event loop (which starts the 
application)

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to