File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div id =" app" >
33 <iframe
4- src =" https://www.youtube.com/embed/364zEAsOclU?start=0&autoplay=1&mute=1&loop=1&playlist=364zEAsOclU "
4+ : src =" url "
55 title =" Video"
66 :width =" showVideo ? '100%' : '0'"
77 :height =" showVideo ? '100%' : '0'"
2525 return packetTimestamp / 1000 / 1000
2626 },
2727 showVideo () {
28- if (this .showVideoAfter ) {
28+ if (this .showVideoAfter && this . url ) {
2929 const packetTimestamp = this .$store .state .refereeMsg .packetTimestamp ;
3030 const commandTimestamp = this .$store .state .refereeMsg .commandTimestamp ;
3131 const timeSinceLastCommand = (packetTimestamp - commandTimestamp) / 1000 / 1000 ;
3737 let urlParams = new URLSearchParams (window .location .search );
3838 return urlParams .get (' showVideoAfter' )
3939 },
40+ url () {
41+ let urlParams = new URLSearchParams (window .location .search );
42+ return urlParams .get (' url' )
43+ }
4044 }
4145 }
4246 </script >
Original file line number Diff line number Diff line change 11{
22 "name" : " ssl-status-board" ,
3- "main" : " http://localhost:8082?showVideoAfter=300" ,
3+ "main" : " http://localhost:8082?showVideoAfter=300&url=https%3A%2F%2Fwww.youtube.com%2Fembed%2F364zEAsOclU%3Fstart%3D0%26autoplay%3D1%26mute%3D1%26loop%3D1%26playlist%3D364zEAsOclU " ,
44 "window" : {
55 "kiosk" : true ,
66 "width" : 1920 ,
You can’t perform that action at this time.
0 commit comments