change
This commit is contained in:
@ -120,9 +120,10 @@ class Timecode {
|
||||
data.time = new FrameTime(d);
|
||||
data.track = this.activeTrack.id;
|
||||
data.filePlaying = this.filePlaying;
|
||||
data.playing = this.playing;
|
||||
ios.emit("update", data);
|
||||
}
|
||||
update(time) {
|
||||
update() {
|
||||
var d = new Date().getTime() - this.startTime;
|
||||
this.toTrigger.forEach(e => {
|
||||
if (e.time.milliseconds <= d) {
|
||||
@ -137,6 +138,7 @@ class Timecode {
|
||||
data.time = new FrameTime(d);
|
||||
data.track = this.activeTrack.id;
|
||||
data.filePlaying = this.filePlaying;
|
||||
data.playing = this.playing;
|
||||
ios.emit("update", data);
|
||||
}
|
||||
loadTrack(trackid) {
|
||||
@ -179,6 +181,7 @@ class Timecode {
|
||||
stop() {
|
||||
clearInterval(this.interval);
|
||||
this.playing = false;
|
||||
this.update();
|
||||
if (this.filePlaying) {
|
||||
ioClient.emit("stop");
|
||||
ios.emit("stopped");
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user