- trackIndex
- The track index for this sample.
- byteBuf
- The encoded sample.
- bufferInfo
- The buffer information related to this sample. MediaMuxer uses the flags provided in NoType:android/media/MediaCodec$BufferInfo;Href=../../../reference/android/media/MediaCodec.BufferInfo.html, to signal sync frames.
Writes an encoded sample into the muxer.
The application needs to make sure that the samples are written into the right tracks. Also, it needs to make sure the samples for each track are written in chronological order (e.g. in the order they are provided by the encoder.)