From: Andrew Engelbrecht Date: Fri, 15 Mar 2019 19:53:00 +0000 (-0400) Subject: don't pause speaker video if desktop stream stops X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7a0ac6157c4394fe247db580721cb2864c1d34f7;p=libreplanet-static.git 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. --- 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",