PlayerState enum
播放器状态
前缀带 a 表示Android , i 表示 iOS
@time 2022-05-06 17:37:43
@auther 梁典典
Values
- aNormal → const PlayerState
-
正常状态,等待用户操作中
- aPrepareing → const PlayerState
-
准备中,播放器正在准备资源中
- aPlaying → const PlayerState
-
播放中
- aPlayingBufferingStart → const PlayerState
-
开始缓冲资源中
- aPause → const PlayerState
-
播放器暂停状态
- aAutoComplete → const PlayerState
-
播放器自动播放结束
- aError → const PlayerState
-
获取资源发生错误,也就是不能播放资源
- iPreparing → const PlayerState
-
正在准备播放所需组件,在调用 -play 方法时出现。
- iReady → const PlayerState
-
播放组件准备完成,准备开始播放,在调用 -play 方法时出现。
- iOpen → const PlayerState
-
播放组件准备完成,准备开始连接
- iCaching → const PlayerState
-
缓存数据为空状态。 特别需要注意的是当推流端停止推流之后,PLPlayer 将出现 caching 状态直到 timeout 后抛出 timeout 的 error 而不是出现 PLPlayerStatusStopped 状态 ,因此在直播场景中,当流停止之后一般做法是使用 IM 服务告知播放器停止播放,以达到即时响应主播断流的目的。
- iAutoReconnecting → const PlayerState
-
自动重连的状态
- unknuwn → const PlayerState
-
未知状态
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PlayerState> - A constant List of the values in this enum, in order of their declaration.