IosOptions class

iOS的配置选项

Constructors

IosOptions({int? timeoutIntervalForMediaPackets, int? maxL1BufferDuration, int? maxL2BufferDuration, bool? videoToolbox, bool? cacheBufferDurationSpeedAdjust, LoggerLevelIos? loggerLevel, String? dnsManager, String? videoCacheFolderPath, bool? videoFileNameEncode, PlayFormat? playFormat, String? videoCacheExtensionName, String? sdkId, String? headUserAgent, String? videoOutputFormat})
const

Properties

cacheBufferDurationSpeedAdjust bool?
用于是否根据最小缓冲时间和最大缓冲时间,使播放速度变慢或变快 默认 YES ,即底层会自动根据缓存 buffer 调节速率。注意点播播放的时候,需关闭这个参数
final
dnsManager String?
dns 查询,使用内置 DNS 解析 NSString 类型,开启 DNS 解析,默认使用系统 API 解析 该参数仅对 rtmp/flv 直播生效
final
hashCode int
The hash code for this object.
no setterinherited
headUserAgent String?
http 的 header 该参数用于设置 http 的 header 不可包含 "\n" 或 "\r",包含"\n" 或 "\r" 则设置无效
final
loggerLevel LoggerLevelIos?
配置 log 级别 是个枚举,可选参数查看 >> LoggerLevelIos release 建议使用 warning, debug 建议使用 info.
final
maxL1BufferDuration int?
一级缓存大小,单位为 ms,默认为 2000ms,增大该值可以减小播放过程中的卡顿率,但会增大弱网环境的最大累积延迟 该缓存存放的是网络层读取到的数据,为保证实时性,超过该缓存池大小的过期音频数据将被丢弃,视频将加速渲染追上音频
final
maxL2BufferDuration int?
默认二级缓存大小,单位为 ms,默认为 300ms,增大该值可以减小播放过程中的卡顿率,但会增大弱网环境的最大累积延迟 该缓存存放的是解码之后待渲染的数据,如果该缓存池满,则二级缓存将不再接收来自一级缓存的数据
final
playFormat PlayFormat?
视频预设值播放 URL 格式类型 该参数用于加快首开,提前告知播放器流类型,默认 unKnown 可选值查看: PlayFormat
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkId String?
SDK 设备 ID
final
timeoutIntervalForMediaPackets int?
接收/发送数据包超时时间间隔所对应的键值,单位为 s ,默认配置为 10s 建议设置正数。设置的值小于等于 0 时,表示禁用超时,播放卡住时,将无超时回调。 该参数仅对 rtmp/flv 直播生效
final
videoCacheExtensionName String?
视频缓存扩展名 该属性仅对点播 mp4 有效,需在视频缓存目录 PLPlayerOptionKeyVideoCacheFolderPath 基础上设置
final
videoCacheFolderPath String?
视频缓存目录, 默认为 nil 该属性仅对点播 mp4 有效, 当 videoCacheFolderPath 有值时,默认关闭 DNS 解析
final
videoFileNameEncode bool?
视频缓存目录名称是否加密,默认不加密 当 videoCacheFolderPath 有值时,成效
final
videoOutputFormat String?
视频回调格式
final
videoToolbox bool?
是否使用 video toolbox 硬解码。 使用 video toolbox Player 将尝试硬解码,失败后,将切换回软解码。 该参数仅对 rtmp/flv 直播生效, 默认不使用。支持 iOS 8.0 及更高版本。
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
转成map
toString() String
A string representation of this object.
inherited

Operators

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