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.
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",