java - 安卓录音如何用代码实现录制手机内部的声音?非麦克风非通话
阿神
阿神 2017-04-17 16:25:16
0
5
541

注意

不是录制麦克风!不是录制通话!!

录制手机内部的声音

比如手机正在播放音乐,或者看视频,或者玩游戏,这时候启动录音,从安卓手机内部录制手机发出的声音.

也就是类似电脑上的立体声混音.

注意,不是麦克风!!!!!!!!!

阿神
阿神

闭关修行中......

reply all(5)
小葫芦

Use an audio cable to connect the headphone jack of your phone and the microphone jack of your computer

左手右手慢动作

You can refer to the API used by open source screen recording software
such as https://github.com/yrom/ScreenRecorder

小葫芦

Due to legal reasons.

MediaRecorder recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);

This API cannot take effect.
It doesn’t work when recording calls. You can test it when recording audio and video.
Hope that helps.

小葫芦

You cannot record internally unless you are root

迷茫

Sir, have you found a way?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template