# OHOS::Media::StreamCallback - [Overview](#section1708185826165633) - [Summary](#section1272339314165633) - [Public Types](#pub-types) - [Public Member Functions](#pub-methods) ## **Overview** **Related Modules:** [MultiMedia\_MediaCommon](MultiMedia_MediaCommon.md) **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](OHOS-Media-StreamCallback.md)** 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 } |
|
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 |