commit 09d544ae1378ddfeb3bbae327d64aaeedb91eb53
parent a59312060cea616c87f3e408063e71235e9f16c1
Author: ugrnm <ultrageranium@bleu255.com>
Date: Thu Jul 9 19:27:17 +0200
player elsewhere
Diffstat:1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/muc/xpubplayer.js b/muc/xpubplayer.js
@@ -8,7 +8,7 @@
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><script>var player = videojs(\'master\');player.play();player.autoplay(true);</script>';
+ 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>';
chat_title.insertBefore(element, chat_title.firstChild);
@@ -18,6 +18,7 @@
setTimeout(function() {
waitForIt(selector, time);
+ var player = videojs(\'master\');player.play();player.autoplay(true);<
}, time);
}