mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-29 01:14:20 +08:00
视频播放封面问题优化
This commit is contained in:
parent
0c2dbdb5a2
commit
33103dec1f
@ -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;
|
||||||
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user