PlayerController class

控制器类

Constructors

PlayerController()

Properties

hashCode → int
The hash code for this object.
no setterinherited
isInit → bool
是否已经初始化
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addStateChangeListener(PlayerStateListener listener) → void
android && ios
bind(_VideoPlayerWidgetState _videoPlayerWidgetState) → void
changeLoggerLevler({LoggerLevel? loggerLevel}) → Future<void>
切换日志等级
disableScreenCapture() → Future<void>
android 禁用系统锁屏
getCurrentState() → Future<PlayerState>
adnroid 获取当前播放状态
hideUi() → Future<void>
android 下有效,隐藏控制器端UI
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → Future<void>
暂停播放
resume() → Future<void>
暂停之后,恢复播放
setPlayManager(ManagerModel managerModel) → Future<void>
⚠️ 此方法仅在Android有效
setPlayUrl(String url) → Future<void>
切换播放的URL
stop() → Future<void>
停止播放
toString() → String
A string representation of this object.
inherited

Operators

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