[Red5] Find codec in RTMP Data
Miguel Barros
barrosgmr at gmail.com
Wed Mar 11 04:55:49 PST 2009
Hello everyone!
First let me say that red5 is wondeful!
I have client write in flex/actionscript for streaming video, from a web
cam, to red5server.
The client, something like this simple code:
......................
public function initCamera():void{
try{
cam=Camera.getCamera();
cam.setMode (240,180,15)
cam.setKeyFrameInterval (9);
cam.setQuality (0,80);
}
catch (error:IllegalOperationError){
trace(error);
}
public function send():void{
outgoingNetStream = new NetStream(netConnection);
var client2:Object = new Object();
client2.onMetaData = onMetaData;
client2.onBWDone = onBWDone;
outgoingNetStream.addEventListener(NetStatusEvent.NET_STATUS,
netStatus);
outgoingNetStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR,
asyncErrorHandler);
outgoingNetStream.attachCamera(cam);
outgoingNetStream.publish(publishName, "live");
}
............................
*****************************************************************************
In red5 i have something like this:
.......
if (rtmpEvent instanceof VideoData){
ByteBuffer videoData = ((IstreamData)
rtmpEvent).getData().asReadOnlyBuffer();
....
}
*****************************************************************************
*How can i find type of the codec present in the data/stream that comes in
the RTMP packet?
Can i define codec to the data, in the side of client?*
I search in red5 wikis and tutorials and i don't find anything.
Thank you for the attention.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090311/b7c41194/attachment.html>
More information about the Red5
mailing list