How to video record with specific sound programmatically in android?

后端 未结 4 1417
终归单人心
终归单人心 2021-01-03 00:13

I have created functionality to record video in my app.

When I play a song, that song is recorded with video and a video file is created, similar to a dubshmash app

4条回答
  •  醉酒成梦
    2021-01-03 00:44

    You can use a MediaRecorder without calling setAudio* on it. remove this line

    mediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
    

    see this link

提交回复
热议问题