Expand my Community achievements bar.

WebcamPublisher Acting as an AudioSubscriber -- Possible Bug?

Avatar

Level 1

If you create a simple program with the Flash 10 API that creates both a WebcamPublisher and an AudioPublisher after the ConnectSession logs in, open up two instances of the swf, and then speak in to a mic, you can hear the audio coming through the speakers.  There is no AudioSubscriber so this shouldn't be happening, right?  Is it a bug?

3 Replies

Avatar

Former Community Member

Hi,

Are you running with flash or flex 10 swc ? I ran with flex 10 swc with and without AudioSubscribe. I am not able to hear anything without AudioSubscriber but I can hear with AudioSubscriber.

Here is the code :

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

xmlns:s="library://ns.adobe.com/flex/spark"

xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:rtc="AfcsNameSpace">

<fx:Declarations>

<!-- Place non-visual elements (e.g., services, value objects) here -->

<rtc:AdobeHSAuthenticator id="auth" userName="XXXXX " password="XXXXX" />

</fx:Declarations>

<rtc:ConnectSessionContainer id="cSession" authenticator="" width="100%" height="100%" roomURL="XXXXXXXXXXXXXXXXX" >

<s:VGroup x="0" y="0" id="menuBarVbox" width="100%" height="100%">

<s:HGroup width="100%" height="100%" id="mainHBox">

<s:VGroup width="20%" height="100%" id="chatArea" >

<rtc:WebCamera id="camera" width="100%" height="100%"/>

<rtc:AudioPublisher id="audioPub" useEchoSuppression="true" />

<mx:Button label="Ask Question" toggle="true" id="audioButt" click="(audioButt.selected) ? audioPub.publish() : audioPub.stop()"/>

</s:VGroup>

</s:HGroup>

</s:VGroup>

</rtc:ConnectSessionContainer>

</s:Application>

If it’s a problem with only flash 10 swc, let us know.

Thanks

Hironmay Basu

Avatar

Level 1

Yep, it's definitely flash only.  Here's the source I used to replicate the error:

package com.audiotest {
    import com.adobe.rtc.authentication.AdobeHSAuthenticator;
    import com.adobe.rtc.collaboration.AudioPublisher;
    import com.adobe.rtc.collaboration.WebcamPublisher;
    import com.adobe.rtc.events.SessionEvent;
    import com.adobe.rtc.session.ConnectSession;
   
    import flash.display.MovieClip;
   
    public class AudioTest extends MovieClip {
       
        protected var _cSession:ConnectSession = new ConnectSession();
        protected var _webcamPublisher = new WebcamPublisher();
        protected var _audioPublisher = new AudioPublisher();
       
        protected const USERNAME:String = "";
        protected const PASSWORD:String = "";
        protected const ROOM_URL:String = "";
       
        public function AudioTest() {
            /* Connect Session */
           
            var authenticator = new AdobeHSAuthenticator();
            authenticator.userName = this.USERNAME;
            authenticator.password = this.PASSWORD;
           
            this._cSession.roomURL = this.ROOM_URL;
            this._cSession.authenticator = authenticator;
            this._cSession.login();
           
            this._cSession.addEventListener(SessionEvent.SYNCHRONIZATION_CHANGE, this.onLogin);

        }
       
        protected function onLogin(event:SessionEvent):void {
            this._webcamPublisher.publish();
            this._audioPublisher.publish();
        }
    }
}

Avatar

Employee

Hi,

I did test your code in the scenario you mentioned. Unfortunately I couldnt reproduce it. So could you please try again and let us know if you are still facing the issue.

Thanks

Arun