视频播放封面问题优化

This commit is contained in:
禺狨 2023-03-29 10:48:09 +08:00
parent 0c2dbdb5a2
commit 33103dec1f
3 changed files with 16 additions and 5 deletions

View File

@ -278,3 +278,9 @@ h1 {
.ant-dropdown-menu-item-group-list { .ant-dropdown-menu-item-group-list {
padding: 0 0 4px 0 !important; padding: 0 0 4px 0 !important;
} }
#meedu-player-container {
width: 1200px;
height: 675px;
float: left;
}

View File

@ -67,11 +67,13 @@
margin: 0 auto; margin: 0 auto;
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
background-size: 400% 100%;
animation: el-skeleton-loading 1.4s ease infinite;
position: relative; position: relative;
.alert-message { .alert-message {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgba(0, 0, 0); background: rgba(0, 0, 0);
@ -81,6 +83,7 @@
justify-content: center; justify-content: center;
font-size: 18px; font-size: 18px;
color: white; color: white;
z-index: 100;
.alert-button { .alert-button {
width: 200px; width: 200px;
height: 54px; height: 54px;

View File

@ -33,6 +33,7 @@ export const VideoModel: React.FC<PropInterface> = ({
useEffect(() => { useEffect(() => {
if (open) { if (open) {
setPlayendedStatus(false);
getVideoUrl(); getVideoUrl();
} }
}, [open, id, cid]); }, [open, id, cid]);
@ -60,7 +61,7 @@ export const VideoModel: React.FC<PropInterface> = ({
bulletSecret: { bulletSecret: {
enabled: systemConfig.playerIsEnabledBulletSecret, enabled: systemConfig.playerIsEnabledBulletSecret,
text: systemConfig.playerBulletSecretText, text: systemConfig.playerBulletSecretText,
size: "15px", size: "14px",
color: systemConfig.playerBulletSecretColor || "red", color: systemConfig.playerBulletSecretColor || "red",
opacity: Number(systemConfig.playerBulletSecretOpacity), opacity: Number(systemConfig.playerBulletSecretOpacity),
}, },
@ -121,7 +122,8 @@ export const VideoModel: React.FC<PropInterface> = ({
className={styles["alert-button"]} className={styles["alert-button"]}
onClick={() => { onClick={() => {
setPlayendedStatus(false); setPlayendedStatus(false);
goNextVideo()}} goNextVideo();
}}
> >
</div> </div>