Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to override onCodecChange...

Avatar

Level 3

I would like to find a way to override the "protected function onCodecChange(p_evt:StreamEvent):void" in the audiopublisher.

 

I use the Nellymoser codec in my App. When a new user is connecting to the audio stream, the audio publisher codec automatically changes to SPEEX .

So I have to do something:

if (audioPub.microphone.codec.toLocaleLowerCase()=="speex")

                                                  {

   audioPub.microphone.codec="Nellymoser";

                                                  }

But this solution causes a silence for a few seconds.

Any idea?

Thanks

Bernard

6 Replies

Avatar

Level 3

Please!!!  Any idea?

Thanks

Bernard

Avatar

Former Community Member

Have you tried overritten it in the actual LCCS source code?

Avatar

Level 3

Hi James,

Yes, but without success ...

Could you give me an example of code that might work?

This is my app. if you want to test it :

http://bbloo.co/bBloo/?me=test

Bernard

Avatar

Former Community Member

Hi Bernard,

It is set in the following classes...

com.adobe.rtc.sharedManagers.StreamManager

com.adobe.rtc.clientManagers.MicrophoneManager

com.adobe.rtc.collaboration.AudioPublisher

James

Avatar

Level 3

Hi,

in SreamManager...

protected function findCodec():void

              {

...

dispatchEvent(new StreamEvent(StreamEvent.CODEC_CHANGE));

Why dispatchEvent codec change ?

When the participants use nellymoser and a new user enter in a room, the codec of all users change to SPEEX.

Avatar

Former Community Member

Hi Bernard,

I add it to the our improvement's todo list to have a investigation into.. If you could provide me with a simple sample app that demos the problem that would be a great help. My email is james@influxis.com


James