1 Star 0 Fork 4.9K

Cain / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
OHOS-Media-StreamCallback.md 5.14 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

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.

1
https://gitee.com/cain_qin/docs.git
git@gitee.com:cain_qin/docs.git
cain_qin
docs
docs
master

搜索帮助