When I switch from the 10.0 or 10.1 swc to the 10.3 AEC swc (from here http://forums.adobe.com/thread/801429), my microphone is not picked up. I've created a small sample application to duplicate the problem which I've tested on Linux and Mac where I have the 10.3 player installed.
When compile and run the application below with the 10.1 swc, after clicking the "Audio" button, I'm asked for permission to access my mic. Then the progress bar fills according to mic input. When I swap in the 10.3 swc, after clicking the "Audio" button, I am NOT asked for permission to access my mic and the progress bar does not fill according to mic input.
Any guidance?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
horizontalAlign="center"
backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#FFFFFF, #FFFFFF]"
xmlns:rtc="http://ns.adobe.com/rtc"
creationComplete="init()">
<mx:Script>
<![CDATA[
import com.adobe.rtc.events.StreamEvent;
import mx.controls.Alert;
public function init():void {
}
protected var activityTimer:Timer = new Timer(30, 1);
protected function onStreamReceive(e:StreamEvent):void {
if (e.streamDescriptor.finishPublishing) {
if (audioPub.microphone != null) {
activityTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
activityTimer.start();
}
}
}
protected function onTimerComplete(event:TimerEvent):void {
activityTimer.start();
if (audioPub.isPublishing && !audioPub.isPaused) {
activityProgress.setProgress(audioPub.microphone.activityLevel, 100);
}
}
public function startAudio():void {
audioButt.label = "Started audio";
audioPub.publish();
audioPub.addEventListener(StreamEvent.STREAM_RECEIVE, onStreamReceive);
}
]]>
</mx:Script>
<rtc:AdobeHSAuthenticator
id="auth"
userName=""
password=""/>
<rtc:ConnectSessionContainer
roomURL=""
id="cSession"
authenticator="{auth}">
<mx:VBox borderStyle="solid"
paddingTop="10" paddingBottom="10" paddingLeft="5" paddingRight="5">
<rtc:AudioPublisher id="audioPub"/>
<rtc:AudioSubscriber/>
<mx:Button label="Audio"
toggle="true" id="audioButt" color="#000000"
click="startAudio()"/>
<mx:Label text="Mic volume"/>
<mx:ProgressBar id="activityProgress" minimum="0" maximum="100" width="150" mode="manual" label=" "
labelPlacement="center"/>
</mx:VBox>
</rtc:ConnectSessionContainer>
</mx:Application>
Views
Replies
Total Likes
Hi Nathan,
I ran your app, it worked great for me with the 10.3 swc. Also I had security dialog too while trying to publish. Not sure whats going wrong.
I have attached the swc again, just in case. Also can you try changing <collaboration:AudioPublisher id="audioPub" > to <collaboration:AudioPublisher id="audioPub" gain="100"/> . Also can you please validate if you are project settings are right and set according to instructions in http://forums.adobe.com/message/3516160#3516160
Many other users have complained about this issue, but I have been unsuccessful in reproducing the issue.
Thanks
Arun
Views
Replies
Total Likes
Thanks for your response. I overlooked the "target-player" compiler option. Things seem to be working fine now.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies