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

Stream RTMP Problem #21

Open
chentengming opened this issue Aug 24, 2018 · 2 comments
Open

Stream RTMP Problem #21

chentengming opened this issue Aug 24, 2018 · 2 comments

Comments

@chentengming
Copy link

Black screen appears on the push stream and the sound is not continuous, Thanks.

@ChillingVan
Copy link
Owner

The not continuous could be caused by echo. Could you provide some advise?

@ulongx
Copy link

ulongx commented Nov 22, 2022

消除回声可以用 AcousticEchoCanceler @ChillingVan
在 mAudioRecord.startRecording() 之前执行

// 消除回声导致的滋啦滋啦声音
if (AcousticEchoCanceler.isAvailable()) {
    aec = AcousticEchoCanceler.create(mAudioRecord.getAudioSessionId());
    if (aec != null) {
        aec.setEnabled(true); //android 11 issue low volume
    }
}
if (AutomaticGainControl.isAvailable()) {
    agc = AutomaticGainControl.create(mAudioRecord.getAudioSessionId());
    if (agc != null) {
        agc.setEnabled(true);
    }
}


mAudioRecord.startRecording();
mMediaCodec.start();

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