OHOS::Media::StreamCallback

Overview

Related Modules:

MultiMedia_MediaCommon

Description:

Provides functions to obtain the address of a buffer memory and write the filled buffers into the playback queue. You need to implement the StreamCallback functions in a player object.

Since:

1.0

Version:

1.0

Summary

Public Types

Public Type Name Description
BufferFlags : uint32_t {   STREAM_FLAG_SYNCFRAME = 1, STREAM_FLAG_CODECCONFIG = 2, STREAM_FLAG_EOS = 4, STREAM_FLAG_PARTIAL_FRAME = 8,   STREAM_FLAG_ENDOFFRAME = 16, STREAM_FLAG_MUXER_DATA = 32 } Enumerates buffer types of stream sources.

Public Member Functions

Public Member Function Name Description
GetBuffer (size_t index)=0 virtual uint8_t * Obtains the virtual address of a buffer memory block based on its index.
QueueBuffer (size_t index, size_t offset, size_t size, int64_t timestampUs, uint32_t flags)=0 virtual void Writes the filled buffer memory block into the player memory.
SetParameters (const Format &params)=0 virtual void Sets additional information about a stream.