temp cache bust for CDN issue

CDN has set a large max cache for some m3u8s the other day, hoping this helps alleviate browser side cache issues. We can remove later
This commit is contained in:
Thomas Zarebczan 2022-07-06 14:47:59 -04:00
parent 7c82110326
commit e073e120a1
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2

View file

@ -450,7 +450,9 @@ export default React.memo<Props>(function VideoJs(props: Props) {
if (isLivestream) {
vjsPlayer.isLivestream = true;
vjsPlayer.addClass('livestreamPlayer');
vjsPlayer.src({ type: 'application/x-mpegURL', src: livestreamVideoUrl });
// temp workaround for CDN issue, remove in a few weeks.
const templivestreamVideoUrl = livestreamVideoUrl + '?cachebust=1';
vjsPlayer.src({ type: 'application/x-mpegURL', src: templivestreamVideoUrl });
} else {
vjsPlayer.isLivestream = false;
vjsPlayer.removeClass('livestreamPlayer');