Explorar el Código

add video

pull/1/head
lb hace 4 meses
padre
commit
6e5badf01a
Se han modificado 2 ficheros con 10 adiciones y 2 borrados
  1. +6
    -2
      src/components/Common/VideoMonitor/index.jsx
  2. +4
    -0
      src/components/Common/VideoMonitor/video-monitor.css

+ 6
- 2
src/components/Common/VideoMonitor/index.jsx Ver fichero

@@ -6,8 +6,12 @@ function VideoMonitor(props) {
<div className="video-monitor"> <div className="video-monitor">
<h2>泡界线监控</h2> <h2>泡界线监控</h2>
<div className="video-container"> <div className="video-container">
<div></div>
<div></div>
<div>
<video muted autoPlay loop src="https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"></video>
</div>
<div>
<video muted autoPlay loop src="https://storage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4"></video>
</div>
</div> </div>
</div> </div>
); );


+ 4
- 0
src/components/Common/VideoMonitor/video-monitor.css Ver fichero

@@ -28,3 +28,7 @@
height: 100%; height: 100%;
background: #ccc1; background: #ccc1;
} }

.video-container > div > video {
width: 100%;
}

Cargando…
Cancelar
Guardar