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