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.hx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/Player.hx b/src/client/Player.hx
index 0407ab2..6113c07 100644
--- a/src/client/Player.hx
+++ b/src/client/Player.hx
@@ -127,12 +127,17 @@ class Player {
addActiveLabel(videoList.pos);
isLoaded = false;
- player.loadVideo(item);
+ if (main.isVideoEnabled) {
+ player.loadVideo(item);
+ } else {
+ onCanBePlayed();
+ }
JsApi.fireVideoChangeEvents(item);
ge("#currenttitle").textContent = item.title;
}
public function changeVideoSrc(src:String):Void {
+ if (!main.isVideoEnabled) return;
if (player == null) return;
final item = videoList.getCurrentItem() ?? return;
player.loadVideo({
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage