gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] Loading external movies


From: Tomas Groth
Subject: Re: [Gnash-dev] Loading external movies
Date: Thu, 11 May 2006 09:44:02 +0200 (CEST)

--- strk <address@hidden> skrev:

> On Wed, May 10, 2006 at 05:44:53PM -0700, John Gilmore wrote:
> > > We will need to support network streaming (for NetConnection, and
> > > NetStream).
> > 
> > Won't you also need to support streaming of the Flash movie itself,
> > rather than reading the whole thing into /tmp before processing it?
> > 
> > Whatever "read-a-file-gradually,-possibly-over-the-network" infrastructure
> > you build for files referenced in Flash movies should also be usable for
> that.
> 
> Right, that is what I had in mind. libcurl is based on callbacks.
> Basically a specified routine gets called whenever there's a new
> chunk of data available.
> Wrapping it around tu_file would need to synthetize a blocking interface,
> for reads(), but it won't require the file to be fully downloaded before
> providing required chunks.
> 
IIRC there is in the mozilla/netscape-plugin API support for downloading files,
which we IMHO should use in the plugin, instead of libcurl. This is of course
not an option in the standalone player.

> I'm not sure about this but I assume SWF parsing is in a separate
> thread from playing, so that blockin on SWF reads woudn't hurt.
> We'd still need to support a timeout signaling

ATM i think we parse the entire SWF, and then play it. But moving the parsing
to a separate thread, would probably be a good thing.

cheers,

Tomas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]