1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

    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
     


Loading...
Similar Threads - Android Media Projection
  1. Julie3322
    Replies:
    1
    Views:
    141
  2. Raniyah
    Replies:
    5
    Views:
    276
  3. Micko179
    Replies:
    6
    Views:
    293
  4. Sharjeel Arshad
    Replies:
    3
    Views:
    239
  5. Atsix26
    Replies:
    0
    Views:
    159
  6. Android News
    Replies:
    0
    Views:
    304
  7. Android News
    Replies:
    0
    Views:
    639
  8. Julian Bond
    Replies:
    1
    Views:
    1,920
  9. steve_1973
    Replies:
    9
    Views:
    1,572

Share This Page

Loading...