WrappedPlayer class

Constructors

WrappedPlayer()

Properties

currentRate double
getter/setter pair
currentUrl String
getter/setter pair
currentVolume double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isPlaying bool
getter/setter pair
onEvent ↔ void Function(String method, Object? arguments)?
事件回调,由插件注入到方法通道,向 Dart 侧转发播放器事件。
getter/setter pair
player ↔ HTMLAudioElement?
getter/setter pair
playMode PlayMode
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroy() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
play() → void
recreateNode() → void
release() → void
resume() → void
暂停时保留元素与进度,恢复播放只需再次 play()。
seekTo(double positionMs) → void
positionMs 为毫秒,HTMLMediaElement.currentTime 单位为秒。
setRate(double rate) → void
setVolume(double volume) → void
start(String url) → void
装载 url(不自动播放,是否播放由调用方按 isAuto 决定)。
stop() → void
toString() String
A string representation of this object.
inherited

Operators

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