[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-dev] Loading external movies
From: |
strk |
Subject: |
Re: [Gnash-dev] Loading external movies |
Date: |
Thu, 11 May 2006 10:14:34 +0200 |
On Thu, May 11, 2006 at 09:44:02AM +0200, Tomas Groth wrote:
> > 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.
I think parsing and playing should be performed by the
same class. Each thread should run a single Sprite/MovieClip
where the main movie itself *is* (should be, IMO) a Sprite.
A Sprite would read from an abstract Stream and refresh
the display whenever it encounters a ShowFrame tag.
A Sprite would be initialized with a Stream, a Frontend
and a Backend (see gui/DESIGN).
The Stream could be an adapter to use the browser api or
a custom one supporting our own caching or whatever.
Does it sound ?
--strk;