Add clip list component
This commit is contained in:
@@ -52,6 +52,7 @@ class Actuator extends Emitter<IActuatorEvent> {
|
||||
|
||||
// 记录录制片段
|
||||
this.recordClip = clip;
|
||||
clip.isRecording = true;
|
||||
|
||||
// 如果仿真未开启,开启仿真
|
||||
if (!this.start()) this.start(true);
|
||||
@@ -65,6 +66,9 @@ class Actuator extends Emitter<IActuatorEvent> {
|
||||
*/
|
||||
public endRecord() {
|
||||
|
||||
this.recordClip && (this.recordClip.isRecording = false);
|
||||
this.recordClip = undefined;
|
||||
|
||||
// 如果仿真未停止,停止仿真
|
||||
if (this.start()) this.start(false);
|
||||
|
||||
|
||||
@@ -44,6 +44,11 @@ class Clip {
|
||||
*/
|
||||
public frames: IFrame[] = [];
|
||||
|
||||
/**
|
||||
* 是否正在录制
|
||||
*/
|
||||
public isRecording: boolean = false;
|
||||
|
||||
/**
|
||||
* 录制一帧
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user