Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myCamera:Camera = Camera.getCamera();
- var netConnection:NetConnection = new NetConnection();
- netConnection.client = this;
- netConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
- netConnection.connect("rtmp://my_server/recordings");
- function netStatusHandler(event:NetStatusEvent):void {
- trace("NetConnection handler: " + event.info.code);
- var netStream:NetStream = new NetStream(netConnection);
- netStream.attachCamera(myCamera);
- netStream.publish("vidCam1","record");
- }
Add Comment
Please, Sign In to add comment