I'm trying to get the image from the pyglet.media.Player() while it's 
playing a movie, but all I end up with is black:

If I use this code, then all I get is a black image:

    tex = player.get_texture().get_image_data() 

    form = tex.format

    pitch = tex.width * len(form)

    pixels = tex.get_data(form, pitch) # <-- all of these pixels have a 0 
value! What's up?


Even though the player is playing the movie, this method of getting the 
image isn't working...



-- 
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 https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to