ZegoMediaPlayerResource class

用于指定播放器的多媒体资源。

用于在加载多媒体资源时,配置加载参数。

Constructors

ZegoMediaPlayerResource(ZegoMultimediaLoadType loadType, {int? startPosition, ZegoAlphaLayoutType? alphaLayout, String? filePath, Uint8List? memory, String? resourceID})
ZegoMediaPlayerResource.defaultConfig()
默认构造一个媒体播放器资源对象。

Properties

alphaLayout ZegoAlphaLayoutType?
如果指定的资源带透明特效,需要指定 alpha 数据的布局位置。
read / write
filePath ↔ String?
文件资源的路径。本地资源路径或网络资源的 URL,不能传入 null 或 ""。Android 可通过 Uri 方式进行传参。
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
loadType ZegoMultimediaLoadType
用于指定多媒体资源的加载类型。
read / write
memory ↔ Uint8List?
二进制数据内存。
read / write
resourceID ↔ String?
从版权音乐模块获取的资源 ID。
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
startPosition ↔ int?
开始播放的进度。
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited