[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] /srv/bzr/gnash/trunk r10414: Move stream creation log
Re: [Gnash-commit] /srv/bzr/gnash/trunk r10414: Move stream creation logic from NetStream to NetConnection (will be useful
Sat, 13 Dec 2008 16:54:46 +0100
> Yes, most likely.
> The TODO can be changed, just wanted to express that for RTMP
> we'd be sending a getStream request down to the server instead,
> and only use the resource name (not full url).
Right, I was just thinking about what I'd write instead, but realised
I'm not really sure what the use case would be. For the conventional
NetStream with http (or filesystem etc), you have to call
NetConnection.connect(null), then (on the attached NetStream)
NetStream.play(URL), where any relative URL is resolved against the base
URL. So in this case we now call NetConnection_as::getStream() with any
URL, and it takes care of resolving it.
I've only briefly looked at how to do it with rtmp. It seems to go like this:
NetConnection.connect("rtmp://rtmpURL"); // connection attempted immediately
Then on the attached NetStream: NetStream.play("stream_name");
So in this case, NetConnection would know it was connected to an rtmp
server. NetConnection_as::getStream() would interpret the argument
passed from NetStream.play() not as an URL, but as a stream name
(whatever that is), and accordingly ask the Gnash object that's managing
the rtmp connection for that stream.
Have I understood that correctly?
Free Flash, use Gnash
Benjamin Wolsey, Software Developer - http://benjaminwolsey.de
Description: Dies ist ein digital signierter Nachrichtenteil