From 071def0838045152236ddf609059c91f7a1fdf5f Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Mon, 25 Sep 2017 19:25:31 -0700 Subject: [PATCH] Fix streamable autoplay --- player/playerjs.coffee | 3 +++ www/js/player.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/player/playerjs.coffee b/player/playerjs.coffee index 1f90a368..550a4dce 100644 --- a/player/playerjs.coffee +++ b/player/playerjs.coffee @@ -52,6 +52,9 @@ window.PlayerJSPlayer = class PlayerJSPlayer extends Player @player.setVolume(VOLUME * 100) + if not @paused + @player.play() + @ready = true ) ) diff --git a/www/js/player.js b/www/js/player.js index 70bb7243..c8188518 100644 --- a/www/js/player.js +++ b/www/js/player.js @@ -757,6 +757,9 @@ } }); _this.player.setVolume(VOLUME * 100); + if (!_this.paused) { + _this.player.play(); + } return _this.ready = true; }); };