mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
update
This commit is contained in:
1 parent
199c15ff3f
commit
0535b798b2
3 files changed
+66
-62
No files matched your search
@@ -7,7 +7,7 @@ export default function artplayerPluginAds(option) {
|
||||
icons: { volume, volumeClose, fullscreenOn, fullscreenOff },
|
||||
constructor: {
|
||||
validator,
|
||||
utils: { query, append, setStyle, errorHandle },
|
||||
utils: { query, append, setStyle },
|
||||
},
|
||||
} = art;
|
||||
|
||||
@@ -160,10 +160,12 @@ export default function artplayerPluginAds(option) {
|
||||
init();
|
||||
art.pause();
|
||||
if (option.video) {
|
||||
art.loading.show = true;
|
||||
art.proxy($ads, 'error', skip);
|
||||
art.proxy($ads, 'loadedmetadata', () => {
|
||||
play();
|
||||
$ads.play();
|
||||
art.loading.show = false;
|
||||
setStyle($timer, 'display', 'flex');
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user