}),
onplay: app.withVideo("desktop-video", function(video) {
video.play();
- }),
- onended: app.withVideo("desktop-video", function(video) {
- setTimeout(function() {
- video.load();
- video.play();
- }, 3000);
})
+// onended: app.withVideo("desktop-video", function(video) {
+// setTimeout(function() {
+//
+// // we probably need to update the video stream GET request with the
+// // date hack so we get a non-cached version of the video when we
+// // try to resume.
+//
+// // we also probably need to re-try loading the video if it fails to
+// // load
+//
+// video.load();
+// video.play();
+// }, 3000);
+// })
}, [
m("source", {
src: app.mountToStreamUrl(stream.speakerMount) + "?t=" + (new Date() * 1)
return m("video.lp-video", {
id: "desktop-video",
controls: true,
- autoplay: true,
- onended: app.withVideo("desktop-video", function(video) {
- setTimeout(function() {
- video.load();
- video.play();
- }, 3000);
- })
+ autoplay: true
+// onended: app.withVideo("desktop-video", function(video) {
+// setTimeout(function() {
+// // we probably need to update the video stream GET request with the
+// // date hack so we get a non-cached version of the video when we
+// // try to resume.
+//
+// // we also probably need to re-try loading the video if it fails to
+// // load
+// video.load();
+// video.play();
+// }, 3000);
+// })
}, [
m("source", { src: app.mountToStreamUrl(stream.desktopMount) + "?t=" + (new Date() * 1) }),
m("p",