Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Troubleshoot player not getting ready event on production server
Gabe Kangasf20d8b3179aa
diff --git a/webroot/js/player/player.js b/webroot/js/player/player.jsindex e7f0f9bf44..09444de559 100644--- a/webroot/js/player/player.js+++ b/webroot/js/player/player.js@@ -1,12 +1,11 @@// style hackingswindow.VIDEOJS_NO_DYNAMIC_STYLE = true;-var waitingTimeoutTimer;-// Wait until the player is setup before we start polling statusconst player = videojs('video');player.on('ready', function () {+ console.log('Player ready.')getStatus();setInterval(getStatus, 5000);setupPlayerEventHandlers();@@ -16,41 +15,36 @@ function setupPlayerEventHandlers() {const player = videojs('video');player.on('error', function (e) {- console.log(e);- })-- player.on('loadeddata', function (e) {- console.log("loadeddata");+ console.log("Player error: ", e);})- player.on('ended', function (e) {- console.log("ended");- })+ // player.on('loadeddata', function (e) {+ // console.log("loadeddata");+ // })+ // player.on('ended', function (e) {+ // console.log("ended");+ // })+ //// player.on('abort', function (e) {// console.log("abort");// })-+ //// player.on('durationchange', function (e) {// console.log("durationchange");// })-+ //// player.on('stalled', function (e) {// console.log("stalled");// })-- player.on('playing', function (e) {- // console.log("playing");- clearTimeout(waitingTimeoutTimer);- })-- player.on('waiting', function (e) {- // console.log("waiting");-- // waitingTimeoutTimer = setTimeout(function () {- // restartPlayer();- // }, 3000)- })+ //+ // player.on('playing', function (e) {+ // // console.log("playing");+ // })+ //+ // player.on('waiting', function (e) {+ // // console.log("waiting");+ // })}function restartPlayer() {