mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
remove player object
This commit is contained in:
1 parent
59a8ccce81
commit
59400eb3bf
58 files changed
+295
-313
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user