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

KSYStreamer#startRecord方法如何去掉声音? #145

Open
gordonpro opened this issue Mar 14, 2017 · 3 comments
Open

KSYStreamer#startRecord方法如何去掉声音? #145

gordonpro opened this issue Mar 14, 2017 · 3 comments

Comments

@gordonpro
Copy link

demo运行了,然后我设置了静音模式,但是录的本地视频还是有声音的,有方法不带声音吗?

@dhcn
Copy link

dhcn commented Mar 14, 2017

本地不要开audio录制。

@gordonpro
Copy link
Author

请问是这个意思吗?

AudioManager audioManager = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);
        if (audioManager.isMicrophoneMute() == !enable) {
            if (enable) {
                audioManager.setMicrophoneMute(false);
            } else {
                audioManager.setMicrophoneMute(true);
            }
        }

@gordonpro
Copy link
Author

@chriszeng87 设置静音模式之后,直播流没有声音,但是录的本地文件是有声音的

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

2 participants