File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
workshop/gamemodes/cinema_modded/gamemode/modules/theater/services Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -57,20 +57,13 @@ if (CLIENT) then
5757 video.controls = true;
5858 video.muted = false;
5959
60- document.getElementById("player-wrapper").appendChild(video);
61- </script>
60+ video.addEventListener("play", (event) => {
61+ window.cinema_controller = video;
62+ exTheater.controllerReady();
63+ });
6264
63- <script>
64- var checkerInterval = setInterval(function() {
65- if (!video.paused && video.readyState === 4) {
66- clearInterval(checkerInterval);
67-
68- window.cinema_controller = video;
69- exTheater.controllerReady();
70- }
71- }, 50);
65+ document.getElementById("player-wrapper").appendChild(video);
7266 </script>
73-
7467 </body>
7568 </html>
7669 ]]
You can’t perform that action at this time.
0 commit comments