AVPConfig class

AVPConfig设置

Constructors

AVPConfig()

Properties

clearShowWhenStop bool?
调用stop停止后是否显示最后一帧图像,YES代表清除显示,黑屏,默认为NO
getter/setter pair
disableAudio bool?
禁用Audio.
getter/setter pair
disableVideo bool?
禁用Video
getter/setter pair
enableHttp3 bool?
使用http3进行请求,支持标准:RFC 9114(HTTP3)和RFC 9000(QUIC v1),默认值关。如果http3请求失败,自动降级至普通http,默认关闭
getter/setter pair
enableHttpDns int?
播放器实例是否可以使用http dns进行解析,-1 表示跟随全局设置,0 disable
getter/setter pair
enableLocalCache bool?
是否开启本地缓存
getter/setter pair
enableProjection bool?
允许当前播放器实例进行投屏,你需要集成投屏SDK来完成投屏功能,默认值关
getter/setter pair
enableSEI bool?
是否启用SEI
getter/setter pair
enableStrictAuthMode bool?
针对打开了点播URL鉴权的媒体资源(HLS协议),开启本地缓存后,可选择不同的鉴权模式:非严格鉴权(false):鉴权也缓存,若上一次只缓存了部分媒体,下次播放至非缓存部分时,播放器会用缓存的鉴权发起请求,如果URL鉴权设置的有效很短的话,会导致播放异常。严格鉴权(true):鉴权不缓存,每次起播都进行鉴权,无网络下会导致起播失败。默认值:false。
getter/setter pair
enableStrictFlvHeader bool?
用于纯音频或纯视频的RTMP/FLV直播流起播优化策略,当流的header声明只有音频或只有视频时,且实际流的内容跟header声明一致时,此选项打开可以达到快速起播的效果。默认关闭
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
highBufferDuration int?
卡顿后缓存数据的高水位,当播放器缓存数据大于此值时开始播放,单位毫秒
getter/setter pair
httpHeaders List?
添加自定义header
getter/setter pair
httpProxy String?
httpProxy代理
getter/setter pair
liveStartIndex int?
HLS直播时,起播分片位置。
getter/setter pair
maxBufferDuration int?
播放器最大的缓存数据长度,默认50秒,单位毫秒
getter/setter pair
maxDelayTime int?
直播最大延迟 默认5000毫秒,单位毫秒
getter/setter pair
maxProbeSize int?
probe数据大小,默认-1,表示不设置
getter/setter pair
mMAXBackwardDuration int?
设置播放器后向buffer的最大值.
getter/setter pair
networkRetryCount int?
网络重试次数,每次间隔networkTimeout,networkRetryCount=0则表示不重试,重试策略app决定,默认值为2
getter/setter pair
networkTimeout int?
网络超时时间,默认15秒,单位毫秒
getter/setter pair
pixelBufferOutputFormat int?
set the video format for renderFrame callback
getter/setter pair
positionTimerIntervalMs int?
进度跟新的频率。包括当前位置和缓冲位置。
getter/setter pair
preferAudio bool?
优先保证音频播放;在网络带宽不足的情况下,优先保障音频的播放,目前只在dash直播流中有效(视频已经切换到了最低码率)
getter/setter pair
referer String?
请求referer
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startBufferDuration int?
开始起播缓存区数据长度,默认500ms,单位毫秒
getter/setter pair
userAgent String?
user Agent
getter/setter pair

Methods

convertToMap() Map
AVPConfig类型的playConfig转为Map类型
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

Static Methods

convertAt(Map map) AVPConfig
Map类型的playConfig转为AVPConfig类型