修复播放状态

This commit is contained in:
Harvey committed 2019-11-29 11:35:00 +08:00
1 parent 0acc2482d5
commit 89a19a16f0
3 files changed
+11 -11

No files matched your search

+2 -1
View File
@@ -6,13 +6,14 @@ export default function switchMix(art, player) {
function switchUrl(url, name, currentTime) {
if (url === player.url) return;
URL.revokeObjectURL(player.url);
const { playing } = player;
player.url = url;
player.playbackRate = false;
player.aspectRatio = false;
art.once('video:canplay', () => {
player.currentTime = currentTime;
});
if (player.playing) {
if (playing) {
player.play = true;
}
if (name) {