Merge pull request #8 from PlayEdu/dev

Dev
This commit is contained in:
Teng 2023-06-14 17:34:32 +08:00 committed by GitHub
commit d49c917bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -9,19 +9,19 @@
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.45);
z-index: 200;
.play-dialog {
width: 800px;
height: 450px;
border-radius: 8px;
overflow: hidden;
position: relative;
.close-button {
width: 30px;
height: 30px;
position: absolute;
top: 24px;
right: 24px;
top: -30px;
right: -30px;
cursor: pointer;
z-index: 1000;
&:hover {

View File

@ -35,6 +35,7 @@ export const VideoPlayDialog: React.FC<PropInterface> = ({
});
window.player.on("ended", () => {
window.player && window.player.destroy();
onCancel();
});
};