VideoItemModel<T extends VideoVo> class
管理当前播放的item数据
- Inheritance
-
- Object
- ChangeNotifier
- VideoItemModel
Constructors
-
VideoItemModel(int index, T videoVo, VideoModel<
VideoVo> model)
Properties
- beforeBackstageIsPlaying ↔ bool
-
app处于后台之前,播放器是否正在播放
这用于在回到前台时,播放器根据前台之前的状态进行操作
如:切换到后台之前,播放器是播放的状态,当app回到前台,播放器也应该继续播放
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- index ↔ int
-
当前播放的下标
getter/setter pair
-
model
↔ VideoModel<
VideoVo> -
getter/setter pair
-
playState
↔ ValueNotifier<
PlayState> -
播放器加载状态
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serviceState
↔ ValueNotifier<
ServicePlayState> -
视频链接获取状态
getter/setter pair
-
videoAsp
↔ ValueNotifier<
double> -
视频宽高比
getter/setter pair
- videoPlayController → VideoPlayerController?
-
no setter
- videoVo ↔ T
-
当前播放的模型
getter/setter pair
- visible ↔ bool
-
当前播放的item是否可见
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
disposeVideo(
) → void - 销毁播放器
-
initVideo(
String url) → void -
加载视频
url视频链接 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
pauseVideo(
) → void - 暂停播放
-
playVideo(
) → void - 播放
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited