Aracılığıyla paylaş


MediaMuxer.WriteSampleData(Int32, ByteBuffer, MediaCodec+BufferInfo) Method

Definition

Writes an encoded sample into the muxer.

[Android.Runtime.Register("writeSampleData", "(ILjava/nio/ByteBuffer;Landroid/media/MediaCodec$BufferInfo;)V", "")]
public void WriteSampleData (int trackIndex, Java.Nio.ByteBuffer byteBuf, Android.Media.MediaCodec.BufferInfo bufferInfo);
[<Android.Runtime.Register("writeSampleData", "(ILjava/nio/ByteBuffer;Landroid/media/MediaCodec$BufferInfo;)V", "")>]
member this.WriteSampleData : int * Java.Nio.ByteBuffer * Android.Media.MediaCodec.BufferInfo -> unit

Parameters

trackIndex
Int32

The track index for this sample.

byteBuf
ByteBuffer

The encoded sample.

bufferInfo
MediaCodec.BufferInfo

The buffer information related to this sample.

Attributes

Remarks

Java documentation for android.media.MediaMuxer.writeSampleData(int, java.nio.ByteBuffer, android.media.BufferInfo).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to