|
|
|
@ -48,10 +48,7 @@ class OwncastPlayer {
@@ -48,10 +48,7 @@ class OwncastPlayer {
|
|
|
|
|
init() { |
|
|
|
|
videojs.Hls.xhr.beforeRequest = function (options) { |
|
|
|
|
const cachebuster = Math.round(new Date().getTime() / 1000); |
|
|
|
|
options.uri = options.uri + "?omgwtf=" + cachebuster; |
|
|
|
|
options.headers = { |
|
|
|
|
'Cache-Control':'no-cache' |
|
|
|
|
}; |
|
|
|
|
options.uri = `${options.uri}?cachebust=${cachebuster}`; |
|
|
|
|
return options; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -151,4 +148,4 @@ class OwncastPlayer {
@@ -151,4 +148,4 @@ class OwncastPlayer {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export { OwncastPlayer }; |
|
|
|
|
export { OwncastPlayer }; |
|
|
|
|