pour publier un stream red5, on utilise la méthode attachSound
mic=Microphone.getMicrophone(0);
if(mic!=null ) {
if (getRoomByName(room).noMicro==0) {
mic.rate=22;
var timer:Timer=new Timer(50);
timer.addEventListener(TimerEvent.TIMER, drawMicLevel);
timer.start();
floodTimer.addEventListener(TimerEvent.TIMER, antiflood);
floodTimer.start();
nsOutGoing.attachAudio(mic);
}
}
et pour dépublier le stream, il suffit de passer un paramètre null
nsOutGoing.attachAudio(null);
0 Responses to “externalInterface et Firefox”
Leave a Reply