PreloadConfig class

预加载配置类 用于配置媒体预加载的相关参数

Constructors

PreloadConfig({int duration = 1000, int? defaultResolution, int? defaultBandWidth, String? defaultQuality})
构造函数 duration 预加载时长,单位毫秒,默认1000 defaultResolution 默认分辨率 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