Permalink
Browse files

changed capture codecs to h264/speex

  • Loading branch information...
1 parent 8768602 commit 01d3b8857c0033872a2b530ac9c4d52071c6eba2 @arut committed Oct 1, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/rtmp-publisher/RtmpPublisher.mxml
  2. BIN test/rtmp-publisher/RtmpPublisher.swf
@@ -18,6 +18,7 @@
private var microphone:Microphone;
private var connection:NetConnection;
private var stream:NetStream;
+ private var h264Settings:H264VideoStreamSettings;
private function toggleFeedListener(event:MouseEvent):void {
if(toggleFeed.label == 'Start Feed') {
@@ -69,6 +70,9 @@
stream = new NetStream(connection);
stream.attachCamera(camera);
stream.attachAudio(microphone);
+ h264Settings = new H264VideoStreamSettings();
+ h264Settings.setProfileLevel(H264Profile.BASELINE, H264Level.LEVEL_1_2);
+ stream.videoStreamSettings = h264Settings;
break;
}
}
@@ -88,6 +92,11 @@
camera = Camera.getCamera();
microphone = Microphone.getMicrophone();
+ microphone.setSilenceLevel(0);
+ microphone.codec = "Speex";
+ microphone.encodeQuality = 6;
+ camera.setMode(704, 576, 25);
+ camera.setQuality(131072, 70);
connection = new NetConnection();
connection.connect(streamer);
connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHander);
Binary file not shown.

0 comments on commit 01d3b88

Please sign in to comment.