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);

posted @ 2008-10-23 10:22  Landy_di  阅读(704)  评论(0编辑  收藏  举报