disable the video reloading for now
authorAndrew Engelbrecht <andrew@fsf.org>
Wed, 20 Mar 2019 22:09:16 +0000 (18:09 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Wed, 20 Mar 2019 22:09:16 +0000 (18:09 -0400)
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

index 866719bc2414e9ba50b95a4d55c6299814c06066..606b80b56aed2a1d88e2bc8726e57d7bde2ce408 100644 (file)
@@ -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",