Note that there are some explanatory texts on larger screens.

plurals
  1. POimprove quality of recorded video using Red5 media server and oflaDemo app
    primarykey
    data
    text
    <p>what i do now is:</p> <pre><code>cam = Camera.getCamera(); // Get default camera. mic = Microphone.getMicrophone(); // Get the microphone cam.setMode(800, 600, 25); cam.setQuality(0,90); videoDisplay.attachCamera(cam); </code></pre> <p>and when the user clicks a button to record i do the following:</p> <pre><code>private function netStatusHandler(e:NetStatusEvent):void { var code:String = e.info.code; Alert.show("code = " + code); if(code == "NetConnection.Connect.Success"){ //in case of recording... ns = new NetStream(nc); ns.attachCamera(cam); ns.attachAudio(mic); ns.publish( "file1", "record" ); } else{ trace(code); } } private function start_rec():void{ nc = new NetConnection(); nc.connect("rtmp://localhost/oflaDemo"); nc.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler); } </code></pre> <p>but the quality of the recording is awful... i follow the same code as above to play the video instead of ns.publish i do ns.play() and the video shown is not as expected although when i ns.play() the ready made flv videos used as samples in red5 they play perfect..there is something wrong with the way i record? with the camera? whats going wrong? any idea??</p> <p>The code to play the video is:</p> <pre><code> var nsClient:Object = {}; nsClient.onMetaData = ns_onMetaData; nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc); ns.client = nsClient; video = new Video(myVid.width,myVid.height); video.attachNetStream(ns); video.smoothing=true; myVid.addChild(video); ns.play("http://localhost:5080/oflaDemo/recordings/file1.flv");` </code></pre> <p>Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload