OHOS::Media::StreamCallback
Overview
Related Modules:
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
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 } |
Public Member Functions
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 |
Writes the filled buffer memory block into the player memory. |
SetParameters (const Format ¶ms)=0 |