From 7a0ac6157c4394fe247db580721cb2864c1d34f7 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Fri, 15 Mar 2019 15:53:00 -0400 Subject: [PATCH] don't pause speaker video if desktop stream stops 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 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/2019/assets/js/stream.js b/2019/assets/js/stream.js index c60933f4..1d60fdfd 100644 --- a/2019/assets/js/stream.js +++ b/2019/assets/js/stream.js @@ -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", -- 2.25.1