add datestamps to videos urls to stop caching
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 21 Mar 2017 23:22:33 +0000 (19:22 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 21 Mar 2017 23:22:33 +0000 (19:22 -0400)
by adding a ?t=10922... we can avoid caching of videos.

2017/assets/js/stream.js

index 8aa689549bafff4e12e52963880bb0cd89700572..3447e49d89b52f586c95c8041c0b8463878dad0b 100644 (file)
@@ -187,7 +187,7 @@ app.view = function(ctrl) {
       })
     }, [
       m("source", {
-        src: app.mountToStreamUrl(stream.speakerMount)
+        src: app.mountToStreamUrl(stream.speakerMount) + "?t=" + (new Date() * 1)
       }),
       m("p",
         m("em", [
@@ -203,7 +203,7 @@ app.view = function(ctrl) {
       id: "desktop-video",
       autoplay: true
     }, [
-      m("source", { src: app.mountToStreamUrl(stream.desktopMount) }),
+      m("source", { src: app.mountToStreamUrl(stream.desktopMount) + "?t=" + (new Date() * 1) }),
       m("p",
         m("em", [
           "Your browser does not support the HTML5 video tag, ",