Android.Media.MediaMuxer.WriteSampleData Method
Writes an encoded sample into the muxer.

Syntax

[Android.Runtime.Register("writeSampleData", "(ILjava/nio/ByteBuffer;Landroid/media/MediaCodec$BufferInfo;)V", "")]
public void WriteSampleData (int trackIndex, Java.Nio.ByteBuffer byteBuf, MediaCodec.BufferInfo bufferInfo)

Parameters

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.

Remarks

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.)

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18