Explorar el Código

Merge pull request #905 from Evilran/patch-1

Update live option control in player.js
DIYgod hace 5 años
padre
commit
0029e0b851
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/js/player.js

+ 3 - 0
src/js/player.js

@@ -50,6 +50,9 @@ class DPlayer {
         if (this.options.live) {
             this.container.classList.add('dplayer-live');
         }
+        else {
+            this.container.classList.remove("dplayer-live");
+        }
         if (utils.isMobile) {
             this.container.classList.add('dplayer-mobile');
         }