Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

getMicrophone from TV Tuner

New Here ,
Mar 28, 2009 Mar 28, 2009
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){});
}
TOPICS
ActionScript
395
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 28, 2009 Mar 28, 2009
LATEST
To elaborate a bit more, My Tv Tuner shows up as Camera, but it does not show up as a microphone, of course, because it's not a microphone. But the video the TV Turner is providing flash has audio with it. So, I am wondering if there is a technique to get GetCamera take the sound as well instead of needing getMicrophone, since the stream that comes from TV Tuner has audio with it.

Thanks in advance.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines