FlutterVapController class

用于控制VAP视频播放的控制器

Constructors

FlutterVapController()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bindChannel(MethodChannel channel) → void
由插件内部调用,外部无需手动设置
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
play({required String path, required VapSourceType sourceType, int repeatCount = 0, bool deleteOnEnd = true}) Future<void>
播放视频,必传 path/sourceType 循环播放repeatCount参数只在Android管用 deleteOnEnd 决定资源播放完毕后是否应删除该文件。
replay() Future<void>
重新播放最后一次播放的视频
stop() Future<void>
停止播放
toString() String
A string representation of this object.
inherited

Operators

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