Android WebRtc - how to save video and audio in one file mp4 - Stack Overflow

admin2025-04-17  2

I created this post because I have an app in which one I do webrtc call.

I use this library :

I would like to know : Is there a simple way to start to record remote video track and remote audio track and save it in one file locally in our phone ? for example mp4 ?

I saw that there is VideoFileRenderer to save a video and JavaAudioDevice to record audio. But I would like to start to record only when I want to start (not when the call starts).

Is there a possibility to use MediaRecorder class to do that ?

I tried to search on internet but I didn't find a solution that can be used for my use case.

If you have code snipet it will really help me.

Thank you in advance for your help.

转载请注明原文地址:http://anycun.com/QandA/1744866319a88728.html