For some reason when my flex app tries to record, the video display freezes up and nothing is recorded. I could previously record but it would only record as h.263 and the files seemed to be corrupted as they wouldn't play. I would like to have it record h.264 videos.
nsPublish.close();
nsPublish = new NetStream(nc);
nc.addEventListener( NetStatusEvent.NET_STATUS, netStatus );
nsPublish.attachCamera(camera);
nsPublish.attachAudio(microphone);
var h264Settings:H264VideoStreamSettings = new H264VideoStreamSettings();
h264Settings.setProfileLevel(H264Profile.BASELINE, H264Level.LEVEL_1);
nsPublish.videoStreamSettings = h264Settings;
nsPublish.publish("mp4:stream.mp4", "record"); //Publish stream in h.264
I'm using FMS 4.0, Flash Player 11, and FlashBuilder 4.0 with the newest flex 4.5 build sdk.
Any help is appreciated. Thanks in advance.
North America
Europe, Middle East and Africa
Asia Pacific