added date string to another generated url
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 21 Mar 2017 23:50:23 +0000 (19:50 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 21 Mar 2017 23:50:23 +0000 (19:50 -0400)
to beat caching

2017/assets/js/stream.js

index 3447e49d89b52f586c95c8041c0b8463878dad0b..25dd5caee99bdc924399bc4bc3d875ae14178ea3 100644 (file)
@@ -112,7 +112,7 @@ app.changeVideoMount = function(video, mount) {
   // This is quite hacky and doesn't feel like the Mithril way to do
   // things, but we need to explicitly reload the video when the
   // source URL changes.
-  video.src = app.mountToStreamUrl(mount);
+  video.src = app.mountToStreamUrl(mount) + "?t=" + (new Date() * 1);
   video.load();
   video.play();
 };