this allows streams on the live page to continue even if they are
interrupted
}),
onplay: app.withVideo("desktop-video", function(video) {
video.play();
+ }),
+ onended: app.withVideo("desktop-video", function(video) {
+ setTimeout(function() {
+ video.load();
+ video.play();
+ }, 3000);
})
}, [
m("source", {
return m("video.lp-video", {
id: "desktop-video",
controls: true,
- autoplay: true
+ autoplay: true,
+ onended: app.withVideo("desktop-video", function(video) {
+ setTimeout(function() {
+ video.load();
+ video.play();
+ }, 3000);
+ })
}, [
m("source", { src: app.mountToStreamUrl(stream.desktopMount) + "?t=" + (new Date() * 1) }),
m("p",