You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.3 KiB
75 lines
1.3 KiB
import IPlatform from "./IPlatform";
|
|
|
|
/**
|
|
* 录屏管理器
|
|
*/
|
|
export default interface IRecordManager {
|
|
/**
|
|
* 平台
|
|
*/
|
|
Platform: IPlatform;
|
|
|
|
/**
|
|
* 是否支持录屏
|
|
*/
|
|
supportRecord: boolean;
|
|
|
|
/**
|
|
* 是否正在录制中
|
|
*/
|
|
isRecording: boolean;
|
|
|
|
/**
|
|
* 是否暂停录制
|
|
*/
|
|
isPausing: boolean;
|
|
|
|
/**
|
|
* 是否录制成功
|
|
*/
|
|
isRecordSuccess: boolean;
|
|
|
|
/**
|
|
* 视频保存位置
|
|
*/
|
|
videoSavePath: string;
|
|
|
|
/**
|
|
* 开始录屏
|
|
* @param onStart 正式开始的回调
|
|
* @param onOverTime 录屏超过最大时间的回调
|
|
*/
|
|
StartRecord(onStart: Function, onOverTime: Function);
|
|
|
|
/**
|
|
* 暂停录制
|
|
* @param onPause
|
|
*/
|
|
Pause(onPause: Function);
|
|
|
|
/**
|
|
* 继续录制
|
|
* @param onReume
|
|
*/
|
|
Resume(onReume: Function);
|
|
|
|
/**
|
|
* 记录精彩时刻
|
|
*/
|
|
RecordClip(timeRange: number[]);
|
|
|
|
/**
|
|
* 结束录屏
|
|
* @param onStop 结束录屏回调,如果为空则使用超时回调
|
|
*/
|
|
StopRecord(onStop: Function);
|
|
|
|
/**
|
|
* 分享视频
|
|
* @param onSuccess
|
|
* @param onCancel
|
|
* @param onFailed
|
|
*/
|
|
ShareVideo(onSuccess: Function, onCancel: Function, onFailed: Function);
|
|
|
|
}
|