From: Andrew Engelbrecht Date: Wed, 20 Mar 2019 22:09:16 +0000 (-0400) Subject: disable the video reloading for now X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9a52b53b171653ad37508cff3f7e06244f2053a3;p=libreplanet-static.git disable the video reloading for now this needs more hacking before it will work. i left some comments in the stream.js file about issues that need to be addressed. --- diff --git a/2019/assets/js/stream.js b/2019/assets/js/stream.js index 866719bc..606b80b5 100644 --- a/2019/assets/js/stream.js +++ b/2019/assets/js/stream.js @@ -178,13 +178,21 @@ app.view = function(ctrl) { }), onplay: app.withVideo("desktop-video", function(video) { video.play(); - }), - onended: app.withVideo("desktop-video", function(video) { - setTimeout(function() { - video.load(); - video.play(); - }, 3000); }) +// onended: app.withVideo("desktop-video", function(video) { +// setTimeout(function() { +// +// // we probably need to update the video stream GET request with the +// // date hack so we get a non-cached version of the video when we +// // try to resume. +// +// // we also probably need to re-try loading the video if it fails to +// // load +// +// video.load(); +// video.play(); +// }, 3000); +// }) }, [ m("source", { src: app.mountToStreamUrl(stream.speakerMount) + "?t=" + (new Date() * 1) @@ -202,13 +210,19 @@ app.view = function(ctrl) { return m("video.lp-video", { id: "desktop-video", controls: true, - autoplay: true, - onended: app.withVideo("desktop-video", function(video) { - setTimeout(function() { - video.load(); - video.play(); - }, 3000); - }) + autoplay: true +// onended: app.withVideo("desktop-video", function(video) { +// setTimeout(function() { +// // we probably need to update the video stream GET request with the +// // date hack so we get a non-cached version of the video when we +// // try to resume. +// +// // we also probably need to re-try loading the video if it fails to +// // load +// video.load(); +// video.play(); +// }, 3000); +// }) }, [ m("source", { src: app.mountToStreamUrl(stream.desktopMount) + "?t=" + (new Date() * 1) }), m("p",