Hi, I have a TV Tuner attached to my computer, when I do
getCamera, no problem, I get the video from my TV. But, when I do
get getMicrophone, nothing happens, although when I try to use
another app I can hear the audio. What am I doing wrong? Here is
the code:
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var camera:Camera = Camera.getCamera();
if (camera != null) {
camera.addEventListener(ActivityEvent.ACTIVITY,
function(evt:Event){
trace(evt);
});
var video:Video = new Video(camera.width * 2, camera.height
* 2);
video.attachCamera(camera);
addChild(video);
} else {
trace("You need a camera.");
}
var mic:Microphone = Microphone.getMicrophone();
Security.showSettings("2");
mic.setLoopBack(true);
if (mic != null) {
mic.setUseEchoSuppression(true);
mic.addEventListener(ActivityEvent.ACTIVITY,
function(evt:Event){});
mic.addEventListener(StatusEvent.STATUS,
function(evt:Event){});
}