mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
add ads.js
This commit is contained in:
1 parent
0048991f7e
commit
6c32895d34
7 files changed
+124
-4
No files matched your search
@@ -34,5 +34,12 @@ export default function attrInit(art, player) {
|
||||
}
|
||||
|
||||
$video.controls = false;
|
||||
player.url = option.url;
|
||||
|
||||
if (option.ads.length) {
|
||||
art.on('ads:end', () => {
|
||||
player.url = option.url;
|
||||
});
|
||||
} else {
|
||||
player.url = option.url;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user