www.lurk.org

LURK www landing page
git clone https://git.lurk.org/repos/www.lurk.org.git
Log | Files | Refs

commit a59312060cea616c87f3e408063e71235e9f16c1
parent 7b5a3ecd0bba65b99229abf3d90322da13e564a4
Author: ugrnm <ultrageranium@bleu255.com>
Date:   Thu Jul  9 18:49:55 +0200

player elsewhere
Diffstat:
muc/xpubplayer.js | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/muc/xpubplayer.js b/muc/xpubplayer.js
@@ -8,15 +8,10 @@
       element.setAttribute("id", "video");
       //element.setAttribute("style", "height: 50%;");
 
-      element.innerHTML = '<div class=\"content\"><video controls id=\"master\" class=\"video-js vjs-default-skin vjs-fullscreen\" poster=\"live_poster.png\" controls data-setup=\"{}\"><source src=\"https://live.lilimit.com:8081/hls1/Aymeric.m3u8\" type=\"application/x-mpegURL\" ></video></div>';
+      element.innerHTML = '<div class=\"content\"><video controls id=\"master\" class=\"video-js vjs-default-skin vjs-fullscreen\" poster=\"live_poster.png\" controls data-setup=\"{}\"><source src=\"https://live.lilimit.com:8081/hls1/Aymeric.m3u8\" type=\"application/x-mpegURL\" ></video></div><script>var player = videojs(\'master\');player.play();player.autoplay(true);</script>';
 
       chat_title.insertBefore(element, chat_title.firstChild);
 
-      var player = videojs('master');
-      player.play();
-      //player.auto('true'); // this seems to be wrong (no auto method)
-      player.autoplay(true);
-
       return;
     }
     else {