Flash获取本地摄像头和麦克风
在库里新建一个视频文件,命名为MyCam,然后把下列代码放到第一帧就可以了~~~
cam = Camera.get();
MyCam.attachVideo(cam);
this.createEmptyMovieClip("micAudio", 1);
micAudio.attachAudio(Microphone.get());
myMic = Microphone.get();
myMic.setUseEchoSuppression(1);
myMic.setRate(44);
myMic.setSilenceLevel(5);
myMic.setGain(25);