open-webrtc-toolkit / owt-client-android

Open WebRTC Toolkit client SDK for Android applications.
https://01.org/open-webrtc-toolkit
Apache License 2.0
194 stars 96 forks source link

AudioEncodeParamters are not reflecting in remote audio stream #271

Closed shakthi-prashanth-m closed 3 years ago

shakthi-prashanth-m commented 3 years ago

I've created audio encoding parameters using

        AudioCodecParameters opusCodec = new AudioCodecParameters(OPUS, 2, 48000);
        AudioEncodingParameters opus = new AudioEncodingParameters(opusCodec);

and added opus to p2p client config as below:

        p2pConfig = P2PClientConfiguration.builder().addAudioParameters(opus)

But remote stream OnStreamAdded says audio config as 16000 sample rate, Mono channel. Am I missing something ?

shakthi-prashanth-m commented 3 years ago

The issue was due to lack of android permissions in the Android app, not with OWT Android SDK. Hence closing.