diff options
| author | RblSb <msrblsb@gmail.com> | 2020-06-06 10:19:18 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-06-06 13:57:41 +0300 |
| commit | 41e8165d3d701562af4eb78d86816fd1f88766af (patch) | |
| tree | 4b0ceed7d2c3300048dbc9dcc587a55640fd0834 /src/client/Main.hx | |
| parent | 8506b4edcb0a9bb1973bb38fcca4bcdc21e397c1 (diff) | |
Pause indicator
Diffstat (limited to 'src/client/Main.hx')
| -rw-r--r-- | src/client/Main.hx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx index 781f5e8..0f6b31e 100644 --- a/src/client/Main.hx +++ b/src/client/Main.hx @@ -387,11 +387,13 @@ class Main { if (player.isListEmpty()) player.pause(); case Pause: + player.setPauseIndicator(false); if (isLeader()) return; player.pause(); player.setTime(data.pause.time); case Play: + player.setPauseIndicator(true); if (isLeader()) return; player.setTime(data.play.time); player.play(); @@ -418,6 +420,7 @@ class Main { if (player.getDuration() <= player.getTime() + synchThreshold) return; if (!data.getTime.paused) player.play(); else player.pause(); + player.setPauseIndicator(!data.getTime.paused); if (Math.abs(time - newTime) < synchThreshold) return; player.setTime(newTime); @@ -812,6 +815,10 @@ class Main { return config.youtubeApiKey; } + public function isVerbose():Bool { + return config.isVerbose; + } + function escapeRegExp(regex:String):String { return ~/([.*+?^${}()|[\]\\])/g.replace(regex, "\\$1"); } |
