PreloadConfig class
预加载配置类 用于配置媒体预加载的相关参数
Constructors
- PreloadConfig({int duration = 1000, int? defaultResolution, int? defaultBandWidth, String? defaultQuality})
-
构造函数
duration预加载时长,单位毫秒,默认1000defaultResolution默认分辨率defaultBandWidth默认带宽defaultQuality默认质量 -
PreloadConfig.fromJson(Map<
String, dynamic> json) -
从Map创建实例
json包含预加载配置信息的Map对象 返回PreloadConfig实例factory
Properties
- defaultBandWidth ↔ int?
-
默认带宽(可选)
getter/setter pair
- defaultQuality ↔ String?
-
默认质量(可选)
getter/setter pair
- defaultResolution ↔ int?
-
默认分辨率(可选)
getter/setter pair
- duration ↔ int
-
预加载时长,默认1000毫秒
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - 转换为Map 返回包含预加载配置信息的Map对象,只包含非空字段
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited