gnash-dev
[Top][All Lists]
Advanced

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

Re: [Gnash-dev] NetConnection URI and .connect


From: Benjamin Wolsey
Subject: Re: [Gnash-dev] NetConnection URI and .connect
Date: Mon, 15 Dec 2008 09:45:39 +0100

> Oh, hold on a sec.
> For remoting, that URI is used to postpone actual connection
> to NetConnection.call() time.

So is that actually correct? If, as seems quite certain, the pp attempts
a connection at connect() time, what is it for if call() initiates
another one? Though I guess persistent http connections aren't always
possible. 

> The way potlatch works is:
> 
>       nc = new NetConnection();
>       nc.connect("http://xxxxxyyy";);
>       nc.call("xxy");
> 

Anyway, it seems a better model to create some kind of connection object
on connect() and store the URL there for the duration of the connection
(at least until NetConnection.close() is called). With any luck, that
would work for both rtmp streams (NetStream.play()) and
NetConnection.call(). 

There's a comment in the code about testing whether the URL can change
between calls, and if that's the case it would scupper this idea. If it
can't, it would support this model.

bwy

--
The current release of Gnash is 0.8.4
http://www.gnu.org/software/gnash/

Benjamin Wolsey, Software Developer - http://benjaminwolsey.de

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

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