EasyVideoController class

Inheritance

Constructors

EasyVideoController({String url, String asset, File file, VideoFormat videoFormat, Map<String, String> httpHeaders = const {}, String package, bool autoPlay = false, EasyVideoSizeType easyVideoSizeType, double aspectRatio, String cover})

Properties

aspectRatio double
read / write
asset String
read / write
autoPlay bool
read / write
cover String
read / write
duration Duration
read / write
easyVideoSizeType EasyVideoSizeType
read / write
easyVideoState EasyVideoState
播放状态
read / write
file File
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hasListeners bool
Whether any listeners are currently registered. [...]
@protected, read-only, inherited
httpHeaders Map<String, String>
read / write
isFullScreen bool
read / write
isPlaying bool
read / write
isSmoothing bool
read / write
package String
read / write
position Duration
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showVideoStateNotifier ValueNotifier<bool>
是否显示控制控件
read / write
url String
read / write
videoAspectRatioNotifier ValueNotifier<double>
视频尺寸
read / write
videoFormat VideoFormat
read / write
videoPlayerController VideoPlayerController
read-only
videoPlayerControllerNotifier ValueNotifier<VideoPlayerController>
read / write

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes. [...]
inherited
cancelTimer() → void
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 and removeListener will throw after the object is disposed). [...]
override
doInitialize() → void
hidePlayState() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifyListeners() → void
Call all the registered listeners. [...]
onFinish() → void
pause() → void
play() → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes. [...]
inherited
showPlayState() → void
startHideStateCountDown() → void
switchPlayState() → void
toggleFullScreen(BuildContext context) → void
全屏逻辑
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

of(BuildContext context) EasyVideoController