source.h

Overview

Related Modules:

MultiMedia_MediaCommon

Description:

Declares the Source class, which is used to implement source-related operations.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name Description
OHOS::Media::StreamCallback 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.
OHOS::Media::StreamSource Provides functions related to the stream source for upper-layer applications.
OHOS::Media::Source Provides functions to implement source-related operations.

Enumerations

Enumeration Name Description
OHOS::Media::SourceType : int32_t { OHOS::Media::SourceType::SOURCE_TYPE_URI = 0, OHOS::Media::SourceType::SOURCE_TYPE_FD, OHOS::Media::SourceType::SOURCE_TYPE_STREAM } Enumerates media source types.