Cache-busting and anonymous crossorigin for video
This commit is contained in:
parent
d0be5f66cb
commit
30d1429e83
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>watch party :D</title>
|
||||
<link rel="stylesheet" href="/styles.css" />
|
||||
<link rel="stylesheet" href="/styles.css?v=1" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -47,6 +47,6 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
<script src="/main.js"></script>
|
||||
<script src="/main.js?v=1"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -6,6 +6,7 @@ const createVideoElement = (videoUrl, subtitles) => {
|
|||
const video = document.createElement("video");
|
||||
video.controls = true;
|
||||
video.autoplay = false;
|
||||
video.crossOrigin = "anonymous";
|
||||
|
||||
const source = document.createElement("source");
|
||||
source.src = videoUrl;
|
||||
|
|
Loading…
Reference in New Issue