Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to change the Audio Codec used? #10

Closed
sarinrohan opened this issue Aug 1, 2014 · 7 comments
Closed

Is it possible to change the Audio Codec used? #10

sarinrohan opened this issue Aug 1, 2014 · 7 comments

Comments

@sarinrohan
Copy link

While running the app on my phone, when I check the logs on Eclipse, I find that it sets the audio codec as Opus at 32kbits. Since the internet connection I am using is pretty poor, is it possible to adjust the SendCodec bitrate to a lower value in your app for better audio?

Also, would it help to use the compiled library for Google's WebRTCDemo and create a VoiceEngine and simply edit the sendcodec?

Thanks.

@pchab
Copy link
Owner

pchab commented Aug 1, 2014

Sorry, I really don't know how to change the codec. You should check the
WebRTC native APIs.

On Fri, Aug 1, 2014 at 12:17 PM, sarinrohan notifications@github.com
wrote:

While running the app on my phone, when I check the logs on Eclipse, I
find that it sets the audio codec as Opus at 32kbits. Since the internet
connection I am using is pretty poor, is it possible to adjust the
SendCodec bitrate to a lower value in your app for better audio?

Also, would it help to use the compiled library for Google's WebRTCDemo
and create a VoiceEngine and simply edit the sendcodec?

Thanks.


Reply to this email directly or view it on GitHub
#10.

@sarinrohan
Copy link
Author

I tried to change stuff. It's there in webrtcvoiceengine.cc.

Though can you let me know what changes you made to the WebRTC Java libraries before compiling them? After I recompile, a few methods such as InitializeAndroidGlobals gives me an error in AndroidRTC.

@pchab
Copy link
Owner

pchab commented Aug 4, 2014

I haven't made any changes to the WebRTC Java libraries, but it's an old
version.
That's an odd error, initialiseAndroidGlobals should still work :
http://code.google.com/p/webrtc/source/browse/stable/talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java

On Mon, Aug 4, 2014 at 7:26 AM, sarinrohan notifications@github.com wrote:

I tried to change stuff. It's there in webrtcvoiceengine.cc.

Though can you let me know what changes you made to the WebRTC Java
libraries before compiling them? After I recompile, a few methods such as
InitializeAndroidGlobals gives me an error in AndroidRTC.


Reply to this email directly or view it on GitHub
#10 (comment).

@sarinrohan
Copy link
Author

Found a workaround. Passing other 2 parameters as True to initialiseAndroidGlobals works. Its something to do with initialising audio and video streams. It was updated in the newer releases.

@pchab
Copy link
Owner

pchab commented Aug 11, 2014

Good to know thanks !

On Mon, Aug 11, 2014 at 8:10 AM, sarinrohan notifications@github.com
wrote:

Found a workaround. Passing other 2 parameters as True to
initialiseAndroidGlobals works. Its something to do with initialising audio
and video streams. It was updated in the newer releases.


Reply to this email directly or view it on GitHub
#10 (comment).

@EvaniRam
Copy link

Hey,
i have created an voice calling app(WebRTC) in android.it was working fine but there is noise and echo in the call. Is there any way to reduce echo cancellation and noise cancellation in android??.i have used your repository for building my application.

@pchab
Copy link
Owner

pchab commented Mar 27, 2015

Hi, I've updated the libjingle and you should now be able to change audio and video codecs (as well as some other parameters).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants