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

Handling member function of MediaCodec

Discussion in 'Android Development' started by sidsidd, Mar 15, 2021.

  1. sidsidd

    sidsidd Lurker
    Thread Starter

    I am developing and application where I need both MediaCrypto and MediaCodec. By using MediaCodec.getInputBuffer, I for the input buffer index which is used to store encrypted data and passed to native decrypt through MediaCodec.queueSecureInputBuffer.

    After decrypt operation is completed, I am calling MediaCodec.dequeueOutputBuffer to get index of output buffer available. Using the index, I am calling MediaCodec.getOutputBuffer API to get the clear data which is decrypted on native decrypt call. But unfortunately I didn't receive any clear data through the call to MediaCodec.getOutputBuffer.

    Can you please help to resolve this issue. I am using Android 10 for my validation.

    #1 sidsidd, Mar 15, 2021
    Last edited: Mar 15, 2021

    1. Download the Forums for Android™ app!


  2. Unforgiven

    Unforgiven ...eschew obfuscation...

    Development thread moved to the dev area for better exposure.:)
    ocnbrze likes this.

Share This Page