aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Player.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Player.hx')
-rw-r--r--src/client/Player.hx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/Player.hx b/src/client/Player.hx
index 53a1168..8979db8 100644
--- a/src/client/Player.hx
+++ b/src/client/Player.hx
@@ -324,6 +324,11 @@ class Player {
player.pause();
}
+ public function getDuration():Float {
+ if (itemPos >= items.length) return 0;
+ return items[itemPos].duration;
+ }
+
public function getTime():Float {
if (player == null) return 0;
return player.getTime();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage