The current repo belongs to Closed status, and some functions are restricted. For details, please refer to the description of repo status
1 Star 1 Fork 5.3K

fork_ohos_wj / docs
Closed

forked from OpenHarmony / docs 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
ohos-media-streamcallback.md 5.11 KB
Copy Edit Raw Blame History
wenjun authored 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/fork_ohos_wj/docs.git
git@gitee.com:fork_ohos_wj/docs.git
fork_ohos_wj
docs
docs
master

Search