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 1
1
<template >
2
2
<div id =" app" >
3
3
<iframe
4
- src =" https://www.youtube.com/embed/364zEAsOclU?start=0&autoplay=1&mute=1&loop=1&playlist=364zEAsOclU "
4
+ : src =" url "
5
5
title =" Video"
6
6
:width =" showVideo ? '100%' : '0'"
7
7
:height =" showVideo ? '100%' : '0'"
25
25
return packetTimestamp / 1000 / 1000
26
26
},
27
27
showVideo () {
28
- if (this .showVideoAfter ) {
28
+ if (this .showVideoAfter && this . url ) {
29
29
const packetTimestamp = this .$store .state .refereeMsg .packetTimestamp ;
30
30
const commandTimestamp = this .$store .state .refereeMsg .commandTimestamp ;
31
31
const timeSinceLastCommand = (packetTimestamp - commandTimestamp) / 1000 / 1000 ;
37
37
let urlParams = new URLSearchParams (window .location .search );
38
38
return urlParams .get (' showVideoAfter' )
39
39
},
40
+ url () {
41
+ let urlParams = new URLSearchParams (window .location .search );
42
+ return urlParams .get (' url' )
43
+ }
40
44
}
41
45
}
42
46
</script >
Original file line number Diff line number Diff line change 1
1
{
2
2
"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 " ,
4
4
"window" : {
5
5
"kiosk" : true ,
6
6
"width" : 1920 ,
You can’t perform that action at this time.
0 commit comments