资源视频预览播放完后关闭弹窗组件

This commit is contained in:
禺狨 2023-06-14 17:06:50 +08:00
parent 0314355e08
commit a4924e52f8

View File

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