ZegoMediaPlayerResource class

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

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

Constructors

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

Properties

alphaLayout ZegoAlphaLayoutType?
如果指定的资源带透明特效,需要指定 alpha 数据的布局位置。
getter/setter pair
filePath String?
文件资源的路径。本地资源路径或网络资源的 URL,不能传入 null 或 ""。Android 可通过 Uri 方式进行传参。
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
loadType ZegoMultimediaLoadType
用于指定多媒体资源的加载类型。
getter/setter pair
maxCachePendingLength int?
在线资源最大的缓存待使用长度,单位 byte,最小设置 10M(10 * 1024 * 1024),默认0-不做限制,尝试缓存整个文件。
getter/setter pair
memory Uint8List?
二进制数据内存。
getter/setter pair
onlineResourceCachePath String?
在线资源缓存路径,utf8 编码格式。
getter/setter pair
resourceID String?
从版权音乐模块获取的资源 ID。
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startPosition int?
开始播放的进度。
getter/setter pair

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