Compare commits

..

3 Commits

Author SHA1 Message Date
lb
7ddae1b3a4 update videos 2024-04-25 10:01:25 +08:00
lb
61477cdd30 Merge branch 'features/warning' of http://git.picaiba.com/mt-fe-group/xuchang-new into features/warning 2024-04-25 09:44:40 +08:00
lb
6e5badf01a add video 2024-04-25 09:44:36 +08:00
2 changed files with 31 additions and 2 deletions

View File

@ -6,8 +6,32 @@ 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> */}
<img
style={{
width: "100%",
height: "100%",
display: "block",
margin: "auto",
backgrounColor: "hsl(0, 0%, 25%)",
}}
src="http://10.70.180.10:8001/video_feed"
></img>
</div>
<div>
{/* <video muted autoPlay loop src="https://storage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4"></video> */}
<img
style={{
width: "100%",
height: "100%",
display: "block",
margin: "auto",
backgrounColor: "hsl(0, 0%, 25%)",
}}
src="http://10.70.180.10:8000/video_feed"
></img>
</div>
</div> </div>
</div> </div>
); );

View File

@ -21,6 +21,7 @@
display: flex; display: flex;
gap: 8px; gap: 8px;
flex: 1; flex: 1;
max-height: 150px;
} }
.video-container > div { .video-container > div {
@ -28,3 +29,7 @@
height: 100%; height: 100%;
background: #ccc1; background: #ccc1;
} }
.video-container > div > video {
width: 100%;
}