Virces wrote:

> what i can't do is write the server code and the
> client code to stream the video ?

Ok, I'm gonna post an explaination paper on essential Red5 server-side 
handlers and so forth in a couple of days.

> In the client, how do i attach the video from the
> camera to a video component and how to send it to the
> server ?? And how to recieve it ?
> In the server, how do i have to do to reviece the
> stream and then, broadcast it back ?

It's being done automatically. You can intercept the stream.

To start broadcasting use smth like this:

trace( "Available cameras: " + Camera.names );

var nc:NetConnection = new NetConnection();
nc.onStatus = function( status:Object )
{
   trace( "onStatus code : " + status.code );
}

var ns:NetStream = new NetStream( nc );
ns.attachVideo( Camera.get() );

ns.publish( "myWebcamStream", "live" );

pass "record" instead of "live" to record the stream


You can playback that stream like this:

var nc:NetConnection = new NetConnection();
nc.onStatus = function( status:Object )
{
   trace( "onStatus code : " + status.code );
}

var ns:NetStream = new NetStream( nc );
// Attach streaming video to Video object on Stage
videoObject.attachVideo( ns );

ns.play( "myWebcamStream" );


Go ahead and download FMS documentation. It's information on client side 
is absolutely the same for both FMS and Red5 as long as the FP API 
doesn't change... ;)

> 
> i clicked your page but i don't understand Russian :P

Sometimes I even can't understand it myself... No, really, such a rich 
language... :)

-- 
Michael "Antares" Klishin,

http://www.novemberain.com || mailto:[EMAIL PROTECTED]


"We are able to enable people to use Flash where it's useful. It's not 
all or nothing. You can mix and match."

-- Kevin Lynch

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to