AliPlayerWidgetController class
播放器组件控制器,用于管理阿里云播放器的初始化、播放和销毁逻辑
Player widget controller, used to manage the initialization, playback, and destruction logic of Alibaba Cloud Player
Constructors
- AliPlayerWidgetController.new(BuildContext _context)
- 播放器组件控制器构造函数,用于创建 AliPlayerWidgetController 实例。
Properties
-
brightnessNotifier
→ SafeValueNotifier<
double> -
播放亮度变化通知器
final
-
bufferedPositionNotifier
→ SafeValueNotifier<
Duration> -
播放缓冲进度变化通知器
final
-
currentPositionNotifier
→ SafeValueNotifier<
Duration> -
播放进度变化通知器
final
-
currentTrackInfoNotifier
→ SafeValueNotifier<
AVPTrackInfo?> -
播放清晰度变化通知器
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isLoopNotifier
→ SafeValueNotifier<
bool> -
循环播放变化通知器
final
-
isMuteNotifier
→ SafeValueNotifier<
bool> -
静音播放变化通知器
final
-
isRenderedNotifier
→ SafeValueNotifier<
bool> -
渲染状态变化通知器
final
-
mirrorModeNotifier
→ SafeValueNotifier<
int> -
镜像模式变化通知器
final
-
playErrorNotifier
→ SafeValueNotifier<
Map< int?, String?> ?> -
播放错误信息变化通知器
final
-
playStateNotifier
→ SafeValueNotifier<
int> -
播放状态变化通知器
final
-
rotateModeNotifier
→ SafeValueNotifier<
int> -
旋转角度变化通知器
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaleModeNotifier
→ SafeValueNotifier<
int> -
渲染模式变化通知器
final
-
speedNotifier
→ SafeValueNotifier<
double> -
播放速度变化通知器
final
-
thumbnailNotifier
→ SafeValueNotifier<
MemoryImage?> -
缩略图变化通知器
final
-
totalDurationNotifier
→ SafeValueNotifier<
Duration> -
播放总时长变化通知器
final
-
trackInfoListNotifier
→ SafeValueNotifier<
List< AVPTrackInfo> ?> -
播放清晰度信息列表变化通知器
final
-
videoSizeNotifier
→ SafeValueNotifier<
Size> -
视频尺寸变化通知器
final
-
volumeNotifier
→ SafeValueNotifier<
double> -
播放音量变化通知器
final
Methods
-
configure(
AliPlayerWidgetData data) → void - 配置播放控制器
-
destroy(
) → void - 销毁播放控制器
-
getCurrentPosition(
) → Future< int> - 获取当前播放位置
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - 暂停播放
-
play(
) → void - 继续播放
-
prepare(
) → void - 准备播放
-
replay(
) → void - 重新播放
-
requestThumbnailBitmap(
Duration position) → void - 请求缩略图
-
seek(
Duration position) → void - 跳转播放位置
-
selectTrack(
AVPTrackInfo? trackInfo) → void - 切换清晰度
-
setBrightness(
double brightness) → void - 设置亮度
-
setBrightnessWithDelta(
double delta) → void - 设置亮度(增量)
-
setLoop(
bool loop) → Future< void> - 设置循环播放
-
setMirrorMode(
int mirrorMode) → Future< void> - 设置镜像模式
-
setMute(
bool mute) → Future< void> - 设置静音
-
setRotateMode(
int rotateMode) → Future< void> - 设置旋转角度
-
setScaleMode(
int scaleMode) → Future< void> - 设置渲染填充模式
-
setSpeed(
{double speed = SettingConstants.defaultSpeed}) → void - 设置播放速度
-
setVolume(
double volume) → void - 设置音量
-
setVolumeWithDelta(
double delta) → void - 设置音量(增量)
-
stop(
) → void - 停止播放
-
togglePlayState(
) → void - 切换播放状态
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
clearCaches(
) → Future< void> - 清除 Widget 缓存
-
getWidgetVersion(
) → String - 获取 Flutter Widget 版本号