Language

AdBuffer Constructor

Definition

Creates an advertisement buffer with the supplied memory and buffer attributes.

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;Landroid/os/SharedMemory;IIJI)V", "", ApiSince=34)]
public AdBuffer(int id, string mimeType, Android.OS.SharedMemory buffer, int offset, int length, long presentationTimeUs, Android.Media.MediaCodecBufferFlags flags);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;Landroid/os/SharedMemory;IIJI)V", "", ApiSince=34)>]
new Android.Media.TV.AdBuffer : int * string * Android.OS.SharedMemory * int * int * int64 * Android.Media.MediaCodecBufferFlags -> Android.Media.TV.AdBuffer

Parameters

id
Int32

The identifier stored in the buffer.

mimeType
String

The MIME type stored in the buffer.

buffer
SharedMemory

The shared memory stored in the buffer.

offset
Int32

The buffer offset to store.

length
Int32

The buffer length to store.

presentationTimeUs
Int64

The presentation timestamp, in microseconds, to store.

flags
MediaCodecBufferFlags

Value is either 0 or a combination of the following: MediaCodec.BUFFER_FLAG_SYNC_FRAME; MediaCodec.BUFFER_FLAG_KEY_FRAME; MediaCodec.BUFFER_FLAG_CODEC_CONFIG; MediaCodec.BUFFER_FLAG_END_OF_STREAM; MediaCodec.BUFFER_FLAG_PARTIAL_FRAME; MediaCodec.BUFFER_FLAG_DECODE_ONLY

Attributes

Remarks

Android reference for android.media.tv.AdBuffer.AdBuffer.

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