remove player object

This commit is contained in:
zhw2590582 committed 2022-01-07 17:38:10 +08:00
1 parent 59a8ccce81
commit 59400eb3bf
58 files changed
+295 -313

No files matched your search

+3 -3
View File
@@ -1,12 +1,12 @@
import { getExt, def, sleep } from '../utils';
export default function urlMix(art, player) {
export default function urlMix(art) {
const {
option,
template: { $video },
} = art;
def(player, 'url', {
def(art, 'url', {
get() {
return $video.currentSrc;
},
@@ -19,7 +19,7 @@ export default function urlMix(art, player) {
typeCallback.call(art, $video, url, art);
});
} else {
if (player.url && player.url !== url) {
if (art.url && art.url !== url) {
art.once('video:canplay', () => {
if (art.isReady) {
art.emit('restart');