1 Star 0 Fork 5.4K

vv_justdoit / docs

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-StreamSource.md 3.24 KB
Copy Edit Raw Blame History
wenjun authored 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

OHOS::Media::StreamSource

Overview

Related Modules:

MultiMedia_MediaCommon

Description:

Provides functions related to the stream source for upper-layer applications.

After the SetSource function is called, the player invokes OnBufferAvailable to notify your application of the buffer memory block that can be filled with data. The player can invoke SetStreamCallback to register a callback for your application. For example, the GetBuffer callback obtains the address of the buffer block and sends the filled buffer memory block to the player. The buffer memory block is allocated and processed on the player. **StreamSource**is available only for the media source of the SOURCE_TYPE_STREAM type. For details, see SourceType.

Since:

1.0

Version:

1.0

Summary

Public Member Functions

Public Member Function Name

Description

OnBufferAvailable (size_t index, size_t offset, size_t size)=0

virtual void 

Notifies your application of the information about the buffer memory block that can be filled with data.

SetStreamCallback (const std::shared_ptr< StreamCallback > &callback)=0

virtual void 

Sets a callback function for your application.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vv-justdoit/docs.git
git@gitee.com:vv-justdoit/docs.git
vv-justdoit
docs
docs
master

Search

344bd9b3 5694891 D2dac590 5694891