Iscflutterplugin class

播放器控制器 如需扩展,参考海康isc平台 sdk播放器文档

Constructors

Iscflutterplugin.init(int id)

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

capturePicture(String bitmapPath) Future
预览/回放 抓图 必须预览/回放成功后才可调用 bitmapPath 图片本地存储路径
changeStream(String liveRtspUrl) Future
码流平滑切换 需注意该方法仅在Android平台上生效,IOS不支持 必须预览成功后才可调用 liveRtspUrl 预览地址
enableSound(bool enable) Future
声音控制 必须预览/回放成功后才可调用
getOSDTime() Future
查询当前播放时间戳接口
getStatusMessage(int status) String?
转化错误码信息
getVersion() Future
获取当前海康SDK版本号
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPause() Future
生命周期回调 注意:APP前后台切换时 华为手机 上不会回调生命周期方法,例如:华为P20,可以在这里手动调用
onResume() Future
生命周期回调 注意:APP前后台切换时 华为手机 上不会回调生命周期方法,例如:华为P20,可以在这里手动调用
pause() Future
暂停回放
resume() Future
恢复回放
seekAbsPlayback(String seekTime) Future
按绝对时间回放定位 seekTime 定位时间 格式为 yyyy-MMdd'T'HH:mm:ss.SSSZ
setStatusCallback(IscPlayerStatusCallback callback) → void
设置播放器/语音对讲回调监听 该回调全局只需设置一次即可
startPlayback(String liveRtspUrl, String startTime, String stopTime) Future
开始回放 回放开始前,需要设置播放器状态回调setStatusCallback startTime 开始时间 格式为 yyyy-MMdd'T'HH:mm:ss.SSSZ stopTime 结束时间 格式为 yyyy-MMdd'T'HH:mm:ss.SSSZ
startRealPlay(String liveRtspUrl) Future
开始预览 预览开始前,需要设置播放器状态回调setStatusCallback liveRtspUrl 预览地址
startRecord(String mediaFilePath) Future
开启本地录像 必须预览/回放成功后才可调用 mediaFilePath 视频本地存储路径
startVoiceTalk(String liveRtspUrl) Future
开启语音对讲 语音开始前,需要设置播放器状态回调setStatusCallback liveRtspUrl 预览地址
stopPlay() Future
停止播放,包括预览和回放
stopRecord() Future
关闭本地录像 必须预览/回放成功后才可调用
stopVoiceTalk() Future
关闭语音对讲
toString() String
A string representation of this object.
inherited

Operators

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