aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players/Youtube.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/players/Youtube.hx')
-rw-r--r--src/client/players/Youtube.hx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/players/Youtube.hx b/src/client/players/Youtube.hx
index eff407e..cc4269d 100644
--- a/src/client/players/Youtube.hx
+++ b/src/client/players/Youtube.hx
@@ -243,10 +243,12 @@ class Youtube implements IPlayer {
}
public function getPlaybackRate():Float {
+ if (!isLoaded) return 1;
return youtube.getPlaybackRate();
}
public function setPlaybackRate(rate:Float):Void {
+ if (!isLoaded) return;
youtube.setPlaybackRate(rate);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage