asd
This commit is contained in:
parent
65a690ed07
commit
bdabac2623
@ -137,6 +137,8 @@ class Timecode {
|
||||
ioClient.emit("play", { file: this.filePlaying });
|
||||
ioClient.on("playing", () => {
|
||||
this.startTime = new Date().getTime();
|
||||
this.interval = setInterval(this.update.bind(this), 1000 / 25);
|
||||
this.playing = true;
|
||||
});
|
||||
ioClient.on("update", (data) => {
|
||||
this.vlcUpdate(data);
|
||||
@ -146,8 +148,8 @@ class Timecode {
|
||||
else {
|
||||
this.startTime = new Date().getTime();
|
||||
this.playing = true;
|
||||
this.interval = setInterval(this.update.bind(this), 1000 / 25);
|
||||
}
|
||||
this.interval = setInterval(this.update.bind(this), 1000 / 25);
|
||||
}
|
||||
stop() {
|
||||
clearInterval(this.interval);
|
||||
|
File diff suppressed because one or more lines are too long
@ -159,6 +159,8 @@ class Timecode {
|
||||
ioClient.emit("play", {file:this.filePlaying});
|
||||
ioClient.on("playing", ()=>{
|
||||
this.startTime = new Date().getTime();
|
||||
this.interval = setInterval(this.update.bind(this), 1000/25);
|
||||
this.playing = true;
|
||||
});
|
||||
ioClient.on("update", (data)=>{
|
||||
this.vlcUpdate(data);
|
||||
@ -167,9 +169,8 @@ class Timecode {
|
||||
} else {
|
||||
this.startTime = new Date().getTime();
|
||||
this.playing = true;
|
||||
this.interval = setInterval(this.update.bind(this), 1000/25);
|
||||
}
|
||||
|
||||
this.interval = setInterval(this.update.bind(this), 1000/25);
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
Loading…
Reference in New Issue
Block a user