1. Download our Official Android App: Forums for Android!

Apps Android Media Projection Record Screen via MediaCodec with mux audio

Discussion in 'Android Development' started by t0m90, Mar 8, 2016.

  1. t0m90

    t0m90 Guest
    Thread Starter
    Rank:
    None
    Posts:
    0
    Joined:

    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
     

    Advertisement

Share This Page

Loading...