I have used following code to run video . it works fine for avi and wav 
file as both sound and video can be displayed but when i used it with mp4 
file only video no sound. i have installed avbin. any suggestion what need 
to be done.
here is the code:

import pyglet
 
 #creates an instance of the 'Window' class

source = pyglet.media.load('C:\\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)
regards
nadeem

-- 
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