mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 21:01:20 -08:00
update mobile demo
This commit is contained in:
1 parent
829d3a4b42
commit
8d04f11048
3 files changed
+17
-1
No files matched your search
@@ -272,14 +272,22 @@ function artplayerPluginAds(option) {
|
||||
});
|
||||
}
|
||||
art.on("ready", ()=>{
|
||||
console.log(0);
|
||||
art.once("play", ()=>{
|
||||
console.log(1);
|
||||
init();
|
||||
console.log(2);
|
||||
art.pause();
|
||||
console.log(3);
|
||||
if (option.video) {
|
||||
console.log(4);
|
||||
art.proxy($ads, "error", skip);
|
||||
art.proxy($ads, "loadedmetadata", ()=>{
|
||||
console.log(5);
|
||||
play();
|
||||
console.log(6);
|
||||
$ads.play();
|
||||
console.log(7);
|
||||
setStyle($timer, "display", "flex");
|
||||
setStyle($control, "display", "flex");
|
||||
setStyle($loading, "display", "none");
|
||||
|
||||
Reference in new issue
Block a user