aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Player.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-02-25 07:17:26 +0300
committerRblSb <msrblsb@gmail.com>2020-02-25 07:17:26 +0300
commit70b255b99ad50f1a42791b9a39f2fcfcd98f00d8 (patch)
tree643913dcb514c335513c31e865688e06e03585d2 /src/client/Player.hx
parentefcb0f892cbf185fabc2f9d546194d5b2df271b6 (diff)
NavBar buttons
Diffstat (limited to 'src/client/Player.hx')
-rw-r--r--src/client/Player.hx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/Player.hx b/src/client/Player.hx
index ca3d78f..c9b10a4 100644
--- a/src/client/Player.hx
+++ b/src/client/Player.hx
@@ -123,11 +123,12 @@ class Player {
items.remove(
items.find(item -> item.url == url)
);
+ updateCounters();
+ if (video == null) return;
if (video.src == url) {
if (items.length > 0) setVideo(items[0]);
}
- updateCounters();
}
function updateCounters():Void {
@@ -190,6 +191,10 @@ class Player {
return items.length == 0;
}
+ public function hasVideo():Bool {
+ return video != null;
+ }
+
public function pause():Void {
if (video == null) return;
video.pause();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage