don't pause speaker video if desktop stream stops
authorAndrew Engelbrecht <andrew@fsf.org>
Fri, 15 Mar 2019 19:53:00 +0000 (15:53 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Fri, 15 Mar 2019 20:08:48 +0000 (16:08 -0400)
if the slide stream is interrupted, we don't want to stop the speaker
video.

either way, the page likely has to be reloaded, or to switch room
streams if the viewer wants the slides to resume after an interrupt.

with this change, at least the speaker video won't pause at the end of
each loop of the incomplete slide stream.

2019/assets/js/stream.js

index c60933f469129c0c134c0e72668ab2dd1c13f8c2..1d60fdfd93f39e58d080dfcfdf7841ab0d390e58 100644 (file)
@@ -196,14 +196,7 @@ app.view = function(ctrl) {
     return m("video.lp-video", {
       id: "desktop-video",
       controls: true,
-      autoplay: true,
-      // Sync speaker stream state as best we can.
-      onpause: app.withVideo("speaker-video", function(video) {
-        video.pause();
-      }),
-      onplay: app.withVideo("speaker-video", function(video) {
-        video.play();
-      })
+      autoplay: true
     }, [
       m("source", { src: app.mountToStreamUrl(stream.desktopMount) + "?t=" + (new Date() * 1) }),
       m("p",