mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 21:01:20 -08:00
update docs
This commit is contained in:
1 parent
d130eae1d6
commit
558e439261
38 files changed
+119
-121
No files matched your search
@@ -27,7 +27,6 @@ var art = new Artplayer({
|
||||
position: 'right',
|
||||
html: '跳过广告',
|
||||
click: function () {
|
||||
// 跳过广告
|
||||
art.ads.end();
|
||||
},
|
||||
},
|
||||
@@ -41,7 +40,6 @@ var art = new Artplayer({
|
||||
right: '20px',
|
||||
},
|
||||
click: function () {
|
||||
// 跳过广告
|
||||
art.ads.end();
|
||||
},
|
||||
},
|
||||
@@ -50,12 +48,12 @@ var art = new Artplayer({
|
||||
|
||||
// 当每个视频广告播放时触发
|
||||
art.on('ads:start', (item) => {
|
||||
console.info('Ads is playing: ' + item.url);
|
||||
console.info('广告开始播放: ' + item.url);
|
||||
});
|
||||
|
||||
// 当全部视频广告播放完成
|
||||
art.on('ads:end', () => {
|
||||
console.info('Ads is end');
|
||||
console.info('广告已经结束');
|
||||
});
|
||||
|
||||
// 当前广告的下标
|
||||
|
||||
Reference in new issue
Block a user