From 9a52b53b171653ad37508cff3f7e06244f2053a3 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Wed, 20 Mar 2019 18:09:16 -0400 Subject: [PATCH] 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. --- 2019/assets/js/stream.js | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) 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", -- 2.25.1