On Thu, Jan 5, 2012 at 11:47 PM, Nolhian <[email protected]> wrote:
> Hello,
>
> I need to open the file myself and getting chunks by reading the file.
> Example :
>
> myfile = open('myvideo.avi','rb')
> mychunk = myfile.read(204800)
>
> Here's a 200KB chunk of the video, how do I feed it to the player ?
>
> In pyglet.media.load there is a file argument, if I pass file=mychunk
> it says TypeError. Indeed I read that this was not yet implemented
> ( file argument is there but not working ).
>
> Is that the only way to do it and if it is then when will it be
> released ?
>
> Thanks in advance,
> Nolhian

That's odd, it ought to have raised a NotImplementedError, not a
TypeError.  What version of pyglet are you using?  Currently, pyglet
doesn't support loading media in any other way than giving it a
filename to load from the filesystem.  I don't know of anyone working
on enabling any other ways to load media at the moment.

~ Nathan

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

Reply via email to