Added FLV Player
This commit is contained in:
@@ -33,6 +33,7 @@ const id = `vp_${Math.random().toString(36).slice(2)}`;
|
|||||||
{poster}
|
{poster}
|
||||||
autoplay={autoPlay}
|
autoplay={autoPlay}
|
||||||
muted={muted}></video>
|
muted={muted}></video>
|
||||||
|
<div class="live-badge">LIVE</div>
|
||||||
|
|
||||||
<!-- overlays -->
|
<!-- overlays -->
|
||||||
<div id={`${id}_loading`} class="loading-overlay">
|
<div id={`${id}_loading`} class="loading-overlay">
|
||||||
@@ -80,6 +81,31 @@ const id = `vp_${Math.random().toString(36).slice(2)}`;
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
|
box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.video-wrap {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
aspect-ratio: 16/9;
|
||||||
|
background: black;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.live-badge {
|
||||||
|
position: absolute;
|
||||||
|
top: 12px;
|
||||||
|
left: 12px;
|
||||||
|
background: red;
|
||||||
|
color: white;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 4px 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
video {
|
video {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user