aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/VideoTimer.hx
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-10-19 15:32:53 -0700
committerPinapelz <yukais@pinapelz.com>2026-10-19 15:32:53 -0700
commit304bd1e77a5442f614aacd2b35f330777118b2cd (patch)
tree970e7da13bb1bd8edf1f9b453af4d0994c665e94 /src/server/VideoTimer.hx
parenta4f3064542ddad6939598e7e60ca0090be07df60 (diff)
merge with upstream https://github.com/RblSb/SyncTubeHEADmaster
Diffstat (limited to 'src/server/VideoTimer.hx')
-rw-r--r--src/server/VideoTimer.hx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/VideoTimer.hx b/src/server/VideoTimer.hx
index 311e7f4..ac6a655 100644
--- a/src/server/VideoTimer.hx
+++ b/src/server/VideoTimer.hx
@@ -4,6 +4,7 @@ import haxe.Timer.stamp;
class VideoTimer {
public var isStarted(default, null) = false;
+ public var isServerPause = false;
var startTime = 0.0;
var pauseStartTime = 0.0;
@@ -14,6 +15,7 @@ class VideoTimer {
public function start():Void {
isStarted = true;
+ isServerPause = false;
startTime = stamp();
pauseStartTime = 0;
rateStartTime = stamp();
@@ -21,6 +23,7 @@ class VideoTimer {
public function stop():Void {
isStarted = false;
+ isServerPause = false;
startTime = 0;
pauseStartTime = 0;
}
@@ -38,6 +41,7 @@ class VideoTimer {
public function play():Void {
if (!isStarted) start();
+ isServerPause = false;
startTime += pauseTime();
pauseStartTime = 0;
rateStartTime = stamp();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage