docs: private void captureH264MetaData(ByteBuffer encodedData, MediaCodec.BufferInfo bufferInfo) {
          mH264MetaSize = bufferInfo.size;
          mH264Keyframe = ByteBuffer.allocateDirect(encodedData.capacity());
          byte[] videoConfig = new byte[bufferInfo.size];
          encodedData.get(videoConfig, bufferInfo.offset, bufferInfo.size);
          encodedData.position(bufferInfo.offset);
          encodedData.put(videoConfig, 0, bufferInfo.size);
          encodedData.position(bufferInfo.offset);
          mH264Keyframe.put(videoConfig, 0, bufferInfo.size);
      }