AppPlayerController<T> class

Constructors

AppPlayerController({StateChangeCallback<T>? changeCallback, T? userData})

Properties

appPlayerSetChannel ↔ void Function(int playerPtr, int channel, int key)
getter/setter pair
appPlayerSetScale ↔ void Function(int playerPtr, double minScale, double maxScale, int minFocal, int maxFocal, int direction, double threshold)
getter/setter pair
appPlayerSetScaleCenter ↔ void Function(int playerPtr, double minScale, double maxScale, int minFocal, int maxFocal, int direction, double threshold, double x, double y)
getter/setter pair
changeCallback StateChangeCallback<T>?
getter/setter pair
changedProgress bool
getter/setter pair
createdCallback CreatedCallback<T?>?
getter/setter pair
focal int
getter/setter pair
focalCallbacks List<FocalChangeCallback<T?>>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isCreated bool
getter/setter pair
loadState int
getter/setter pair
playerId int
getter/setter pair
playSec int
getter/setter pair
playSpeed double
getter/setter pair
progress int
getter/setter pair
progressCallbacks List<ProgressChangeCallback<T>>
getter/setter pair
recordStatus RecordStatus
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
soundTouchType SoundTouchType
getter/setter pair
source ↔ dynamic
getter/setter pair
sourceType VideoSourceType
getter/setter pair
sub2_controller AppPlayerController?
getter/setter pair
sub_controller AppPlayerController?
getter/setter pair
textureId int
getter/setter pair
totalSec int
getter/setter pair
userData ↔ T?
getter/setter pair
velocity int
getter/setter pair
version int
getter/setter pair
videoStatus VideoStatus
getter/setter pair
voiceStatus VoiceStatus
getter/setter pair

Methods

addFocalChangeCallback(FocalChangeCallback<T?> callback) → void
addProgressChangeCallback(ProgressChangeCallback<T> callback) → void
clearFocalChangeCallback() → void
clearProgressChangeCallback() → void
create() Future<bool>
创建对象
disableSubPlayer() Future<bool>
dispose() → void
enableSub2Player(AppPlayerController controller) Future<bool>
enableSubPlayer(AppPlayerController controller) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<bool>
progressListener(dynamic args) → void
removeFocalChangeCallback(FocalChangeCallback<T> callback) → void
removeProgressChangeCallback(ProgressChangeCallback<T> callback) → void
resume() Future<bool>
save(String filePath, {int start = 0, int end = 0xFFFFFFFF}) Future<int>
scale(int direction, int minFocal, int maxFocal, double minScale, double maxScale, double threshold) → void
scaleCenter(int direction, int minFocal, int maxFocal, double minScale, double maxScale, double threshold, double x, double y) → void
screenshot(String filePath, {String imageSize = "0"}) Future<bool>
截图
setChannelKey(int channel, int key) → void
setCreatedCallback(CreatedCallback<T> callback) → void
setProgress(int duration, {bool timeLine = false, int channel = 2, int key = 0}) Future<bool>
进度回调
setSoundTouch(SoundTouchType touchType) Future<bool>
setSpeed(double speed) Future<bool>
设置播放速率
setStateChangeCallback(StateChangeCallback<T> callback) → void
setVideoSource(VideoSource source) Future<bool>
设置视频源
start() Future<bool>
startDown(String filePath) Future<bool>
startRecord({RecordEncoderType encoderType = RecordEncoderType.G711}) Future<bool>
开始录像
startVoice() Future<bool>
stop() Future<bool>
stopDown() Future<bool>
stopRecord() Future<bool>
暂停录像
stopVoice() Future<bool>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

playerLib DynamicLibrary
final

Static Methods

saveMP4(String srcPath, String destPath, {int enableSub = 0, int destWidth = 0, int destHeight = 0}) Future<bool>
录像保存
saveWAVE(String srcPath, String destPath, {int channel = 1, int fmt = 16, int rate = 8000}) Future<bool>