Hey I'm trying to develop screencast app which would record the contents of the screen as well as microphone input. I was able to implement the video recording but I can't find anything about adding microphone input to mediaMuxer. I know I could use mediarecorder class but how then could i add the mediarecorder to muxer? I've found this bits of code so far.
MediaFormat audioFormat = new MediaFormat(...);
int audioTrackIndex = muxer.addTrack(audioFormat);
While I could add an audioFormat to the muxer I'm not sure how could I add the microphone input to the muxer. Could someone point me in the right direction or provide some sort of sample code?