• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Android Media Projection Record Screen via MediaCodec with mux audio

  • Thread starter Thread starter t0m90
  • Start date Start date
T

t0m90

Guest
I would like to recording screen with audio. I use MediaProjection and recording video via MediaCodec. It works.
(I tried to resolve with MediaRecorder: here but with very slow framerate.)
I do not know, how i add audio track.
1. How to add audio track via addTrack.
2. What with audioIndex in record() method.
3. How to writeSampleData to Muxer (method encodeToAudioTrack()).
Could you help me please? Thank you very much.

Fore better formatting code is here: http://stackoverflow.com/questions/...tion-record-screen-with-audio-from-microphone
 
Back
Top Bottom