var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',whitelist: [(ua)=>/iPhone/gi.test(ua)],});console.info(art.whitelist.state);
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -66,20 +66,20 @@
console.info(test);art.storage.del('test');art.storage.clear();
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});art.storage.name ='your-storage-key';art.storage.set('test',{foo:'bar'});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -99,7 +99,7 @@
art.on('ready',()=>{art.notice.show='Video Ready To Play';})
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -180,7 +180,7 @@
art.hotkey.remove(32,hotkeyEvent);},5000);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -207,7 +207,7 @@
art.setting.show=false;},1000);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -226,9 +226,9 @@
art.on('ready',()=>{art.plugins.add(myPlugin);});
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
-
-
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
+
+
\ No newline at end of file
diff --git a/docs/document/advanced/class.html b/docs/document/advanced/class.html
index 584f51f4b..6d414ee6e 100644
--- a/docs/document/advanced/class.html
+++ b/docs/document/advanced/class.html
@@ -1,14 +1,14 @@
-
+
静态属性 | Artplayer.js
-
-
-
-
+
+
+
+
@@ -16,7 +16,7 @@
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -24,7 +24,7 @@
art.on('video:canplay',()=>{console.info('video:canplay');});
-
1 2 3 4 5 6 7 8
只监听一次事件:
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8
只监听一次事件:
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -32,13 +32,13 @@
art.once('video:canplay',()=>{console.info('video:canplay');});
-
1 2 3 4 5 6 7 8
手动触发事件:
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8
手动触发事件:
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});art.emit('focus');
-
1 2 3 4 5 6
移除事件:
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6
移除事件:
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -49,7 +49,7 @@
}art.on('ready', onReady);
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -69,7 +69,7 @@
art.on('restart',()=>{console.info('restart');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -93,7 +93,7 @@
art.on('hotkey',(event)=>{console.info('hotkey',event);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -105,7 +105,7 @@
art.on('destroy',()=>{console.info('destroy');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -117,7 +117,7 @@
art.on('url',(url)=>{console.info('url',url);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -125,7 +125,7 @@
art.on('focus',()=>{console.info('focus');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -141,7 +141,7 @@
art.on('dblclick',()=>{console.info('dblclick');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -149,7 +149,7 @@
art.on('click',()=>{console.info('click');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/404.mp4',});
@@ -157,7 +157,7 @@
art.on('error',(error,reconnectTime)=>{console.info(error,reconnectTime);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -165,7 +165,7 @@
art.on('hover',(state)=>{console.info('hover',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -173,7 +173,7 @@
art.on('mousemove',(event)=>{console.info('mousemove',event);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -181,7 +181,7 @@
art.on('resize',()=>{console.info('resize');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -189,7 +189,7 @@
art.on('view',(state)=>{console.info('view',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',aspectRatio:true,
@@ -199,7 +199,7 @@
art.on('aspectRatio',(aspectRatio)=>{console.info('aspectRatio',aspectRatio);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -211,7 +211,7 @@
art.on('autoHeight',(height)=>{console.info('autoHeight',height);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoSize:true,
@@ -220,7 +220,7 @@
art.on('autoSize',()=>{console.info('autoSize');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',flip:true,
@@ -230,7 +230,7 @@
art.on('flip',(flip)=>{console.info('flip',flip);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreen:true,
@@ -239,7 +239,7 @@
art.on('fullscreen',(state)=>{console.info('fullscreen',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreenWeb:true,
@@ -248,7 +248,7 @@
art.on('fullscreenWeb',(state)=>{console.info('fullscreenWeb',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -260,7 +260,7 @@
art.on('mini',(state)=>{console.info('mini',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',pip:true,
@@ -269,7 +269,7 @@
art.on('pip',(state)=>{console.info('pip',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',screenshot:true,
@@ -278,7 +278,7 @@
art.on('screenshot',(dataUri)=>{console.info('screenshot',dataUri);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -286,7 +286,7 @@
art.on('seek',(currentTime)=>{console.info('seek',currentTime);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitleOffset:true,
@@ -299,7 +299,7 @@
art.on('subtitleOffset',(offset)=>{console.info('subtitleOffset',offset);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -310,7 +310,7 @@
art.on('subtitleUpdate',(text)=>{console.info('subtitleUpdate',text);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -321,7 +321,7 @@
art.on('subtitleLoad',(url)=>{console.info('subtitleLoad',url);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -336,9 +336,74 @@
art.on('subtitleSwitch',(url)=>{console.info('subtitleSwitch',url);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -105,7 +105,7 @@
art.on('ready',()=>{art.url='/assets/sample/video.mp4?t=0';});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -116,7 +116,7 @@
art.switchUrl('/assets/sample/video.mp4?t=0','New Video Name');},3000);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -127,7 +127,7 @@
art.switchQuality('/assets/sample/video.mp4?t=0','新视频地址');},3000);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -147,7 +147,7 @@
art.currentTime=5;console.info(art.currentTime);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -155,7 +155,7 @@
art.on('ready',()=>{console.info(art.duration);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -172,7 +172,7 @@
consturl=awaitart.getDataURL();console.info(url)});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -181,7 +181,7 @@
consturl=awaitart.getBlobUrl();console.info(url);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreenWeb:true,
@@ -207,7 +207,7 @@
art.fullscreenWeb=false;},3000);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',poster:'/assets/sample/poster.jpg',
@@ -231,7 +231,7 @@
art.poster='/assets/sample/poster.jpg?t=0';console.info(art.poster);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -248,7 +248,7 @@
art.on('ready',()=>{console.info(art.playing);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -258,7 +258,7 @@
art.autoSize=true;console.info(art.autoSize);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -266,7 +266,7 @@
art.on('ready',()=>{console.info(JSON.stringify(art.rect));});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -276,7 +276,7 @@
art.flip='horizontal';console.info(art.flip);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -286,7 +286,7 @@
art.playbackRate=2;console.info(art.playbackRate);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -296,7 +296,7 @@
art.aspectRatio='16:9';console.info(art.aspectRatio);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -318,7 +318,7 @@
art.on('resize',()=>{art.autoHeight=true;});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -328,7 +328,7 @@
art.attr('playsInline',true);console.info(art.attr('playsInline'));});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -338,7 +338,7 @@
art.title='New Title';console.info(art.title);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -358,7 +358,7 @@
art.theme='#000';console.info(art.theme);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -379,7 +379,7 @@
art.on('video:timeupdate',()=>{console.info(art.loaded);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -387,7 +387,7 @@
art.on('video:timeupdate',()=>{console.info(art.played);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});console.info(art.video);
-
1 2 3 4 5 6
-
-
+
1 2 3 4 5 6
+
+
\ No newline at end of file
diff --git a/docs/document/assets/advanced_built-in.md.48a4ab23.js b/docs/document/assets/advanced_built-in.md.fc36bd19.js
similarity index 91%
rename from docs/document/assets/advanced_built-in.md.48a4ab23.js
rename to docs/document/assets/advanced_built-in.md.fc36bd19.js
index dfc3fa3be..6ca1c7572 100644
--- a/docs/document/assets/advanced_built-in.md.48a4ab23.js
+++ b/docs/document/assets/advanced_built-in.md.fc36bd19.js
@@ -1,24 +1,24 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.parse('{"title":"高级属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"template","slug":"template","link":"#template","children":[]},{"level":2,"title":"events","slug":"events","link":"#events","children":[]},{"level":2,"title":"storage","slug":"storage","link":"#storage","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"notice","slug":"notice","link":"#notice","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"loading","slug":"loading","link":"#loading","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"mask","slug":"mask","link":"#mask","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]}],"relativePath":"advanced/built-in.md","lastUpdated":1673441101000}'),o={name:"advanced/built-in.md"},e=s('
',4),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s(`
js
var art =newArtplayer({
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const X=JSON.parse('{"title":"高级属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"template","slug":"template","link":"#template","children":[]},{"level":2,"title":"events","slug":"events","link":"#events","children":[]},{"level":2,"title":"storage","slug":"storage","link":"#storage","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"notice","slug":"notice","link":"#notice","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"loading","slug":"loading","link":"#loading","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"mask","slug":"mask","link":"#mask","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]}],"relativePath":"advanced/built-in.md","lastUpdated":1673441101000}'),o={name:"advanced/built-in.md"},e=s('
`,4),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',whitelist: [(ua)=>/iPhone/gi.test(ua)],});console.info(art.whitelist.state);
-
管理播放器所有的 DOM 事件,实质上是代理了 addEventListener 和 removeEventListener, 当使用以下方法来处理事件,播放器销毁时也会自动销毁该事件
proxy 方法用于代理 DOM 事件
hover 方法用于代理自定义的 hover 事件
loadImg 方法用于监听图片的 load 加载事件
`,5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s(`
js
var container = document.querySelector('.artplayer-app');var art =newArtplayer({container: container,
@@ -38,7 +38,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.events.loadImg('/assets/sample/poster.jpg').then(img=>{console.info('loadImg',img);});
-
`,5),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -48,20 +48,20 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
console.info(test);art.storage.del('test');art.storage.clear();
-
`,2),b=n("div",{className:"run-code"},"▶ Run Code",-1),u=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});art.storage.name ='your-storage-key';art.storage.set('test',{foo:'bar'});
-
`,5),h=n("div",{className:"run-code"},"▶ Run Code",-1),g=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -73,7 +73,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
Play:'Your Play'}});
-
`,4),v=n("div",{className:"run-code"},"▶ Run Code",-1),E=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -81,7 +81,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.on('ready',()=>{art.notice.show='Video Ready To Play';})
-
`,5),T=n("div",{className:"run-code"},"▶ Run Code",-1),k=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -95,7 +95,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.layers.show=false;},1000);});
-
`,5),w=n("div",{className:"run-code"},"▶ Run Code",-1),f=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -110,7 +110,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.controls.show=false;},1000);});
-
`,5),S=n("div",{className:"run-code"},"▶ Run Code",-1),x=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -125,7 +125,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.contextmenu.show=false;},1000);});
-
`,5),P=n("div",{className:"run-code"},"▶ Run Code",-1),I=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -136,7 +136,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
color:'red',});});
-
`,4),N=n("div",{className:"run-code"},"▶ Run Code",-1),R=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -147,7 +147,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.loading.show=false;},1000);});
-
`,4),V=n("div",{className:"run-code"},"▶ Run Code",-1),j=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -162,7 +162,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.hotkey.remove(32,hotkeyEvent);},5000);});
-
`,5),O=n("div",{className:"run-code"},"▶ Run Code",-1),M=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -173,7 +173,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.mask.show=true;},1000);});
-
`,4),$=n("div",{className:"run-code"},"▶ Run Code",-1),z=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -189,7 +189,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.setting.show=false;},1000);});
-
`,4),B=n("div",{className:"run-code"},"▶ Run Code",-1),G=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -208,4 +208,4 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.on('ready',()=>{art.plugins.add(myPlugin);});
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
`,1),L=[e,c,r,t,D,F,y,i,A,C,d,b,u,m,_,h,g,v,E,T,k,w,f,S,P,I,N,R,V,j,x,O,M,$,z,B,G];function W(q,J,U,Y,H,K){return p(),l("div",null,L)}const Z=a(o,[["render",W]]);export{X as __pageData,Z as default};
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
`,1),L=[e,c,r,t,D,F,y,i,A,C,d,b,u,m,_,h,g,v,E,T,k,w,f,S,x,P,I,N,R,V,j,O,M,$,z,B,G];function W(q,J,U,Y,H,K){return p(),l("div",null,L)}const Z=a(o,[["render",W]]);export{X as __pageData,Z as default};
diff --git a/docs/document/assets/advanced_built-in.md.48a4ab23.lean.js b/docs/document/assets/advanced_built-in.md.fc36bd19.lean.js
similarity index 86%
rename from docs/document/assets/advanced_built-in.md.48a4ab23.lean.js
rename to docs/document/assets/advanced_built-in.md.fc36bd19.lean.js
index d98618df6..56d2c83ee 100644
--- a/docs/document/assets/advanced_built-in.md.48a4ab23.lean.js
+++ b/docs/document/assets/advanced_built-in.md.fc36bd19.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.parse('{"title":"高级属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"template","slug":"template","link":"#template","children":[]},{"level":2,"title":"events","slug":"events","link":"#events","children":[]},{"level":2,"title":"storage","slug":"storage","link":"#storage","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"notice","slug":"notice","link":"#notice","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"loading","slug":"loading","link":"#loading","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"mask","slug":"mask","link":"#mask","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]}],"relativePath":"advanced/built-in.md","lastUpdated":1673441101000}'),o={name:"advanced/built-in.md"},e=s("",4),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s("",4),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s("",4),F=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",5),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",2),b=n("div",{className:"run-code"},"▶ Run Code",-1),u=s("",3),m=n("div",{className:"run-code"},"▶ Run Code",-1),_=s("",5),h=n("div",{className:"run-code"},"▶ Run Code",-1),g=s("",4),v=n("div",{className:"run-code"},"▶ Run Code",-1),E=s("",5),T=n("div",{className:"run-code"},"▶ Run Code",-1),k=s("",5),w=n("div",{className:"run-code"},"▶ Run Code",-1),f=s("",5),S=n("div",{className:"run-code"},"▶ Run Code",-1),P=s("",5),I=n("div",{className:"run-code"},"▶ Run Code",-1),N=s("",4),R=n("div",{className:"run-code"},"▶ Run Code",-1),V=s("",4),j=n("div",{className:"run-code"},"▶ Run Code",-1),x=s("",5),O=n("div",{className:"run-code"},"▶ Run Code",-1),M=s("",4),$=n("div",{className:"run-code"},"▶ Run Code",-1),z=s("",4),B=n("div",{className:"run-code"},"▶ Run Code",-1),G=s("",1),L=[e,c,r,t,D,F,y,i,A,C,d,b,u,m,_,h,g,v,E,T,k,w,f,S,P,I,N,R,V,j,x,O,M,$,z,B,G];function W(q,J,U,Y,H,K){return p(),l("div",null,L)}const Z=a(o,[["render",W]]);export{X as __pageData,Z as default};
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const X=JSON.parse('{"title":"高级属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"template","slug":"template","link":"#template","children":[]},{"level":2,"title":"events","slug":"events","link":"#events","children":[]},{"level":2,"title":"storage","slug":"storage","link":"#storage","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"notice","slug":"notice","link":"#notice","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"loading","slug":"loading","link":"#loading","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"mask","slug":"mask","link":"#mask","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]}],"relativePath":"advanced/built-in.md","lastUpdated":1673441101000}'),o={name:"advanced/built-in.md"},e=s("",4),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s("",4),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s("",4),F=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",5),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",2),b=n("div",{className:"run-code"},"▶ Run Code",-1),u=s("",3),m=n("div",{className:"run-code"},"▶ Run Code",-1),_=s("",5),h=n("div",{className:"run-code"},"▶ Run Code",-1),g=s("",4),v=n("div",{className:"run-code"},"▶ Run Code",-1),E=s("",5),T=n("div",{className:"run-code"},"▶ Run Code",-1),k=s("",5),w=n("div",{className:"run-code"},"▶ Run Code",-1),f=s("",5),S=n("div",{className:"run-code"},"▶ Run Code",-1),x=s("",5),P=n("div",{className:"run-code"},"▶ Run Code",-1),I=s("",4),N=n("div",{className:"run-code"},"▶ Run Code",-1),R=s("",4),V=n("div",{className:"run-code"},"▶ Run Code",-1),j=s("",5),O=n("div",{className:"run-code"},"▶ Run Code",-1),M=s("",4),$=n("div",{className:"run-code"},"▶ Run Code",-1),z=s("",4),B=n("div",{className:"run-code"},"▶ Run Code",-1),G=s("",1),L=[e,c,r,t,D,F,y,i,A,C,d,b,u,m,_,h,g,v,E,T,k,w,f,S,x,P,I,N,R,V,j,O,M,$,z,B,G];function W(q,J,U,Y,H,K){return p(),l("div",null,L)}const Z=a(o,[["render",W]]);export{X as __pageData,Z as default};
diff --git a/docs/document/assets/advanced_class.md.0b2ef250.js b/docs/document/assets/advanced_class.md.cba82bcd.js
similarity index 79%
rename from docs/document/assets/advanced_class.md.0b2ef250.js
rename to docs/document/assets/advanced_class.md.cba82bcd.js
index 396def0b8..513261e38 100644
--- a/docs/document/assets/advanced_class.md.0b2ef250.js
+++ b/docs/document/assets/advanced_class.md.cba82bcd.js
@@ -1,4 +1,4 @@
-import{_ as s,c as n,o as l,a as e,b as a}from"./app.ad61275b.js";const U=JSON.parse('{"title":"静态属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"instances","slug":"instances","link":"#instances","children":[]},{"level":2,"title":"version","slug":"version","link":"#version","children":[]},{"level":2,"title":"env","slug":"env","link":"#env","children":[]},{"level":2,"title":"build","slug":"build","link":"#build","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"utils","slug":"utils","link":"#utils","children":[]},{"level":2,"title":"scheme","slug":"scheme","link":"#scheme","children":[]},{"level":2,"title":"Emitter","slug":"emitter","link":"#emitter","children":[]},{"level":2,"title":"validator","slug":"validator","link":"#validator","children":[]},{"level":2,"title":"kindOf","slug":"kindof","link":"#kindof","children":[]},{"level":2,"title":"html","slug":"html","link":"#html","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"DEBUG","slug":"debug","link":"#debug","children":[]},{"level":2,"title":"CONTEXTMENU","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"NOTICE_TIME","slug":"notice-time","link":"#notice-time","children":[]},{"level":2,"title":"SETTING_WIDTH","slug":"setting-width","link":"#setting-width","children":[]},{"level":2,"title":"SETTING_ITEM_WIDTH","slug":"setting-item-width","link":"#setting-item-width","children":[]},{"level":2,"title":"SETTING_ITEM_HEIGHT","slug":"setting-item-height","link":"#setting-item-height","children":[]},{"level":2,"title":"INDICATOR_SIZE","slug":"indicator-size","link":"#indicator-size","children":[]},{"level":2,"title":"INDICATOR_SIZE_ICON","slug":"indicator-size-icon","link":"#indicator-size-icon","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE","slug":"indicator-size-mobile","link":"#indicator-size-mobile","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE_ICON","slug":"indicator-size-mobile-icon","link":"#indicator-size-mobile-icon","children":[]},{"level":2,"title":"VOLUME_PANEL_WIDTH","slug":"volume-panel-width","link":"#volume-panel-width","children":[]},{"level":2,"title":"VOLUME_HANDLE_WIDTH","slug":"volume-handle-width","link":"#volume-handle-width","children":[]},{"level":2,"title":"RESIZE_TIME","slug":"resize-time","link":"#resize-time","children":[]},{"level":2,"title":"SCROLL_TIME","slug":"scroll-time","link":"#scroll-time","children":[]},{"level":2,"title":"SCROLL_GAP","slug":"scroll-gap","link":"#scroll-gap","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MAX","slug":"auto-playback-max","link":"#auto-playback-max","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MIN","slug":"auto-playback-min","link":"#auto-playback-min","children":[]},{"level":2,"title":"AUTO_PLAYBACK_TIMEOUT","slug":"auto-playback-timeout","link":"#auto-playback-timeout","children":[]},{"level":2,"title":"RECONNECT_TIME_MAX","slug":"reconnect-time-max","link":"#reconnect-time-max","children":[]},{"level":2,"title":"RECONNECT_SLEEP_TIME","slug":"reconnect-sleep-time","link":"#reconnect-sleep-time","children":[]},{"level":2,"title":"CONTROL_HIDE_TIME","slug":"control-hide-time","link":"#control-hide-time","children":[]},{"level":2,"title":"DB_CLICE_TIME","slug":"db-clice-time","link":"#db-clice-time","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE","slug":"mobile-auto-playbackrate","link":"#mobile-auto-playbackrate","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE_TIME","slug":"mobile-auto-playbackrate-time","link":"#mobile-auto-playbackrate-time","children":[]},{"level":2,"title":"MOBILE_AUTO_ORIENTATION_TIME","slug":"mobile-auto-orientation-time","link":"#mobile-auto-orientation-time","children":[]},{"level":2,"title":"INFO_LOOP_TIME","slug":"info-loop-time","link":"#info-loop-time","children":[]},{"level":2,"title":"FAST_FORWARD_VALUE","slug":"fast-forward-value","link":"#fast-forward-value","children":[]},{"level":2,"title":"FAST_FORWARD_TIME","slug":"fast-forward-time","link":"#fast-forward-time","children":[]},{"level":2,"title":"TOUCH_MOVE_RATIO","slug":"touch-move-ratio","link":"#touch-move-ratio","children":[]},{"level":2,"title":"VOLUME_STEP","slug":"volume-step","link":"#volume-step","children":[]},{"level":2,"title":"SEEK_STEP","slug":"seek-step","link":"#seek-step","children":[]},{"level":2,"title":"PROGRESS_HEIGHT","slug":"progress-height","link":"#progress-height","children":[]},{"level":2,"title":"PLAYBACK_RATE","slug":"playback-rate","link":"#playback-rate","children":[]},{"level":2,"title":"ASPECT_RATIO","slug":"aspect-ratio","link":"#aspect-ratio","children":[]},{"level":2,"title":"FLIP","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"FULLSCREEN_WEB_IN_BODY","slug":"fullscreen-web-in-body","link":"#fullscreen-web-in-body","children":[]}],"relativePath":"advanced/class.md","lastUpdated":1674271984000}'),i={name:"advanced/class.md"},o=e('
',5),t=a("div",{className:"run-code"},"▶ Run Code",-1),r=e(`
js
console.info([...Artplayer.instances]);
+import{_ as s,c as n,o as l,a as e,b as a}from"./app.77a2ba76.js";const U=JSON.parse('{"title":"静态属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"instances","slug":"instances","link":"#instances","children":[]},{"level":2,"title":"version","slug":"version","link":"#version","children":[]},{"level":2,"title":"env","slug":"env","link":"#env","children":[]},{"level":2,"title":"build","slug":"build","link":"#build","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"utils","slug":"utils","link":"#utils","children":[]},{"level":2,"title":"scheme","slug":"scheme","link":"#scheme","children":[]},{"level":2,"title":"Emitter","slug":"emitter","link":"#emitter","children":[]},{"level":2,"title":"validator","slug":"validator","link":"#validator","children":[]},{"level":2,"title":"kindOf","slug":"kindof","link":"#kindof","children":[]},{"level":2,"title":"html","slug":"html","link":"#html","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"DEBUG","slug":"debug","link":"#debug","children":[]},{"level":2,"title":"CONTEXTMENU","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"NOTICE_TIME","slug":"notice-time","link":"#notice-time","children":[]},{"level":2,"title":"SETTING_WIDTH","slug":"setting-width","link":"#setting-width","children":[]},{"level":2,"title":"SETTING_ITEM_WIDTH","slug":"setting-item-width","link":"#setting-item-width","children":[]},{"level":2,"title":"SETTING_ITEM_HEIGHT","slug":"setting-item-height","link":"#setting-item-height","children":[]},{"level":2,"title":"INDICATOR_SIZE","slug":"indicator-size","link":"#indicator-size","children":[]},{"level":2,"title":"INDICATOR_SIZE_ICON","slug":"indicator-size-icon","link":"#indicator-size-icon","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE","slug":"indicator-size-mobile","link":"#indicator-size-mobile","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE_ICON","slug":"indicator-size-mobile-icon","link":"#indicator-size-mobile-icon","children":[]},{"level":2,"title":"VOLUME_PANEL_WIDTH","slug":"volume-panel-width","link":"#volume-panel-width","children":[]},{"level":2,"title":"VOLUME_HANDLE_WIDTH","slug":"volume-handle-width","link":"#volume-handle-width","children":[]},{"level":2,"title":"RESIZE_TIME","slug":"resize-time","link":"#resize-time","children":[]},{"level":2,"title":"SCROLL_TIME","slug":"scroll-time","link":"#scroll-time","children":[]},{"level":2,"title":"SCROLL_GAP","slug":"scroll-gap","link":"#scroll-gap","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MAX","slug":"auto-playback-max","link":"#auto-playback-max","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MIN","slug":"auto-playback-min","link":"#auto-playback-min","children":[]},{"level":2,"title":"AUTO_PLAYBACK_TIMEOUT","slug":"auto-playback-timeout","link":"#auto-playback-timeout","children":[]},{"level":2,"title":"RECONNECT_TIME_MAX","slug":"reconnect-time-max","link":"#reconnect-time-max","children":[]},{"level":2,"title":"RECONNECT_SLEEP_TIME","slug":"reconnect-sleep-time","link":"#reconnect-sleep-time","children":[]},{"level":2,"title":"CONTROL_HIDE_TIME","slug":"control-hide-time","link":"#control-hide-time","children":[]},{"level":2,"title":"DB_CLICE_TIME","slug":"db-clice-time","link":"#db-clice-time","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE","slug":"mobile-auto-playbackrate","link":"#mobile-auto-playbackrate","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE_TIME","slug":"mobile-auto-playbackrate-time","link":"#mobile-auto-playbackrate-time","children":[]},{"level":2,"title":"MOBILE_AUTO_ORIENTATION_TIME","slug":"mobile-auto-orientation-time","link":"#mobile-auto-orientation-time","children":[]},{"level":2,"title":"INFO_LOOP_TIME","slug":"info-loop-time","link":"#info-loop-time","children":[]},{"level":2,"title":"FAST_FORWARD_VALUE","slug":"fast-forward-value","link":"#fast-forward-value","children":[]},{"level":2,"title":"FAST_FORWARD_TIME","slug":"fast-forward-time","link":"#fast-forward-time","children":[]},{"level":2,"title":"TOUCH_MOVE_RATIO","slug":"touch-move-ratio","link":"#touch-move-ratio","children":[]},{"level":2,"title":"VOLUME_STEP","slug":"volume-step","link":"#volume-step","children":[]},{"level":2,"title":"SEEK_STEP","slug":"seek-step","link":"#seek-step","children":[]},{"level":2,"title":"PROGRESS_HEIGHT","slug":"progress-height","link":"#progress-height","children":[]},{"level":2,"title":"PLAYBACK_RATE","slug":"playback-rate","link":"#playback-rate","children":[]},{"level":2,"title":"ASPECT_RATIO","slug":"aspect-ratio","link":"#aspect-ratio","children":[]},{"level":2,"title":"FLIP","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"FULLSCREEN_WEB_IN_BODY","slug":"fullscreen-web-in-body","link":"#fullscreen-web-in-body","children":[]}],"relativePath":"advanced/class.md","lastUpdated":1674271984000}'),i={name:"advanced/class.md"},o=e('
',5),t=a("div",{className:"run-code"},"▶ Run Code",-1),r=e(`
js
console.info([...Artplayer.instances]);var art =newArtplayer({container:'.artplayer-app',
@@ -6,15 +6,15 @@ import{_ as s,c as n,o as l,a as e,b as a}from"./app.ad61275b.js";const U=JSON.p
});console.info([...Artplayer.instances]);
-
`,37),N=[o,t,r,c,d,p,h,_,u,A,m,C,b,D,y,T,v,F,E,g,I,f,k,O,S];function R(x,P,L,M,w,V){return l(),n("div",null,N)}const j=s(i,[["render",R]]);export{U as __pageData,j as default};
+
`,37),N=[o,t,r,c,d,p,h,_,u,A,m,b,C,D,y,T,v,F,E,g,I,f,k,O,S];function x(R,P,L,M,w,V){return l(),n("div",null,N)}const j=s(i,[["render",x]]);export{U as __pageData,j as default};
diff --git a/docs/document/assets/advanced_class.md.0b2ef250.lean.js b/docs/document/assets/advanced_class.md.cba82bcd.lean.js
similarity index 95%
rename from docs/document/assets/advanced_class.md.0b2ef250.lean.js
rename to docs/document/assets/advanced_class.md.cba82bcd.lean.js
index e7d19886c..54da3b93a 100644
--- a/docs/document/assets/advanced_class.md.0b2ef250.lean.js
+++ b/docs/document/assets/advanced_class.md.cba82bcd.lean.js
@@ -1 +1 @@
-import{_ as s,c as n,o as l,a as e,b as a}from"./app.ad61275b.js";const U=JSON.parse('{"title":"静态属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"instances","slug":"instances","link":"#instances","children":[]},{"level":2,"title":"version","slug":"version","link":"#version","children":[]},{"level":2,"title":"env","slug":"env","link":"#env","children":[]},{"level":2,"title":"build","slug":"build","link":"#build","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"utils","slug":"utils","link":"#utils","children":[]},{"level":2,"title":"scheme","slug":"scheme","link":"#scheme","children":[]},{"level":2,"title":"Emitter","slug":"emitter","link":"#emitter","children":[]},{"level":2,"title":"validator","slug":"validator","link":"#validator","children":[]},{"level":2,"title":"kindOf","slug":"kindof","link":"#kindof","children":[]},{"level":2,"title":"html","slug":"html","link":"#html","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"DEBUG","slug":"debug","link":"#debug","children":[]},{"level":2,"title":"CONTEXTMENU","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"NOTICE_TIME","slug":"notice-time","link":"#notice-time","children":[]},{"level":2,"title":"SETTING_WIDTH","slug":"setting-width","link":"#setting-width","children":[]},{"level":2,"title":"SETTING_ITEM_WIDTH","slug":"setting-item-width","link":"#setting-item-width","children":[]},{"level":2,"title":"SETTING_ITEM_HEIGHT","slug":"setting-item-height","link":"#setting-item-height","children":[]},{"level":2,"title":"INDICATOR_SIZE","slug":"indicator-size","link":"#indicator-size","children":[]},{"level":2,"title":"INDICATOR_SIZE_ICON","slug":"indicator-size-icon","link":"#indicator-size-icon","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE","slug":"indicator-size-mobile","link":"#indicator-size-mobile","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE_ICON","slug":"indicator-size-mobile-icon","link":"#indicator-size-mobile-icon","children":[]},{"level":2,"title":"VOLUME_PANEL_WIDTH","slug":"volume-panel-width","link":"#volume-panel-width","children":[]},{"level":2,"title":"VOLUME_HANDLE_WIDTH","slug":"volume-handle-width","link":"#volume-handle-width","children":[]},{"level":2,"title":"RESIZE_TIME","slug":"resize-time","link":"#resize-time","children":[]},{"level":2,"title":"SCROLL_TIME","slug":"scroll-time","link":"#scroll-time","children":[]},{"level":2,"title":"SCROLL_GAP","slug":"scroll-gap","link":"#scroll-gap","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MAX","slug":"auto-playback-max","link":"#auto-playback-max","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MIN","slug":"auto-playback-min","link":"#auto-playback-min","children":[]},{"level":2,"title":"AUTO_PLAYBACK_TIMEOUT","slug":"auto-playback-timeout","link":"#auto-playback-timeout","children":[]},{"level":2,"title":"RECONNECT_TIME_MAX","slug":"reconnect-time-max","link":"#reconnect-time-max","children":[]},{"level":2,"title":"RECONNECT_SLEEP_TIME","slug":"reconnect-sleep-time","link":"#reconnect-sleep-time","children":[]},{"level":2,"title":"CONTROL_HIDE_TIME","slug":"control-hide-time","link":"#control-hide-time","children":[]},{"level":2,"title":"DB_CLICE_TIME","slug":"db-clice-time","link":"#db-clice-time","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE","slug":"mobile-auto-playbackrate","link":"#mobile-auto-playbackrate","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE_TIME","slug":"mobile-auto-playbackrate-time","link":"#mobile-auto-playbackrate-time","children":[]},{"level":2,"title":"MOBILE_AUTO_ORIENTATION_TIME","slug":"mobile-auto-orientation-time","link":"#mobile-auto-orientation-time","children":[]},{"level":2,"title":"INFO_LOOP_TIME","slug":"info-loop-time","link":"#info-loop-time","children":[]},{"level":2,"title":"FAST_FORWARD_VALUE","slug":"fast-forward-value","link":"#fast-forward-value","children":[]},{"level":2,"title":"FAST_FORWARD_TIME","slug":"fast-forward-time","link":"#fast-forward-time","children":[]},{"level":2,"title":"TOUCH_MOVE_RATIO","slug":"touch-move-ratio","link":"#touch-move-ratio","children":[]},{"level":2,"title":"VOLUME_STEP","slug":"volume-step","link":"#volume-step","children":[]},{"level":2,"title":"SEEK_STEP","slug":"seek-step","link":"#seek-step","children":[]},{"level":2,"title":"PROGRESS_HEIGHT","slug":"progress-height","link":"#progress-height","children":[]},{"level":2,"title":"PLAYBACK_RATE","slug":"playback-rate","link":"#playback-rate","children":[]},{"level":2,"title":"ASPECT_RATIO","slug":"aspect-ratio","link":"#aspect-ratio","children":[]},{"level":2,"title":"FLIP","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"FULLSCREEN_WEB_IN_BODY","slug":"fullscreen-web-in-body","link":"#fullscreen-web-in-body","children":[]}],"relativePath":"advanced/class.md","lastUpdated":1674271984000}'),i={name:"advanced/class.md"},o=e("",5),t=a("div",{className:"run-code"},"▶ Run Code",-1),r=e("",3),c=a("div",{className:"run-code"},"▶ Run Code",-1),d=e("",3),p=a("div",{className:"run-code"},"▶ Run Code",-1),h=e("",3),_=a("div",{className:"run-code"},"▶ Run Code",-1),u=e("",3),A=a("div",{className:"run-code"},"▶ Run Code",-1),m=e("",3),C=a("div",{className:"run-code"},"▶ Run Code",-1),b=e("",4),D=a("div",{className:"run-code"},"▶ Run Code",-1),y=e("",3),T=a("div",{className:"run-code"},"▶ Run Code",-1),v=e("",3),F=a("div",{className:"run-code"},"▶ Run Code",-1),E=e("",3),g=a("div",{className:"run-code"},"▶ Run Code",-1),I=e("",3),f=a("div",{className:"run-code"},"▶ Run Code",-1),k=e("",3),O=a("div",{className:"run-code"},"▶ Run Code",-1),S=e("",37),N=[o,t,r,c,d,p,h,_,u,A,m,C,b,D,y,T,v,F,E,g,I,f,k,O,S];function R(x,P,L,M,w,V){return l(),n("div",null,N)}const j=s(i,[["render",R]]);export{U as __pageData,j as default};
+import{_ as s,c as n,o as l,a as e,b as a}from"./app.77a2ba76.js";const U=JSON.parse('{"title":"静态属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"instances","slug":"instances","link":"#instances","children":[]},{"level":2,"title":"version","slug":"version","link":"#version","children":[]},{"level":2,"title":"env","slug":"env","link":"#env","children":[]},{"level":2,"title":"build","slug":"build","link":"#build","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"utils","slug":"utils","link":"#utils","children":[]},{"level":2,"title":"scheme","slug":"scheme","link":"#scheme","children":[]},{"level":2,"title":"Emitter","slug":"emitter","link":"#emitter","children":[]},{"level":2,"title":"validator","slug":"validator","link":"#validator","children":[]},{"level":2,"title":"kindOf","slug":"kindof","link":"#kindof","children":[]},{"level":2,"title":"html","slug":"html","link":"#html","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"DEBUG","slug":"debug","link":"#debug","children":[]},{"level":2,"title":"CONTEXTMENU","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"NOTICE_TIME","slug":"notice-time","link":"#notice-time","children":[]},{"level":2,"title":"SETTING_WIDTH","slug":"setting-width","link":"#setting-width","children":[]},{"level":2,"title":"SETTING_ITEM_WIDTH","slug":"setting-item-width","link":"#setting-item-width","children":[]},{"level":2,"title":"SETTING_ITEM_HEIGHT","slug":"setting-item-height","link":"#setting-item-height","children":[]},{"level":2,"title":"INDICATOR_SIZE","slug":"indicator-size","link":"#indicator-size","children":[]},{"level":2,"title":"INDICATOR_SIZE_ICON","slug":"indicator-size-icon","link":"#indicator-size-icon","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE","slug":"indicator-size-mobile","link":"#indicator-size-mobile","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE_ICON","slug":"indicator-size-mobile-icon","link":"#indicator-size-mobile-icon","children":[]},{"level":2,"title":"VOLUME_PANEL_WIDTH","slug":"volume-panel-width","link":"#volume-panel-width","children":[]},{"level":2,"title":"VOLUME_HANDLE_WIDTH","slug":"volume-handle-width","link":"#volume-handle-width","children":[]},{"level":2,"title":"RESIZE_TIME","slug":"resize-time","link":"#resize-time","children":[]},{"level":2,"title":"SCROLL_TIME","slug":"scroll-time","link":"#scroll-time","children":[]},{"level":2,"title":"SCROLL_GAP","slug":"scroll-gap","link":"#scroll-gap","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MAX","slug":"auto-playback-max","link":"#auto-playback-max","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MIN","slug":"auto-playback-min","link":"#auto-playback-min","children":[]},{"level":2,"title":"AUTO_PLAYBACK_TIMEOUT","slug":"auto-playback-timeout","link":"#auto-playback-timeout","children":[]},{"level":2,"title":"RECONNECT_TIME_MAX","slug":"reconnect-time-max","link":"#reconnect-time-max","children":[]},{"level":2,"title":"RECONNECT_SLEEP_TIME","slug":"reconnect-sleep-time","link":"#reconnect-sleep-time","children":[]},{"level":2,"title":"CONTROL_HIDE_TIME","slug":"control-hide-time","link":"#control-hide-time","children":[]},{"level":2,"title":"DB_CLICE_TIME","slug":"db-clice-time","link":"#db-clice-time","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE","slug":"mobile-auto-playbackrate","link":"#mobile-auto-playbackrate","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE_TIME","slug":"mobile-auto-playbackrate-time","link":"#mobile-auto-playbackrate-time","children":[]},{"level":2,"title":"MOBILE_AUTO_ORIENTATION_TIME","slug":"mobile-auto-orientation-time","link":"#mobile-auto-orientation-time","children":[]},{"level":2,"title":"INFO_LOOP_TIME","slug":"info-loop-time","link":"#info-loop-time","children":[]},{"level":2,"title":"FAST_FORWARD_VALUE","slug":"fast-forward-value","link":"#fast-forward-value","children":[]},{"level":2,"title":"FAST_FORWARD_TIME","slug":"fast-forward-time","link":"#fast-forward-time","children":[]},{"level":2,"title":"TOUCH_MOVE_RATIO","slug":"touch-move-ratio","link":"#touch-move-ratio","children":[]},{"level":2,"title":"VOLUME_STEP","slug":"volume-step","link":"#volume-step","children":[]},{"level":2,"title":"SEEK_STEP","slug":"seek-step","link":"#seek-step","children":[]},{"level":2,"title":"PROGRESS_HEIGHT","slug":"progress-height","link":"#progress-height","children":[]},{"level":2,"title":"PLAYBACK_RATE","slug":"playback-rate","link":"#playback-rate","children":[]},{"level":2,"title":"ASPECT_RATIO","slug":"aspect-ratio","link":"#aspect-ratio","children":[]},{"level":2,"title":"FLIP","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"FULLSCREEN_WEB_IN_BODY","slug":"fullscreen-web-in-body","link":"#fullscreen-web-in-body","children":[]}],"relativePath":"advanced/class.md","lastUpdated":1674271984000}'),i={name:"advanced/class.md"},o=e("",5),t=a("div",{className:"run-code"},"▶ Run Code",-1),r=e("",3),c=a("div",{className:"run-code"},"▶ Run Code",-1),d=e("",3),p=a("div",{className:"run-code"},"▶ Run Code",-1),h=e("",3),_=a("div",{className:"run-code"},"▶ Run Code",-1),u=e("",3),A=a("div",{className:"run-code"},"▶ Run Code",-1),m=e("",3),b=a("div",{className:"run-code"},"▶ Run Code",-1),C=e("",4),D=a("div",{className:"run-code"},"▶ Run Code",-1),y=e("",3),T=a("div",{className:"run-code"},"▶ Run Code",-1),v=e("",3),F=a("div",{className:"run-code"},"▶ Run Code",-1),E=e("",3),g=a("div",{className:"run-code"},"▶ Run Code",-1),I=e("",3),f=a("div",{className:"run-code"},"▶ Run Code",-1),k=e("",3),O=a("div",{className:"run-code"},"▶ Run Code",-1),S=e("",37),N=[o,t,r,c,d,p,h,_,u,A,m,b,C,D,y,T,v,F,E,g,I,f,k,O,S];function x(R,P,L,M,w,V){return l(),n("div",null,N)}const j=s(i,[["render",x]]);export{U as __pageData,j as default};
diff --git a/docs/document/assets/advanced_event.md.57f904d5.lean.js b/docs/document/assets/advanced_event.md.57f904d5.lean.js
deleted file mode 100644
index 3d1333c82..000000000
--- a/docs/document/assets/advanced_event.md.57f904d5.lean.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const Ps=JSON.parse('{"title":"实例事件","description":"","frontmatter":{},"headers":[{"level":2,"title":"ready","slug":"ready","link":"#ready","children":[]},{"level":2,"title":"restart","slug":"restart","link":"#restart","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"focus","slug":"focus","link":"#focus","children":[]},{"level":2,"title":"blur","slug":"blur","link":"#blur","children":[]},{"level":2,"title":"dblclick","slug":"dblclick","link":"#dblclick","children":[]},{"level":2,"title":"click","slug":"click","link":"#click","children":[]},{"level":2,"title":"error","slug":"error","link":"#error","children":[]},{"level":2,"title":"hover","slug":"hover","link":"#hover","children":[]},{"level":2,"title":"mousemove","slug":"mousemove","link":"#mousemove","children":[]},{"level":2,"title":"resize","slug":"resize","link":"#resize","children":[]},{"level":2,"title":"view","slug":"view","link":"#view","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"subtitleUpdate","slug":"subtitleupdate","link":"#subtitleupdate","children":[]},{"level":2,"title":"subtitleLoad","slug":"subtitleload","link":"#subtitleload","children":[]},{"level":2,"title":"subtitleSwitch","slug":"subtitleswitch","link":"#subtitleswitch","children":[]},{"level":2,"title":"video:canplay","slug":"video-canplay","link":"#video-canplay","children":[]},{"level":2,"title":"video:canplaythrough","slug":"video-canplaythrough","link":"#video-canplaythrough","children":[]},{"level":2,"title":"video:complete","slug":"video-complete","link":"#video-complete","children":[]},{"level":2,"title":"video:durationchange","slug":"video-durationchange","link":"#video-durationchange","children":[]},{"level":2,"title":"video:emptied","slug":"video-emptied","link":"#video-emptied","children":[]},{"level":2,"title":"video:ended","slug":"video-ended","link":"#video-ended","children":[]},{"level":2,"title":"video:error","slug":"video-error","link":"#video-error","children":[]},{"level":2,"title":"video:loadeddata","slug":"video-loadeddata","link":"#video-loadeddata","children":[]},{"level":2,"title":"video:loadedmetadata","slug":"video-loadedmetadata","link":"#video-loadedmetadata","children":[]},{"level":2,"title":"video:pause","slug":"video-pause","link":"#video-pause","children":[]},{"level":2,"title":"video:play","slug":"video-play","link":"#video-play","children":[]},{"level":2,"title":"video:playing","slug":"video-playing","link":"#video-playing","children":[]},{"level":2,"title":"video:progress","slug":"video-progress","link":"#video-progress","children":[]},{"level":2,"title":"video:ratechange","slug":"video-ratechange","link":"#video-ratechange","children":[]},{"level":2,"title":"video:seeked","slug":"video-seeked","link":"#video-seeked","children":[]},{"level":2,"title":"video:seeking","slug":"video-seeking","link":"#video-seeking","children":[]},{"level":2,"title":"video:stalled","slug":"video-stalled","link":"#video-stalled","children":[]},{"level":2,"title":"video:suspend","slug":"video-suspend","link":"#video-suspend","children":[]},{"level":2,"title":"video:timeupdate","slug":"video-timeupdate","link":"#video-timeupdate","children":[]},{"level":2,"title":"video:volumechange","slug":"video-volumechange","link":"#video-volumechange","children":[]},{"level":2,"title":"video:waiting","slug":"video-waiting","link":"#video-waiting","children":[]}],"relativePath":"advanced/event.md","lastUpdated":1673441101000}'),o={name:"advanced/event.md"},r=s("h1",{id:"实例事件",tabindex:"-1"},[a("实例事件 "),s("a",{class:"header-anchor",href:"#实例事件","aria-hidden":"true"},"#")],-1),c=s("p",null,[a("播放器的事件分为两种,一种视频的 "),s("code",null,"原生事件"),a(" (前缀 "),s("code",null,"video:"),a("),另外一种是 "),s("code",null,"自定义事件")],-1),t=s("p",null,"监听事件:",-1),D=s("div",{className:"run-code"},"▶ Run Code",-1),y=n("",2),F=s("div",{className:"run-code"},"▶ Run Code",-1),i=n("",2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=n("",2),d=s("div",{className:"run-code"},"▶ Run Code",-1),u=n("",4),b=s("div",{className:"run-code"},"▶ Run Code",-1),h=n("",3),m=s("div",{className:"run-code"},"▶ Run Code",-1),_=n("",3),v=s("div",{className:"run-code"},"▶ Run Code",-1),g=n("",3),E=s("div",{className:"run-code"},"▶ Run Code",-1),T=n("",3),f=s("div",{className:"run-code"},"▶ Run Code",-1),k=n("",3),S=s("div",{className:"run-code"},"▶ Run Code",-1),w=n("",3),R=s("div",{className:"run-code"},"▶ Run Code",-1),N=n("",3),V=s("div",{className:"run-code"},"▶ Run Code",-1),P=n("",3),j=s("div",{className:"run-code"},"▶ Run Code",-1),I=n("",3),x=s("div",{className:"run-code"},"▶ Run Code",-1),z=n("",3),O=s("div",{className:"run-code"},"▶ Run Code",-1),U=n("",3),H=s("div",{className:"run-code"},"▶ Run Code",-1),W=n("",3),L=s("div",{className:"run-code"},"▶ Run Code",-1),$=n("",3),B=s("div",{className:"run-code"},"▶ Run Code",-1),J=n("",3),q=s("div",{className:"run-code"},"▶ Run Code",-1),G=n("",3),K=s("div",{className:"run-code"},"▶ Run Code",-1),M=n("",3),Q=s("div",{className:"run-code"},"▶ Run Code",-1),X=n("",3),Y=s("div",{className:"run-code"},"▶ Run Code",-1),Z=n("",3),ss=s("div",{className:"run-code"},"▶ Run Code",-1),ns=n("",3),as=s("div",{className:"run-code"},"▶ Run Code",-1),ls=n("",3),ps=s("div",{className:"run-code"},"▶ Run Code",-1),es=n("",3),os=s("div",{className:"run-code"},"▶ Run Code",-1),rs=n("",3),cs=s("div",{className:"run-code"},"▶ Run Code",-1),ts=n("",3),Ds=s("div",{className:"run-code"},"▶ Run Code",-1),ys=n("",3),Fs=s("div",{className:"run-code"},"▶ Run Code",-1),is=n("",3),As=s("div",{className:"run-code"},"▶ Run Code",-1),Cs=n("",3),ds=s("div",{className:"run-code"},"▶ Run Code",-1),us=n("",3),bs=s("div",{className:"run-code"},"▶ Run Code",-1),hs=n("",3),ms=s("div",{className:"run-code"},"▶ Run Code",-1),_s=n("",3),vs=s("div",{className:"run-code"},"▶ Run Code",-1),gs=n("",43),Es=[r,c,t,D,y,F,i,A,C,d,u,b,h,m,_,v,g,E,T,f,k,S,w,R,N,V,P,j,I,x,z,O,U,H,W,L,$,B,J,q,G,K,M,Q,X,Y,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,us,bs,hs,ms,_s,vs,gs];function Ts(fs,ks,Ss,ws,Rs,Ns){return e(),p("div",null,Es)}const js=l(o,[["render",Ts]]);export{Ps as __pageData,js as default};
diff --git a/docs/document/assets/en_advanced_event.md.1b7bace0.js b/docs/document/assets/advanced_event.md.70b41e05.js
similarity index 71%
rename from docs/document/assets/en_advanced_event.md.1b7bace0.js
rename to docs/document/assets/advanced_event.md.70b41e05.js
index 39a6c39ab..e6983fd18 100644
--- a/docs/document/assets/en_advanced_event.md.1b7bace0.js
+++ b/docs/document/assets/advanced_event.md.70b41e05.js
@@ -1,4 +1,4 @@
-import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const Ps=JSON.parse('{"title":"实例事件","description":"","frontmatter":{},"headers":[{"level":2,"title":"ready","slug":"ready","link":"#ready","children":[]},{"level":2,"title":"restart","slug":"restart","link":"#restart","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"focus","slug":"focus","link":"#focus","children":[]},{"level":2,"title":"blur","slug":"blur","link":"#blur","children":[]},{"level":2,"title":"dblclick","slug":"dblclick","link":"#dblclick","children":[]},{"level":2,"title":"click","slug":"click","link":"#click","children":[]},{"level":2,"title":"error","slug":"error","link":"#error","children":[]},{"level":2,"title":"hover","slug":"hover","link":"#hover","children":[]},{"level":2,"title":"mousemove","slug":"mousemove","link":"#mousemove","children":[]},{"level":2,"title":"resize","slug":"resize","link":"#resize","children":[]},{"level":2,"title":"view","slug":"view","link":"#view","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"subtitleUpdate","slug":"subtitleupdate","link":"#subtitleupdate","children":[]},{"level":2,"title":"subtitleLoad","slug":"subtitleload","link":"#subtitleload","children":[]},{"level":2,"title":"subtitleSwitch","slug":"subtitleswitch","link":"#subtitleswitch","children":[]},{"level":2,"title":"video:canplay","slug":"video-canplay","link":"#video-canplay","children":[]},{"level":2,"title":"video:canplaythrough","slug":"video-canplaythrough","link":"#video-canplaythrough","children":[]},{"level":2,"title":"video:complete","slug":"video-complete","link":"#video-complete","children":[]},{"level":2,"title":"video:durationchange","slug":"video-durationchange","link":"#video-durationchange","children":[]},{"level":2,"title":"video:emptied","slug":"video-emptied","link":"#video-emptied","children":[]},{"level":2,"title":"video:ended","slug":"video-ended","link":"#video-ended","children":[]},{"level":2,"title":"video:error","slug":"video-error","link":"#video-error","children":[]},{"level":2,"title":"video:loadeddata","slug":"video-loadeddata","link":"#video-loadeddata","children":[]},{"level":2,"title":"video:loadedmetadata","slug":"video-loadedmetadata","link":"#video-loadedmetadata","children":[]},{"level":2,"title":"video:pause","slug":"video-pause","link":"#video-pause","children":[]},{"level":2,"title":"video:play","slug":"video-play","link":"#video-play","children":[]},{"level":2,"title":"video:playing","slug":"video-playing","link":"#video-playing","children":[]},{"level":2,"title":"video:progress","slug":"video-progress","link":"#video-progress","children":[]},{"level":2,"title":"video:ratechange","slug":"video-ratechange","link":"#video-ratechange","children":[]},{"level":2,"title":"video:seeked","slug":"video-seeked","link":"#video-seeked","children":[]},{"level":2,"title":"video:seeking","slug":"video-seeking","link":"#video-seeking","children":[]},{"level":2,"title":"video:stalled","slug":"video-stalled","link":"#video-stalled","children":[]},{"level":2,"title":"video:suspend","slug":"video-suspend","link":"#video-suspend","children":[]},{"level":2,"title":"video:timeupdate","slug":"video-timeupdate","link":"#video-timeupdate","children":[]},{"level":2,"title":"video:volumechange","slug":"video-volumechange","link":"#video-volumechange","children":[]},{"level":2,"title":"video:waiting","slug":"video-waiting","link":"#video-waiting","children":[]}],"relativePath":"en/advanced/event.md","lastUpdated":1673692792000}'),o={name:"en/advanced/event.md"},r=s("h1",{id:"实例事件",tabindex:"-1"},[a("实例事件 "),s("a",{class:"header-anchor",href:"#实例事件","aria-hidden":"true"},"#")],-1),c=s("p",null,[a("播放器的事件分为两种,一种视频的 "),s("code",null,"原生事件"),a(" (前缀 "),s("code",null,"video:"),a("),另外一种是 "),s("code",null,"自定义事件")],-1),t=s("p",null,"监听事件:",-1),D=s("div",{className:"run-code"},"▶ Run Code",-1),y=n(`
js
var art =newArtplayer({
+import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.77a2ba76.js";const Ms=JSON.parse('{"title":"实例事件","description":"","frontmatter":{},"headers":[{"level":2,"title":"ready","slug":"ready","link":"#ready","children":[]},{"level":2,"title":"restart","slug":"restart","link":"#restart","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"focus","slug":"focus","link":"#focus","children":[]},{"level":2,"title":"blur","slug":"blur","link":"#blur","children":[]},{"level":2,"title":"dblclick","slug":"dblclick","link":"#dblclick","children":[]},{"level":2,"title":"click","slug":"click","link":"#click","children":[]},{"level":2,"title":"error","slug":"error","link":"#error","children":[]},{"level":2,"title":"hover","slug":"hover","link":"#hover","children":[]},{"level":2,"title":"mousemove","slug":"mousemove","link":"#mousemove","children":[]},{"level":2,"title":"resize","slug":"resize","link":"#resize","children":[]},{"level":2,"title":"view","slug":"view","link":"#view","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"subtitleUpdate","slug":"subtitleupdate","link":"#subtitleupdate","children":[]},{"level":2,"title":"subtitleLoad","slug":"subtitleload","link":"#subtitleload","children":[]},{"level":2,"title":"subtitleSwitch","slug":"subtitleswitch","link":"#subtitleswitch","children":[]},{"level":2,"title":"info","slug":"info","link":"#info","children":[]},{"level":2,"title":"layer","slug":"layer","link":"#layer","children":[]},{"level":2,"title":"loading","slug":"loading","link":"#loading","children":[]},{"level":2,"title":"mask","slug":"mask","link":"#mask","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"control","slug":"control","link":"#control","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"video:canplay","slug":"video-canplay","link":"#video-canplay","children":[]},{"level":2,"title":"video:canplaythrough","slug":"video-canplaythrough","link":"#video-canplaythrough","children":[]},{"level":2,"title":"video:complete","slug":"video-complete","link":"#video-complete","children":[]},{"level":2,"title":"video:durationchange","slug":"video-durationchange","link":"#video-durationchange","children":[]},{"level":2,"title":"video:emptied","slug":"video-emptied","link":"#video-emptied","children":[]},{"level":2,"title":"video:ended","slug":"video-ended","link":"#video-ended","children":[]},{"level":2,"title":"video:error","slug":"video-error","link":"#video-error","children":[]},{"level":2,"title":"video:loadeddata","slug":"video-loadeddata","link":"#video-loadeddata","children":[]},{"level":2,"title":"video:loadedmetadata","slug":"video-loadedmetadata","link":"#video-loadedmetadata","children":[]},{"level":2,"title":"video:pause","slug":"video-pause","link":"#video-pause","children":[]},{"level":2,"title":"video:play","slug":"video-play","link":"#video-play","children":[]},{"level":2,"title":"video:playing","slug":"video-playing","link":"#video-playing","children":[]},{"level":2,"title":"video:progress","slug":"video-progress","link":"#video-progress","children":[]},{"level":2,"title":"video:ratechange","slug":"video-ratechange","link":"#video-ratechange","children":[]},{"level":2,"title":"video:seeked","slug":"video-seeked","link":"#video-seeked","children":[]},{"level":2,"title":"video:seeking","slug":"video-seeking","link":"#video-seeking","children":[]},{"level":2,"title":"video:stalled","slug":"video-stalled","link":"#video-stalled","children":[]},{"level":2,"title":"video:suspend","slug":"video-suspend","link":"#video-suspend","children":[]},{"level":2,"title":"video:timeupdate","slug":"video-timeupdate","link":"#video-timeupdate","children":[]},{"level":2,"title":"video:volumechange","slug":"video-volumechange","link":"#video-volumechange","children":[]},{"level":2,"title":"video:waiting","slug":"video-waiting","link":"#video-waiting","children":[]}],"relativePath":"advanced/event.md","lastUpdated":1677245395000}'),o={name:"advanced/event.md"},r=s("h1",{id:"实例事件",tabindex:"-1"},[a("实例事件 "),s("a",{class:"header-anchor",href:"#实例事件","aria-hidden":"true"},"#")],-1),c=s("p",null,[a("播放器的事件分为两种,一种视频的 "),s("code",null,"原生事件"),a(" (前缀 "),s("code",null,"video:"),a("),另外一种是 "),s("code",null,"自定义事件")],-1),t=s("p",null,"监听事件:",-1),D=s("div",{className:"run-code"},"▶ Run Code",-1),y=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -6,7 +6,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('video:canplay',()=>{console.info('video:canplay');});
-
1 2 3 4 5 6 7 8
只监听一次事件:
`,2),F=s("div",{className:"run-code"},"▶ Run Code",-1),i=n(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8
只监听一次事件:
`,2),F=s("div",{className:"run-code"},"▶ Run Code",-1),i=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -14,13 +14,13 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.once('video:canplay',()=>{console.info('video:canplay');});
-
1 2 3 4 5 6 7 8
手动触发事件:
`,2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=n(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8
手动触发事件:
`,2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});art.emit('focus');
-
1 2 3 4 5 6
移除事件:
`,2),d=s("div",{className:"run-code"},"▶ Run Code",-1),u=n(`
js
var art =newArtplayer({
+
1 2 3 4 5 6
移除事件:
`,2),d=s("div",{className:"run-code"},"▶ Run Code",-1),b=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -31,7 +31,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
}art.on('ready', onReady);
-
`,4),u=s("div",{className:"run-code"},"▶ Run Code",-1),h=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -39,7 +39,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('ready',()=>{console.info('ready');});
-
`,3),m=s("div",{className:"run-code"},"▶ Run Code",-1),_=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -51,7 +51,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('restart',()=>{console.info('restart');});
-
`,3),g=s("div",{className:"run-code"},"▶ Run Code",-1),v=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -59,7 +59,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('pause',()=>{console.info('pause');});
-
`,3),E=s("div",{className:"run-code"},"▶ Run Code",-1),T=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -67,7 +67,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('play',()=>{console.info('play');});
-
`,3),f=s("div",{className:"run-code"},"▶ Run Code",-1),k=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -75,7 +75,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('hotkey',(event)=>{console.info('hotkey',event);});
-
`,3),S=s("div",{className:"run-code"},"▶ Run Code",-1),x=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -87,7 +87,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('destroy',()=>{console.info('destroy');});
-
`,3),w=s("div",{className:"run-code"},"▶ Run Code",-1),R=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -99,7 +99,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('url',(url)=>{console.info('url',url);});
-
`,3),N=s("div",{className:"run-code"},"▶ Run Code",-1),V=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -107,7 +107,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('focus',()=>{console.info('focus');});
-
`,3),P=s("div",{className:"run-code"},"▶ Run Code",-1),j=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -115,7 +115,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('blur',()=>{console.info('blur');});
-
`,3),I=s("div",{className:"run-code"},"▶ Run Code",-1),z=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -123,7 +123,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('dblclick',()=>{console.info('dblclick');});
-
`,3),O=s("div",{className:"run-code"},"▶ Run Code",-1),U=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -131,7 +131,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('click',()=>{console.info('click');});
-
`,3),H=s("div",{className:"run-code"},"▶ Run Code",-1),W=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/404.mp4',});
@@ -139,7 +139,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('error',(error,reconnectTime)=>{console.info(error,reconnectTime);});
-
`,3),L=s("div",{className:"run-code"},"▶ Run Code",-1),$=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -147,7 +147,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('hover',(state)=>{console.info('hover',state);});
-
`,3),B=s("div",{className:"run-code"},"▶ Run Code",-1),J=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -155,7 +155,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('mousemove',(event)=>{console.info('mousemove',event);});
-
`,3),q=s("div",{className:"run-code"},"▶ Run Code",-1),G=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -163,7 +163,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('resize',()=>{console.info('resize');});
-
`,3),K=s("div",{className:"run-code"},"▶ Run Code",-1),M=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -171,7 +171,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('view',(state)=>{console.info('view',state);});
-
`,3),Q=s("div",{className:"run-code"},"▶ Run Code",-1),X=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',aspectRatio:true,
@@ -181,7 +181,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('aspectRatio',(aspectRatio)=>{console.info('aspectRatio',aspectRatio);});
-
`,3),Y=s("div",{className:"run-code"},"▶ Run Code",-1),Z=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -193,7 +193,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('autoHeight',(height)=>{console.info('autoHeight',height);});
-
`,3),ss=s("div",{className:"run-code"},"▶ Run Code",-1),ns=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoSize:true,
@@ -202,7 +202,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('autoSize',()=>{console.info('autoSize');});
-
`,3),as=s("div",{className:"run-code"},"▶ Run Code",-1),ls=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',flip:true,
@@ -212,7 +212,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('flip',(flip)=>{console.info('flip',flip);});
-
`,3),ps=s("div",{className:"run-code"},"▶ Run Code",-1),es=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreen:true,
@@ -221,7 +221,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('fullscreen',(state)=>{console.info('fullscreen',state);});
-
`,3),os=s("div",{className:"run-code"},"▶ Run Code",-1),rs=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreenWeb:true,
@@ -230,7 +230,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('fullscreenWeb',(state)=>{console.info('fullscreenWeb',state);});
-
`,3),cs=s("div",{className:"run-code"},"▶ Run Code",-1),ts=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -242,7 +242,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('mini',(state)=>{console.info('mini',state);});
-
`,3),Ds=s("div",{className:"run-code"},"▶ Run Code",-1),ys=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',pip:true,
@@ -251,7 +251,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('pip',(state)=>{console.info('pip',state);});
-
`,3),Fs=s("div",{className:"run-code"},"▶ Run Code",-1),is=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',screenshot:true,
@@ -260,7 +260,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('screenshot',(dataUri)=>{console.info('screenshot',dataUri);});
-
`,3),As=s("div",{className:"run-code"},"▶ Run Code",-1),Cs=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -268,7 +268,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('seek',(currentTime)=>{console.info('seek',currentTime);});
-
`,3),ds=s("div",{className:"run-code"},"▶ Run Code",-1),bs=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitleOffset:true,
@@ -281,7 +281,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('subtitleOffset',(offset)=>{console.info('subtitleOffset',offset);});
-
`,3),us=s("div",{className:"run-code"},"▶ Run Code",-1),hs=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -292,7 +292,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('subtitleUpdate',(text)=>{console.info('subtitleUpdate',text);});
-
`,3),ms=s("div",{className:"run-code"},"▶ Run Code",-1),_s=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -303,7 +303,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('subtitleLoad',(url)=>{console.info('subtitleLoad',url);});
-
`,3),gs=s("div",{className:"run-code"},"▶ Run Code",-1),vs=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -318,4 +318,69 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('subtitleSwitch',(url)=>{console.info('subtitleSwitch',url);});
-
`,43),Es=[r,c,t,D,y,F,i,A,C,d,u,b,h,m,_,v,g,E,T,f,k,S,w,R,N,V,P,j,I,x,z,O,U,H,W,L,$,B,J,q,G,K,M,Q,X,Y,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,us,bs,hs,ms,_s,vs,gs];function Ts(fs,ks,Ss,ws,Rs,Ns){return e(),p("div",null,Es)}const js=l(o,[["render",Ts]]);export{Ps as __pageData,js as default};
+
`,43),Hs=[r,c,t,D,y,F,i,A,C,d,b,u,h,m,_,g,v,E,T,f,k,S,x,w,R,N,V,P,j,I,z,O,U,H,W,L,$,B,J,q,G,K,M,Q,X,Y,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,bs,us,hs,ms,_s,gs,vs,Es,Ts,fs,ks,Ss,xs,ws,Rs,Ns,Vs,Ps,js,Is,zs,Os,Us];function Ws(Ls,$s,Bs,Js,qs,Gs){return e(),p("div",null,Hs)}const Qs=l(o,[["render",Ws]]);export{Ms as __pageData,Qs as default};
diff --git a/docs/document/assets/advanced_event.md.70b41e05.lean.js b/docs/document/assets/advanced_event.md.70b41e05.lean.js
new file mode 100644
index 000000000..9db2006ae
--- /dev/null
+++ b/docs/document/assets/advanced_event.md.70b41e05.lean.js
@@ -0,0 +1 @@
+import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.77a2ba76.js";const Ms=JSON.parse('{"title":"实例事件","description":"","frontmatter":{},"headers":[{"level":2,"title":"ready","slug":"ready","link":"#ready","children":[]},{"level":2,"title":"restart","slug":"restart","link":"#restart","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"focus","slug":"focus","link":"#focus","children":[]},{"level":2,"title":"blur","slug":"blur","link":"#blur","children":[]},{"level":2,"title":"dblclick","slug":"dblclick","link":"#dblclick","children":[]},{"level":2,"title":"click","slug":"click","link":"#click","children":[]},{"level":2,"title":"error","slug":"error","link":"#error","children":[]},{"level":2,"title":"hover","slug":"hover","link":"#hover","children":[]},{"level":2,"title":"mousemove","slug":"mousemove","link":"#mousemove","children":[]},{"level":2,"title":"resize","slug":"resize","link":"#resize","children":[]},{"level":2,"title":"view","slug":"view","link":"#view","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"subtitleUpdate","slug":"subtitleupdate","link":"#subtitleupdate","children":[]},{"level":2,"title":"subtitleLoad","slug":"subtitleload","link":"#subtitleload","children":[]},{"level":2,"title":"subtitleSwitch","slug":"subtitleswitch","link":"#subtitleswitch","children":[]},{"level":2,"title":"info","slug":"info","link":"#info","children":[]},{"level":2,"title":"layer","slug":"layer","link":"#layer","children":[]},{"level":2,"title":"loading","slug":"loading","link":"#loading","children":[]},{"level":2,"title":"mask","slug":"mask","link":"#mask","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"control","slug":"control","link":"#control","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"video:canplay","slug":"video-canplay","link":"#video-canplay","children":[]},{"level":2,"title":"video:canplaythrough","slug":"video-canplaythrough","link":"#video-canplaythrough","children":[]},{"level":2,"title":"video:complete","slug":"video-complete","link":"#video-complete","children":[]},{"level":2,"title":"video:durationchange","slug":"video-durationchange","link":"#video-durationchange","children":[]},{"level":2,"title":"video:emptied","slug":"video-emptied","link":"#video-emptied","children":[]},{"level":2,"title":"video:ended","slug":"video-ended","link":"#video-ended","children":[]},{"level":2,"title":"video:error","slug":"video-error","link":"#video-error","children":[]},{"level":2,"title":"video:loadeddata","slug":"video-loadeddata","link":"#video-loadeddata","children":[]},{"level":2,"title":"video:loadedmetadata","slug":"video-loadedmetadata","link":"#video-loadedmetadata","children":[]},{"level":2,"title":"video:pause","slug":"video-pause","link":"#video-pause","children":[]},{"level":2,"title":"video:play","slug":"video-play","link":"#video-play","children":[]},{"level":2,"title":"video:playing","slug":"video-playing","link":"#video-playing","children":[]},{"level":2,"title":"video:progress","slug":"video-progress","link":"#video-progress","children":[]},{"level":2,"title":"video:ratechange","slug":"video-ratechange","link":"#video-ratechange","children":[]},{"level":2,"title":"video:seeked","slug":"video-seeked","link":"#video-seeked","children":[]},{"level":2,"title":"video:seeking","slug":"video-seeking","link":"#video-seeking","children":[]},{"level":2,"title":"video:stalled","slug":"video-stalled","link":"#video-stalled","children":[]},{"level":2,"title":"video:suspend","slug":"video-suspend","link":"#video-suspend","children":[]},{"level":2,"title":"video:timeupdate","slug":"video-timeupdate","link":"#video-timeupdate","children":[]},{"level":2,"title":"video:volumechange","slug":"video-volumechange","link":"#video-volumechange","children":[]},{"level":2,"title":"video:waiting","slug":"video-waiting","link":"#video-waiting","children":[]}],"relativePath":"advanced/event.md","lastUpdated":1677245395000}'),o={name:"advanced/event.md"},r=s("h1",{id:"实例事件",tabindex:"-1"},[a("实例事件 "),s("a",{class:"header-anchor",href:"#实例事件","aria-hidden":"true"},"#")],-1),c=s("p",null,[a("播放器的事件分为两种,一种视频的 "),s("code",null,"原生事件"),a(" (前缀 "),s("code",null,"video:"),a("),另外一种是 "),s("code",null,"自定义事件")],-1),t=s("p",null,"监听事件:",-1),D=s("div",{className:"run-code"},"▶ Run Code",-1),y=n("",2),F=s("div",{className:"run-code"},"▶ Run Code",-1),i=n("",2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=n("",2),d=s("div",{className:"run-code"},"▶ Run Code",-1),b=n("",4),u=s("div",{className:"run-code"},"▶ Run Code",-1),h=n("",3),m=s("div",{className:"run-code"},"▶ Run Code",-1),_=n("",3),g=s("div",{className:"run-code"},"▶ Run Code",-1),v=n("",3),E=s("div",{className:"run-code"},"▶ Run Code",-1),T=n("",3),f=s("div",{className:"run-code"},"▶ Run Code",-1),k=n("",3),S=s("div",{className:"run-code"},"▶ Run Code",-1),x=n("",3),w=s("div",{className:"run-code"},"▶ Run Code",-1),R=n("",3),N=s("div",{className:"run-code"},"▶ Run Code",-1),V=n("",3),P=s("div",{className:"run-code"},"▶ Run Code",-1),j=n("",3),I=s("div",{className:"run-code"},"▶ Run Code",-1),z=n("",3),O=s("div",{className:"run-code"},"▶ Run Code",-1),U=n("",3),H=s("div",{className:"run-code"},"▶ Run Code",-1),W=n("",3),L=s("div",{className:"run-code"},"▶ Run Code",-1),$=n("",3),B=s("div",{className:"run-code"},"▶ Run Code",-1),J=n("",3),q=s("div",{className:"run-code"},"▶ Run Code",-1),G=n("",3),K=s("div",{className:"run-code"},"▶ Run Code",-1),M=n("",3),Q=s("div",{className:"run-code"},"▶ Run Code",-1),X=n("",3),Y=s("div",{className:"run-code"},"▶ Run Code",-1),Z=n("",3),ss=s("div",{className:"run-code"},"▶ Run Code",-1),ns=n("",3),as=s("div",{className:"run-code"},"▶ Run Code",-1),ls=n("",3),ps=s("div",{className:"run-code"},"▶ Run Code",-1),es=n("",3),os=s("div",{className:"run-code"},"▶ Run Code",-1),rs=n("",3),cs=s("div",{className:"run-code"},"▶ Run Code",-1),ts=n("",3),Ds=s("div",{className:"run-code"},"▶ Run Code",-1),ys=n("",3),Fs=s("div",{className:"run-code"},"▶ Run Code",-1),is=n("",3),As=s("div",{className:"run-code"},"▶ Run Code",-1),Cs=n("",3),ds=s("div",{className:"run-code"},"▶ Run Code",-1),bs=n("",3),us=s("div",{className:"run-code"},"▶ Run Code",-1),hs=n("",3),ms=s("div",{className:"run-code"},"▶ Run Code",-1),_s=n("",3),gs=s("div",{className:"run-code"},"▶ Run Code",-1),vs=n("",3),Es=s("div",{className:"run-code"},"▶ Run Code",-1),Ts=n("",3),fs=s("div",{className:"run-code"},"▶ Run Code",-1),ks=n("",3),Ss=s("div",{className:"run-code"},"▶ Run Code",-1),xs=n("",3),ws=s("div",{className:"run-code"},"▶ Run Code",-1),Rs=n("",3),Ns=s("div",{className:"run-code"},"▶ Run Code",-1),Vs=n("",3),Ps=s("div",{className:"run-code"},"▶ Run Code",-1),js=n("",3),Is=s("div",{className:"run-code"},"▶ Run Code",-1),zs=n("",3),Os=s("div",{className:"run-code"},"▶ Run Code",-1),Us=n("",43),Hs=[r,c,t,D,y,F,i,A,C,d,b,u,h,m,_,g,v,E,T,f,k,S,x,w,R,N,V,P,j,I,z,O,U,H,W,L,$,B,J,q,G,K,M,Q,X,Y,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,bs,us,hs,ms,_s,gs,vs,Es,Ts,fs,ks,Ss,xs,ws,Rs,Ns,Vs,Ps,js,Is,zs,Os,Us];function Ws(Ls,$s,Bs,Js,qs,Gs){return e(),p("div",null,Hs)}const Qs=l(o,[["render",Ws]]);export{Ms as __pageData,Qs as default};
diff --git a/docs/document/assets/advanced_plugin.md.a1b84d57.js b/docs/document/assets/advanced_plugin.md.006d0d66.js
similarity index 95%
rename from docs/document/assets/advanced_plugin.md.a1b84d57.js
rename to docs/document/assets/advanced_plugin.md.006d0d66.js
index 21434011c..92c2aa685 100644
--- a/docs/document/assets/advanced_plugin.md.a1b84d57.js
+++ b/docs/document/assets/advanced_plugin.md.006d0d66.js
@@ -1,4 +1,4 @@
-import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const v=JSON.parse('{"title":"编写插件","description":"","frontmatter":{},"headers":[],"relativePath":"advanced/plugin.md","lastUpdated":1673441101000}'),e={name:"advanced/plugin.md"},r=s("h1",{id:"编写插件",tabindex:"-1"},[n("编写插件 "),s("a",{class:"header-anchor",href:"#编写插件","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("但你已经知道播放器的"),s("code",null,"属性"),n(", "),s("code",null,"方法"),n("和"),s("code",null,"事件"),n("后,再编写插件是非常简单的事")],-1),t=s("p",null,"可以在实例化的时候加载插件的函数",-1),F=s("div",{className:"run-code"},"▶ Run Code",-1),D=a(`
js
functionmyPlugin(art){
+import{_ as l,c as p,o,b as s,d as n,a}from"./app.77a2ba76.js";const v=JSON.parse('{"title":"编写插件","description":"","frontmatter":{},"headers":[],"relativePath":"advanced/plugin.md","lastUpdated":1673441101000}'),e={name:"advanced/plugin.md"},r=s("h1",{id:"编写插件",tabindex:"-1"},[n("编写插件 "),s("a",{class:"header-anchor",href:"#编写插件","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("但你已经知道播放器的"),s("code",null,"属性"),n(", "),s("code",null,"方法"),n("和"),s("code",null,"事件"),n("后,再编写插件是非常简单的事")],-1),t=s("p",null,"可以在实例化的时候加载插件的函数",-1),F=s("div",{className:"run-code"},"▶ Run Code",-1),D=a(`
js
functionmyPlugin(art){console.info(art);return{ name:'myPlugin',
@@ -18,7 +18,7 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const v=JSON.pars
art.on('ready',()=>{console.info(art.plugins.myPlugin);});
-
`,2),y=s("div",{className:"run-code"},"▶ Run Code",-1),i=a(`
js
functionmyPlugin(art){console.info(art);return{ name:'myPlugin',
@@ -39,7 +39,7 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const v=JSON.pars
art.on('ready',()=>{console.info(art.plugins.myPlugin);});
-
`,2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=a(`
js
functionadsPlugin(option){return(art)=>{art.layers.add({ name:'ads',
diff --git a/docs/document/assets/advanced_plugin.md.a1b84d57.lean.js b/docs/document/assets/advanced_plugin.md.006d0d66.lean.js
similarity index 93%
rename from docs/document/assets/advanced_plugin.md.a1b84d57.lean.js
rename to docs/document/assets/advanced_plugin.md.006d0d66.lean.js
index 2719584ce..856e6a421 100644
--- a/docs/document/assets/advanced_plugin.md.a1b84d57.lean.js
+++ b/docs/document/assets/advanced_plugin.md.006d0d66.lean.js
@@ -1 +1 @@
-import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const v=JSON.parse('{"title":"编写插件","description":"","frontmatter":{},"headers":[],"relativePath":"advanced/plugin.md","lastUpdated":1673441101000}'),e={name:"advanced/plugin.md"},r=s("h1",{id:"编写插件",tabindex:"-1"},[n("编写插件 "),s("a",{class:"header-anchor",href:"#编写插件","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("但你已经知道播放器的"),s("code",null,"属性"),n(", "),s("code",null,"方法"),n("和"),s("code",null,"事件"),n("后,再编写插件是非常简单的事")],-1),t=s("p",null,"可以在实例化的时候加载插件的函数",-1),F=s("div",{className:"run-code"},"▶ Run Code",-1),D=a("",2),y=s("div",{className:"run-code"},"▶ Run Code",-1),i=a("",2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=a("",1),b=[r,c,t,F,D,y,i,A,C];function u(m,d,h,_,g,E){return o(),p("div",null,b)}const T=l(e,[["render",u]]);export{v as __pageData,T as default};
+import{_ as l,c as p,o,b as s,d as n,a}from"./app.77a2ba76.js";const v=JSON.parse('{"title":"编写插件","description":"","frontmatter":{},"headers":[],"relativePath":"advanced/plugin.md","lastUpdated":1673441101000}'),e={name:"advanced/plugin.md"},r=s("h1",{id:"编写插件",tabindex:"-1"},[n("编写插件 "),s("a",{class:"header-anchor",href:"#编写插件","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("但你已经知道播放器的"),s("code",null,"属性"),n(", "),s("code",null,"方法"),n("和"),s("code",null,"事件"),n("后,再编写插件是非常简单的事")],-1),t=s("p",null,"可以在实例化的时候加载插件的函数",-1),F=s("div",{className:"run-code"},"▶ Run Code",-1),D=a("",2),y=s("div",{className:"run-code"},"▶ Run Code",-1),i=a("",2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=a("",1),b=[r,c,t,F,D,y,i,A,C];function u(m,d,h,_,g,E){return o(),p("div",null,b)}const T=l(e,[["render",u]]);export{v as __pageData,T as default};
diff --git a/docs/document/assets/advanced_property.md.be261cbe.js b/docs/document/assets/advanced_property.md.ac8c3af6.js
similarity index 91%
rename from docs/document/assets/advanced_property.md.be261cbe.js
rename to docs/document/assets/advanced_property.md.ac8c3af6.js
index f1084c327..a8ed7b459 100644
--- a/docs/document/assets/advanced_property.md.be261cbe.js
+++ b/docs/document/assets/advanced_property.md.ac8c3af6.js
@@ -1,4 +1,4 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.parse('{"title":"实例属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"toggle","slug":"toggle","link":"#toggle","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"forward","slug":"forward","link":"#forward","children":[]},{"level":2,"title":"backward","slug":"backward","link":"#backward","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"switchUrl","slug":"switchurl","link":"#switchurl","children":[]},{"level":2,"title":"switchQuality","slug":"switchquality","link":"#switchquality","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"currentTime","slug":"currenttime","link":"#currenttime","children":[]},{"level":2,"title":"duration","slug":"duration","link":"#duration","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"getDataURL","slug":"getdataurl","link":"#getdataurl","children":[]},{"level":2,"title":"getBlobUrl","slug":"getbloburl","link":"#getbloburl","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"playing","slug":"playing","link":"#playing","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"rect","slug":"rect","link":"#rect","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"attr","slug":"attr","link":"#attr","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]},{"level":2,"title":"loaded","slug":"loaded","link":"#loaded","children":[]},{"level":2,"title":"played","slug":"played","link":"#played","children":[]},{"level":2,"title":"proxy","slug":"proxy","link":"#proxy","children":[]},{"level":2,"title":"query","slug":"query","link":"#query","children":[]},{"level":2,"title":"video","slug":"video","link":"#video","children":[]}],"relativePath":"advanced/property.md","lastUpdated":1674271220000}'),o={name:"advanced/property.md"},e=s('
',5),r=n("div",{className:"run-code"},"▶ Run Code",-1),c=s(`
js
var art =newArtplayer({
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const Ls=JSON.parse('{"title":"实例属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"toggle","slug":"toggle","link":"#toggle","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"forward","slug":"forward","link":"#forward","children":[]},{"level":2,"title":"backward","slug":"backward","link":"#backward","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"switchUrl","slug":"switchurl","link":"#switchurl","children":[]},{"level":2,"title":"switchQuality","slug":"switchquality","link":"#switchquality","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"currentTime","slug":"currenttime","link":"#currenttime","children":[]},{"level":2,"title":"duration","slug":"duration","link":"#duration","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"getDataURL","slug":"getdataurl","link":"#getdataurl","children":[]},{"level":2,"title":"getBlobUrl","slug":"getbloburl","link":"#getbloburl","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"playing","slug":"playing","link":"#playing","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"rect","slug":"rect","link":"#rect","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"attr","slug":"attr","link":"#attr","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]},{"level":2,"title":"loaded","slug":"loaded","link":"#loaded","children":[]},{"level":2,"title":"played","slug":"played","link":"#played","children":[]},{"level":2,"title":"proxy","slug":"proxy","link":"#proxy","children":[]},{"level":2,"title":"query","slug":"query","link":"#query","children":[]},{"level":2,"title":"video","slug":"video","link":"#video","children":[]}],"relativePath":"advanced/property.md","lastUpdated":1674271220000}'),o={name:"advanced/property.md"},e=s('
',5),r=n("div",{className:"run-code"},"▶ Run Code",-1),c=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -7,7 +7,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('ready',()=>{art.play();});
-
`,4),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -20,7 +20,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.pause();},3000);});
-
`,4),y=n("div",{className:"run-code"},"▶ Run Code",-1),F=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -33,7 +33,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.toggle();},3000);});
-
`,4),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -41,7 +41,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('ready',()=>{art.destroy();});
-
`,4),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -49,7 +49,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('ready',()=>{art.seek=5;});
-
`,4),u=n("div",{className:"run-code"},"▶ Run Code",-1),b=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -57,7 +57,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('ready',()=>{art.forward=5;});
-
`,4),h=n("div",{className:"run-code"},"▶ Run Code",-1),m=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -69,7 +69,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.backward=2;},3000);});
-
`,4),_=n("div",{className:"run-code"},"▶ Run Code",-1),g=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -79,7 +79,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.volume=0.5;console.info(art.volume);});
-
`,4),v=n("div",{className:"run-code"},"▶ Run Code",-1),T=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -87,7 +87,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('ready',()=>{art.url='/assets/sample/video.mp4?t=0';});
-
`,5),E=n("div",{className:"run-code"},"▶ Run Code",-1),S=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -98,7 +98,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.switchUrl('/assets/sample/video.mp4?t=0','New Video Name');},3000);});
-
`,5),k=n("div",{className:"run-code"},"▶ Run Code",-1),f=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -109,7 +109,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.switchQuality('/assets/sample/video.mp4?t=0','新视频地址');},3000);});
-
`,4),w=n("div",{className:"run-code"},"▶ Run Code",-1),P=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -119,7 +119,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.muted=true;console.info(art.muted);});
-
`,4),R=n("div",{className:"run-code"},"▶ Run Code",-1),N=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -129,7 +129,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.currentTime=5;console.info(art.currentTime);});
-
`,4),x=n("div",{className:"run-code"},"▶ Run Code",-1),I=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -137,7 +137,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('ready',()=>{console.info(art.duration);});
-
`,5),V=n("div",{className:"run-code"},"▶ Run Code",-1),j=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -145,7 +145,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('ready',()=>{art.screenshot();});
-
`,4),G=n("div",{className:"run-code"},"▶ Run Code",-1),B=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -154,7 +154,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
consturl=awaitart.getDataURL();console.info(url)});
-
`,4),q=n("div",{className:"run-code"},"▶ Run Code",-1),z=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -163,7 +163,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
consturl=awaitart.getBlobUrl();console.info(url);});
-
`,4),U=n("div",{className:"run-code"},"▶ Run Code",-1),L=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -176,7 +176,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
}, ],});
-
`,5),O=n("div",{className:"run-code"},"▶ Run Code",-1),W=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreenWeb:true,
@@ -189,7 +189,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.fullscreenWeb=false;},3000);});
-
`,4),H=n("div",{className:"run-code"},"▶ Run Code",-1),$=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -202,7 +202,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
}, ],});
-
`,5),M=n("div",{className:"run-code"},"▶ Run Code",-1),Q=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',poster:'/assets/sample/poster.jpg',
@@ -213,7 +213,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.poster='/assets/sample/poster.jpg?t=0';console.info(art.poster);});
-
`,4),J=n("div",{className:"run-code"},"▶ Run Code",-1),K=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -221,7 +221,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('ready',()=>{art.mini=true;});
-
`,4),X=n("div",{className:"run-code"},"▶ Run Code",-1),Y=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -230,7 +230,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('ready',()=>{console.info(art.playing);});
-
`,4),Z=n("div",{className:"run-code"},"▶ Run Code",-1),ss=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -240,7 +240,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.autoSize=true;console.info(art.autoSize);});
-
`,4),ns=n("div",{className:"run-code"},"▶ Run Code",-1),as=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -248,7 +248,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('ready',()=>{console.info(JSON.stringify(art.rect));});
-
`,5),ls=n("div",{className:"run-code"},"▶ Run Code",-1),ps=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -258,7 +258,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.flip='horizontal';console.info(art.flip);});
-
`,4),os=n("div",{className:"run-code"},"▶ Run Code",-1),es=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -268,7 +268,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.playbackRate=2;console.info(art.playbackRate);});
-
`,4),rs=n("div",{className:"run-code"},"▶ Run Code",-1),cs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -278,7 +278,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.aspectRatio='16:9';console.info(art.aspectRatio);});
-
`,4),ts=n("div",{className:"run-code"},"▶ Run Code",-1),Ds=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -288,7 +288,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.loop= [5,10];console.info(art.loop);});
-
`,5),ys=n("div",{className:"run-code"},"▶ Run Code",-1),Fs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -300,7 +300,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('resize',()=>{art.autoHeight=true;});
-
`,5),is=n("div",{className:"run-code"},"▶ Run Code",-1),As=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -310,7 +310,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.attr('playsInline',true);console.info(art.attr('playsInline'));});
-
`,4),Cs=n("div",{className:"run-code"},"▶ Run Code",-1),ds=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -320,7 +320,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.title='New Title';console.info(art.title);});
-
`,4),us=n("div",{className:"run-code"},"▶ Run Code",-1),bs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -330,7 +330,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.type='m3u8';console.info(art.type);});
-
`,4),hs=n("div",{className:"run-code"},"▶ Run Code",-1),ms=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -340,7 +340,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.theme='#000';console.info(art.theme);});
-
`,4),_s=n("div",{className:"run-code"},"▶ Run Code",-1),gs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -353,7 +353,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
}, ],});
-
`,4),vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ts=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -361,7 +361,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('video:timeupdate',()=>{console.info(art.loaded);});
-
`,4),Es=n("div",{className:"run-code"},"▶ Run Code",-1),Ss=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -369,7 +369,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.on('video:timeupdate',()=>{console.info(art.played);});
-
DOM 事件的代理函数,实质上代理了 addEventListener 和 removeEventListener, 当使用 proxy 来处理事件,播放器销毁时也会自动销毁该事件
`,4),ks=n("div",{className:"run-code"},"▶ Run Code",-1),fs=s(`
js
var container = document.querySelector('.artplayer-app');var art =newArtplayer({container: container,
@@ -379,16 +379,16 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ls=JSON.
art.proxy(container,'click',event=>{console.info(event);});
-
`,4),Rs=n("div",{className:"run-code"},"▶ Run Code",-1),Ns=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});console.info(art.video);
-
1 2 3 4 5 6
`,1),Is=[e,r,c,t,D,y,F,i,A,C,d,u,b,h,m,_,g,v,T,E,S,k,f,w,P,R,N,I,V,j,x,G,B,q,z,U,L,O,W,H,$,M,Q,J,K,X,Y,Z,ss,ns,as,ls,ps,os,es,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,us,bs,hs,ms,_s,gs,vs,Ts,Es,Ss,ks,fs,ws,Ps,Rs,Ns];function Vs(js,xs,Gs,Bs,qs,zs){return p(),l("div",null,Is)}const Os=a(o,[["render",Vs]]);export{Ls as __pageData,Os as default};
+
',4),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s(`
js
var art =newArtplayer({
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const X=JSON.parse('{"title":"高级属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"template","slug":"template","link":"#template","children":[]},{"level":2,"title":"events","slug":"events","link":"#events","children":[]},{"level":2,"title":"storage","slug":"storage","link":"#storage","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"notice","slug":"notice","link":"#notice","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"loading","slug":"loading","link":"#loading","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"mask","slug":"mask","link":"#mask","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]}],"relativePath":"en/advanced/built-in.md","lastUpdated":1673692792000}'),o={name:"en/advanced/built-in.md"},e=s('
`,4),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',whitelist: [(ua)=>/iPhone/gi.test(ua)],});console.info(art.whitelist.state);
-
管理播放器所有的 DOM 事件,实质上是代理了 addEventListener 和 removeEventListener, 当使用以下方法来处理事件,播放器销毁时也会自动销毁该事件
proxy 方法用于代理 DOM 事件
hover 方法用于代理自定义的 hover 事件
loadImg 方法用于监听图片的 load 加载事件
`,5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s(`
js
var container = document.querySelector('.artplayer-app');var art =newArtplayer({container: container,
@@ -38,7 +38,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.events.loadImg('/assets/sample/poster.jpg').then(img=>{console.info('loadImg',img);});
-
`,5),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -48,20 +48,20 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
console.info(test);art.storage.del('test');art.storage.clear();
-
`,2),b=n("div",{className:"run-code"},"▶ Run Code",-1),u=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});art.storage.name ='your-storage-key';art.storage.set('test',{foo:'bar'});
-
`,5),h=n("div",{className:"run-code"},"▶ Run Code",-1),g=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -73,7 +73,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
Play:'Your Play'}});
-
`,4),v=n("div",{className:"run-code"},"▶ Run Code",-1),E=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -81,7 +81,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.on('ready',()=>{art.notice.show='Video Ready To Play';})
-
`,5),T=n("div",{className:"run-code"},"▶ Run Code",-1),k=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -95,7 +95,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.layers.show=false;},1000);});
-
`,5),w=n("div",{className:"run-code"},"▶ Run Code",-1),f=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -110,7 +110,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.controls.show=false;},1000);});
-
`,5),S=n("div",{className:"run-code"},"▶ Run Code",-1),x=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -125,7 +125,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.contextmenu.show=false;},1000);});
-
`,5),P=n("div",{className:"run-code"},"▶ Run Code",-1),I=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -136,7 +136,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
color:'red',});});
-
`,4),N=n("div",{className:"run-code"},"▶ Run Code",-1),R=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -147,7 +147,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.loading.show=false;},1000);});
-
`,4),V=n("div",{className:"run-code"},"▶ Run Code",-1),j=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -162,7 +162,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.hotkey.remove(32,hotkeyEvent);},5000);});
-
`,5),O=n("div",{className:"run-code"},"▶ Run Code",-1),M=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -173,7 +173,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.mask.show=true;},1000);});
-
`,4),$=n("div",{className:"run-code"},"▶ Run Code",-1),z=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -189,7 +189,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.setting.show=false;},1000);});
-
`,4),B=n("div",{className:"run-code"},"▶ Run Code",-1),G=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -208,4 +208,4 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.p
art.on('ready',()=>{art.plugins.add(myPlugin);});
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
`,1),L=[e,c,r,t,D,F,y,i,A,C,d,b,u,m,_,h,g,v,E,T,k,w,f,S,P,I,N,R,V,j,x,O,M,$,z,B,G];function W(q,J,U,Y,H,K){return p(),l("div",null,L)}const Z=a(o,[["render",W]]);export{X as __pageData,Z as default};
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
`,1),L=[e,c,r,t,D,F,y,i,A,C,d,b,u,m,_,h,g,v,E,T,k,w,f,S,x,P,I,N,R,V,j,O,M,$,z,B,G];function W(q,J,U,Y,H,K){return p(),l("div",null,L)}const Z=a(o,[["render",W]]);export{X as __pageData,Z as default};
diff --git a/docs/document/assets/en_advanced_built-in.md.bbe017fc.lean.js b/docs/document/assets/en_advanced_built-in.md.c2fe6960.lean.js
similarity index 86%
rename from docs/document/assets/en_advanced_built-in.md.bbe017fc.lean.js
rename to docs/document/assets/en_advanced_built-in.md.c2fe6960.lean.js
index 64042850a..f51bab129 100644
--- a/docs/document/assets/en_advanced_built-in.md.bbe017fc.lean.js
+++ b/docs/document/assets/en_advanced_built-in.md.c2fe6960.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const X=JSON.parse('{"title":"高级属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"template","slug":"template","link":"#template","children":[]},{"level":2,"title":"events","slug":"events","link":"#events","children":[]},{"level":2,"title":"storage","slug":"storage","link":"#storage","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"notice","slug":"notice","link":"#notice","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"loading","slug":"loading","link":"#loading","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"mask","slug":"mask","link":"#mask","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]}],"relativePath":"en/advanced/built-in.md","lastUpdated":1673692792000}'),o={name:"en/advanced/built-in.md"},e=s("",4),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s("",4),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s("",4),F=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",5),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",2),b=n("div",{className:"run-code"},"▶ Run Code",-1),u=s("",3),m=n("div",{className:"run-code"},"▶ Run Code",-1),_=s("",5),h=n("div",{className:"run-code"},"▶ Run Code",-1),g=s("",4),v=n("div",{className:"run-code"},"▶ Run Code",-1),E=s("",5),T=n("div",{className:"run-code"},"▶ Run Code",-1),k=s("",5),w=n("div",{className:"run-code"},"▶ Run Code",-1),f=s("",5),S=n("div",{className:"run-code"},"▶ Run Code",-1),P=s("",5),I=n("div",{className:"run-code"},"▶ Run Code",-1),N=s("",4),R=n("div",{className:"run-code"},"▶ Run Code",-1),V=s("",4),j=n("div",{className:"run-code"},"▶ Run Code",-1),x=s("",5),O=n("div",{className:"run-code"},"▶ Run Code",-1),M=s("",4),$=n("div",{className:"run-code"},"▶ Run Code",-1),z=s("",4),B=n("div",{className:"run-code"},"▶ Run Code",-1),G=s("",1),L=[e,c,r,t,D,F,y,i,A,C,d,b,u,m,_,h,g,v,E,T,k,w,f,S,P,I,N,R,V,j,x,O,M,$,z,B,G];function W(q,J,U,Y,H,K){return p(),l("div",null,L)}const Z=a(o,[["render",W]]);export{X as __pageData,Z as default};
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const X=JSON.parse('{"title":"高级属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"template","slug":"template","link":"#template","children":[]},{"level":2,"title":"events","slug":"events","link":"#events","children":[]},{"level":2,"title":"storage","slug":"storage","link":"#storage","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"notice","slug":"notice","link":"#notice","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"loading","slug":"loading","link":"#loading","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"mask","slug":"mask","link":"#mask","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]}],"relativePath":"en/advanced/built-in.md","lastUpdated":1673692792000}'),o={name:"en/advanced/built-in.md"},e=s("",4),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s("",4),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s("",4),F=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",5),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",2),b=n("div",{className:"run-code"},"▶ Run Code",-1),u=s("",3),m=n("div",{className:"run-code"},"▶ Run Code",-1),_=s("",5),h=n("div",{className:"run-code"},"▶ Run Code",-1),g=s("",4),v=n("div",{className:"run-code"},"▶ Run Code",-1),E=s("",5),T=n("div",{className:"run-code"},"▶ Run Code",-1),k=s("",5),w=n("div",{className:"run-code"},"▶ Run Code",-1),f=s("",5),S=n("div",{className:"run-code"},"▶ Run Code",-1),x=s("",5),P=n("div",{className:"run-code"},"▶ Run Code",-1),I=s("",4),N=n("div",{className:"run-code"},"▶ Run Code",-1),R=s("",4),V=n("div",{className:"run-code"},"▶ Run Code",-1),j=s("",5),O=n("div",{className:"run-code"},"▶ Run Code",-1),M=s("",4),$=n("div",{className:"run-code"},"▶ Run Code",-1),z=s("",4),B=n("div",{className:"run-code"},"▶ Run Code",-1),G=s("",1),L=[e,c,r,t,D,F,y,i,A,C,d,b,u,m,_,h,g,v,E,T,k,w,f,S,x,P,I,N,R,V,j,O,M,$,z,B,G];function W(q,J,U,Y,H,K){return p(),l("div",null,L)}const Z=a(o,[["render",W]]);export{X as __pageData,Z as default};
diff --git a/docs/document/assets/en_advanced_class.md.41b73f7c.js b/docs/document/assets/en_advanced_class.md.5834ab32.js
similarity index 80%
rename from docs/document/assets/en_advanced_class.md.41b73f7c.js
rename to docs/document/assets/en_advanced_class.md.5834ab32.js
index 25cc55911..422f7849a 100644
--- a/docs/document/assets/en_advanced_class.md.41b73f7c.js
+++ b/docs/document/assets/en_advanced_class.md.5834ab32.js
@@ -1,4 +1,4 @@
-import{_ as s,c as n,o as l,a as e,b as a}from"./app.ad61275b.js";const U=JSON.parse('{"title":"静态属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"instances","slug":"instances","link":"#instances","children":[]},{"level":2,"title":"version","slug":"version","link":"#version","children":[]},{"level":2,"title":"env","slug":"env","link":"#env","children":[]},{"level":2,"title":"build","slug":"build","link":"#build","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"utils","slug":"utils","link":"#utils","children":[]},{"level":2,"title":"scheme","slug":"scheme","link":"#scheme","children":[]},{"level":2,"title":"Emitter","slug":"emitter","link":"#emitter","children":[]},{"level":2,"title":"validator","slug":"validator","link":"#validator","children":[]},{"level":2,"title":"kindOf","slug":"kindof","link":"#kindof","children":[]},{"level":2,"title":"html","slug":"html","link":"#html","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"DEBUG","slug":"debug","link":"#debug","children":[]},{"level":2,"title":"CONTEXTMENU","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"NOTICE_TIME","slug":"notice-time","link":"#notice-time","children":[]},{"level":2,"title":"SETTING_WIDTH","slug":"setting-width","link":"#setting-width","children":[]},{"level":2,"title":"SETTING_ITEM_WIDTH","slug":"setting-item-width","link":"#setting-item-width","children":[]},{"level":2,"title":"SETTING_ITEM_HEIGHT","slug":"setting-item-height","link":"#setting-item-height","children":[]},{"level":2,"title":"INDICATOR_SIZE","slug":"indicator-size","link":"#indicator-size","children":[]},{"level":2,"title":"INDICATOR_SIZE_ICON","slug":"indicator-size-icon","link":"#indicator-size-icon","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE","slug":"indicator-size-mobile","link":"#indicator-size-mobile","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE_ICON","slug":"indicator-size-mobile-icon","link":"#indicator-size-mobile-icon","children":[]},{"level":2,"title":"VOLUME_PANEL_WIDTH","slug":"volume-panel-width","link":"#volume-panel-width","children":[]},{"level":2,"title":"VOLUME_HANDLE_WIDTH","slug":"volume-handle-width","link":"#volume-handle-width","children":[]},{"level":2,"title":"RESIZE_TIME","slug":"resize-time","link":"#resize-time","children":[]},{"level":2,"title":"SCROLL_TIME","slug":"scroll-time","link":"#scroll-time","children":[]},{"level":2,"title":"SCROLL_GAP","slug":"scroll-gap","link":"#scroll-gap","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MAX","slug":"auto-playback-max","link":"#auto-playback-max","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MIN","slug":"auto-playback-min","link":"#auto-playback-min","children":[]},{"level":2,"title":"AUTO_PLAYBACK_TIMEOUT","slug":"auto-playback-timeout","link":"#auto-playback-timeout","children":[]},{"level":2,"title":"RECONNECT_TIME_MAX","slug":"reconnect-time-max","link":"#reconnect-time-max","children":[]},{"level":2,"title":"RECONNECT_SLEEP_TIME","slug":"reconnect-sleep-time","link":"#reconnect-sleep-time","children":[]},{"level":2,"title":"CONTROL_HIDE_TIME","slug":"control-hide-time","link":"#control-hide-time","children":[]},{"level":2,"title":"DB_CLICE_TIME","slug":"db-clice-time","link":"#db-clice-time","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE","slug":"mobile-auto-playbackrate","link":"#mobile-auto-playbackrate","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE_TIME","slug":"mobile-auto-playbackrate-time","link":"#mobile-auto-playbackrate-time","children":[]},{"level":2,"title":"MOBILE_AUTO_ORIENTATION_TIME","slug":"mobile-auto-orientation-time","link":"#mobile-auto-orientation-time","children":[]},{"level":2,"title":"INFO_LOOP_TIME","slug":"info-loop-time","link":"#info-loop-time","children":[]},{"level":2,"title":"FAST_FORWARD_VALUE","slug":"fast-forward-value","link":"#fast-forward-value","children":[]},{"level":2,"title":"FAST_FORWARD_TIME","slug":"fast-forward-time","link":"#fast-forward-time","children":[]},{"level":2,"title":"TOUCH_MOVE_RATIO","slug":"touch-move-ratio","link":"#touch-move-ratio","children":[]},{"level":2,"title":"VOLUME_STEP","slug":"volume-step","link":"#volume-step","children":[]},{"level":2,"title":"SEEK_STEP","slug":"seek-step","link":"#seek-step","children":[]},{"level":2,"title":"PROGRESS_HEIGHT","slug":"progress-height","link":"#progress-height","children":[]},{"level":2,"title":"PLAYBACK_RATE","slug":"playback-rate","link":"#playback-rate","children":[]},{"level":2,"title":"ASPECT_RATIO","slug":"aspect-ratio","link":"#aspect-ratio","children":[]},{"level":2,"title":"FLIP","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"FULLSCREEN_WEB_IN_BODY","slug":"fullscreen-web-in-body","link":"#fullscreen-web-in-body","children":[]}],"relativePath":"en/advanced/class.md","lastUpdated":1674271984000}'),i={name:"en/advanced/class.md"},o=e('
',5),t=a("div",{className:"run-code"},"▶ Run Code",-1),r=e(`
js
console.info([...Artplayer.instances]);
+import{_ as s,c as n,o as l,a as e,b as a}from"./app.77a2ba76.js";const U=JSON.parse('{"title":"静态属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"instances","slug":"instances","link":"#instances","children":[]},{"level":2,"title":"version","slug":"version","link":"#version","children":[]},{"level":2,"title":"env","slug":"env","link":"#env","children":[]},{"level":2,"title":"build","slug":"build","link":"#build","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"utils","slug":"utils","link":"#utils","children":[]},{"level":2,"title":"scheme","slug":"scheme","link":"#scheme","children":[]},{"level":2,"title":"Emitter","slug":"emitter","link":"#emitter","children":[]},{"level":2,"title":"validator","slug":"validator","link":"#validator","children":[]},{"level":2,"title":"kindOf","slug":"kindof","link":"#kindof","children":[]},{"level":2,"title":"html","slug":"html","link":"#html","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"DEBUG","slug":"debug","link":"#debug","children":[]},{"level":2,"title":"CONTEXTMENU","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"NOTICE_TIME","slug":"notice-time","link":"#notice-time","children":[]},{"level":2,"title":"SETTING_WIDTH","slug":"setting-width","link":"#setting-width","children":[]},{"level":2,"title":"SETTING_ITEM_WIDTH","slug":"setting-item-width","link":"#setting-item-width","children":[]},{"level":2,"title":"SETTING_ITEM_HEIGHT","slug":"setting-item-height","link":"#setting-item-height","children":[]},{"level":2,"title":"INDICATOR_SIZE","slug":"indicator-size","link":"#indicator-size","children":[]},{"level":2,"title":"INDICATOR_SIZE_ICON","slug":"indicator-size-icon","link":"#indicator-size-icon","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE","slug":"indicator-size-mobile","link":"#indicator-size-mobile","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE_ICON","slug":"indicator-size-mobile-icon","link":"#indicator-size-mobile-icon","children":[]},{"level":2,"title":"VOLUME_PANEL_WIDTH","slug":"volume-panel-width","link":"#volume-panel-width","children":[]},{"level":2,"title":"VOLUME_HANDLE_WIDTH","slug":"volume-handle-width","link":"#volume-handle-width","children":[]},{"level":2,"title":"RESIZE_TIME","slug":"resize-time","link":"#resize-time","children":[]},{"level":2,"title":"SCROLL_TIME","slug":"scroll-time","link":"#scroll-time","children":[]},{"level":2,"title":"SCROLL_GAP","slug":"scroll-gap","link":"#scroll-gap","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MAX","slug":"auto-playback-max","link":"#auto-playback-max","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MIN","slug":"auto-playback-min","link":"#auto-playback-min","children":[]},{"level":2,"title":"AUTO_PLAYBACK_TIMEOUT","slug":"auto-playback-timeout","link":"#auto-playback-timeout","children":[]},{"level":2,"title":"RECONNECT_TIME_MAX","slug":"reconnect-time-max","link":"#reconnect-time-max","children":[]},{"level":2,"title":"RECONNECT_SLEEP_TIME","slug":"reconnect-sleep-time","link":"#reconnect-sleep-time","children":[]},{"level":2,"title":"CONTROL_HIDE_TIME","slug":"control-hide-time","link":"#control-hide-time","children":[]},{"level":2,"title":"DB_CLICE_TIME","slug":"db-clice-time","link":"#db-clice-time","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE","slug":"mobile-auto-playbackrate","link":"#mobile-auto-playbackrate","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE_TIME","slug":"mobile-auto-playbackrate-time","link":"#mobile-auto-playbackrate-time","children":[]},{"level":2,"title":"MOBILE_AUTO_ORIENTATION_TIME","slug":"mobile-auto-orientation-time","link":"#mobile-auto-orientation-time","children":[]},{"level":2,"title":"INFO_LOOP_TIME","slug":"info-loop-time","link":"#info-loop-time","children":[]},{"level":2,"title":"FAST_FORWARD_VALUE","slug":"fast-forward-value","link":"#fast-forward-value","children":[]},{"level":2,"title":"FAST_FORWARD_TIME","slug":"fast-forward-time","link":"#fast-forward-time","children":[]},{"level":2,"title":"TOUCH_MOVE_RATIO","slug":"touch-move-ratio","link":"#touch-move-ratio","children":[]},{"level":2,"title":"VOLUME_STEP","slug":"volume-step","link":"#volume-step","children":[]},{"level":2,"title":"SEEK_STEP","slug":"seek-step","link":"#seek-step","children":[]},{"level":2,"title":"PROGRESS_HEIGHT","slug":"progress-height","link":"#progress-height","children":[]},{"level":2,"title":"PLAYBACK_RATE","slug":"playback-rate","link":"#playback-rate","children":[]},{"level":2,"title":"ASPECT_RATIO","slug":"aspect-ratio","link":"#aspect-ratio","children":[]},{"level":2,"title":"FLIP","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"FULLSCREEN_WEB_IN_BODY","slug":"fullscreen-web-in-body","link":"#fullscreen-web-in-body","children":[]}],"relativePath":"en/advanced/class.md","lastUpdated":1674271984000}'),i={name:"en/advanced/class.md"},o=e('
',5),t=a("div",{className:"run-code"},"▶ Run Code",-1),r=e(`
js
console.info([...Artplayer.instances]);var art =newArtplayer({container:'.artplayer-app',
@@ -6,15 +6,15 @@ import{_ as s,c as n,o as l,a as e,b as a}from"./app.ad61275b.js";const U=JSON.p
});console.info([...Artplayer.instances]);
-
`,37),N=[o,t,r,c,d,p,h,_,u,A,m,C,b,D,y,T,v,F,E,g,I,f,k,O,S];function R(x,P,L,M,w,V){return l(),n("div",null,N)}const j=s(i,[["render",R]]);export{U as __pageData,j as default};
+
`,37),N=[o,t,r,c,d,p,h,_,u,A,m,b,C,D,y,T,v,F,E,g,I,f,k,O,S];function x(R,P,L,M,w,V){return l(),n("div",null,N)}const j=s(i,[["render",x]]);export{U as __pageData,j as default};
diff --git a/docs/document/assets/en_advanced_class.md.41b73f7c.lean.js b/docs/document/assets/en_advanced_class.md.5834ab32.lean.js
similarity index 95%
rename from docs/document/assets/en_advanced_class.md.41b73f7c.lean.js
rename to docs/document/assets/en_advanced_class.md.5834ab32.lean.js
index c532ba51c..31abb3e23 100644
--- a/docs/document/assets/en_advanced_class.md.41b73f7c.lean.js
+++ b/docs/document/assets/en_advanced_class.md.5834ab32.lean.js
@@ -1 +1 @@
-import{_ as s,c as n,o as l,a as e,b as a}from"./app.ad61275b.js";const U=JSON.parse('{"title":"静态属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"instances","slug":"instances","link":"#instances","children":[]},{"level":2,"title":"version","slug":"version","link":"#version","children":[]},{"level":2,"title":"env","slug":"env","link":"#env","children":[]},{"level":2,"title":"build","slug":"build","link":"#build","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"utils","slug":"utils","link":"#utils","children":[]},{"level":2,"title":"scheme","slug":"scheme","link":"#scheme","children":[]},{"level":2,"title":"Emitter","slug":"emitter","link":"#emitter","children":[]},{"level":2,"title":"validator","slug":"validator","link":"#validator","children":[]},{"level":2,"title":"kindOf","slug":"kindof","link":"#kindof","children":[]},{"level":2,"title":"html","slug":"html","link":"#html","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"DEBUG","slug":"debug","link":"#debug","children":[]},{"level":2,"title":"CONTEXTMENU","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"NOTICE_TIME","slug":"notice-time","link":"#notice-time","children":[]},{"level":2,"title":"SETTING_WIDTH","slug":"setting-width","link":"#setting-width","children":[]},{"level":2,"title":"SETTING_ITEM_WIDTH","slug":"setting-item-width","link":"#setting-item-width","children":[]},{"level":2,"title":"SETTING_ITEM_HEIGHT","slug":"setting-item-height","link":"#setting-item-height","children":[]},{"level":2,"title":"INDICATOR_SIZE","slug":"indicator-size","link":"#indicator-size","children":[]},{"level":2,"title":"INDICATOR_SIZE_ICON","slug":"indicator-size-icon","link":"#indicator-size-icon","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE","slug":"indicator-size-mobile","link":"#indicator-size-mobile","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE_ICON","slug":"indicator-size-mobile-icon","link":"#indicator-size-mobile-icon","children":[]},{"level":2,"title":"VOLUME_PANEL_WIDTH","slug":"volume-panel-width","link":"#volume-panel-width","children":[]},{"level":2,"title":"VOLUME_HANDLE_WIDTH","slug":"volume-handle-width","link":"#volume-handle-width","children":[]},{"level":2,"title":"RESIZE_TIME","slug":"resize-time","link":"#resize-time","children":[]},{"level":2,"title":"SCROLL_TIME","slug":"scroll-time","link":"#scroll-time","children":[]},{"level":2,"title":"SCROLL_GAP","slug":"scroll-gap","link":"#scroll-gap","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MAX","slug":"auto-playback-max","link":"#auto-playback-max","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MIN","slug":"auto-playback-min","link":"#auto-playback-min","children":[]},{"level":2,"title":"AUTO_PLAYBACK_TIMEOUT","slug":"auto-playback-timeout","link":"#auto-playback-timeout","children":[]},{"level":2,"title":"RECONNECT_TIME_MAX","slug":"reconnect-time-max","link":"#reconnect-time-max","children":[]},{"level":2,"title":"RECONNECT_SLEEP_TIME","slug":"reconnect-sleep-time","link":"#reconnect-sleep-time","children":[]},{"level":2,"title":"CONTROL_HIDE_TIME","slug":"control-hide-time","link":"#control-hide-time","children":[]},{"level":2,"title":"DB_CLICE_TIME","slug":"db-clice-time","link":"#db-clice-time","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE","slug":"mobile-auto-playbackrate","link":"#mobile-auto-playbackrate","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE_TIME","slug":"mobile-auto-playbackrate-time","link":"#mobile-auto-playbackrate-time","children":[]},{"level":2,"title":"MOBILE_AUTO_ORIENTATION_TIME","slug":"mobile-auto-orientation-time","link":"#mobile-auto-orientation-time","children":[]},{"level":2,"title":"INFO_LOOP_TIME","slug":"info-loop-time","link":"#info-loop-time","children":[]},{"level":2,"title":"FAST_FORWARD_VALUE","slug":"fast-forward-value","link":"#fast-forward-value","children":[]},{"level":2,"title":"FAST_FORWARD_TIME","slug":"fast-forward-time","link":"#fast-forward-time","children":[]},{"level":2,"title":"TOUCH_MOVE_RATIO","slug":"touch-move-ratio","link":"#touch-move-ratio","children":[]},{"level":2,"title":"VOLUME_STEP","slug":"volume-step","link":"#volume-step","children":[]},{"level":2,"title":"SEEK_STEP","slug":"seek-step","link":"#seek-step","children":[]},{"level":2,"title":"PROGRESS_HEIGHT","slug":"progress-height","link":"#progress-height","children":[]},{"level":2,"title":"PLAYBACK_RATE","slug":"playback-rate","link":"#playback-rate","children":[]},{"level":2,"title":"ASPECT_RATIO","slug":"aspect-ratio","link":"#aspect-ratio","children":[]},{"level":2,"title":"FLIP","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"FULLSCREEN_WEB_IN_BODY","slug":"fullscreen-web-in-body","link":"#fullscreen-web-in-body","children":[]}],"relativePath":"en/advanced/class.md","lastUpdated":1674271984000}'),i={name:"en/advanced/class.md"},o=e("",5),t=a("div",{className:"run-code"},"▶ Run Code",-1),r=e("",3),c=a("div",{className:"run-code"},"▶ Run Code",-1),d=e("",3),p=a("div",{className:"run-code"},"▶ Run Code",-1),h=e("",3),_=a("div",{className:"run-code"},"▶ Run Code",-1),u=e("",3),A=a("div",{className:"run-code"},"▶ Run Code",-1),m=e("",3),C=a("div",{className:"run-code"},"▶ Run Code",-1),b=e("",4),D=a("div",{className:"run-code"},"▶ Run Code",-1),y=e("",3),T=a("div",{className:"run-code"},"▶ Run Code",-1),v=e("",3),F=a("div",{className:"run-code"},"▶ Run Code",-1),E=e("",3),g=a("div",{className:"run-code"},"▶ Run Code",-1),I=e("",3),f=a("div",{className:"run-code"},"▶ Run Code",-1),k=e("",3),O=a("div",{className:"run-code"},"▶ Run Code",-1),S=e("",37),N=[o,t,r,c,d,p,h,_,u,A,m,C,b,D,y,T,v,F,E,g,I,f,k,O,S];function R(x,P,L,M,w,V){return l(),n("div",null,N)}const j=s(i,[["render",R]]);export{U as __pageData,j as default};
+import{_ as s,c as n,o as l,a as e,b as a}from"./app.77a2ba76.js";const U=JSON.parse('{"title":"静态属性","description":"","frontmatter":{},"headers":[{"level":2,"title":"instances","slug":"instances","link":"#instances","children":[]},{"level":2,"title":"version","slug":"version","link":"#version","children":[]},{"level":2,"title":"env","slug":"env","link":"#env","children":[]},{"level":2,"title":"build","slug":"build","link":"#build","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"utils","slug":"utils","link":"#utils","children":[]},{"level":2,"title":"scheme","slug":"scheme","link":"#scheme","children":[]},{"level":2,"title":"Emitter","slug":"emitter","link":"#emitter","children":[]},{"level":2,"title":"validator","slug":"validator","link":"#validator","children":[]},{"level":2,"title":"kindOf","slug":"kindof","link":"#kindof","children":[]},{"level":2,"title":"html","slug":"html","link":"#html","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"DEBUG","slug":"debug","link":"#debug","children":[]},{"level":2,"title":"CONTEXTMENU","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"NOTICE_TIME","slug":"notice-time","link":"#notice-time","children":[]},{"level":2,"title":"SETTING_WIDTH","slug":"setting-width","link":"#setting-width","children":[]},{"level":2,"title":"SETTING_ITEM_WIDTH","slug":"setting-item-width","link":"#setting-item-width","children":[]},{"level":2,"title":"SETTING_ITEM_HEIGHT","slug":"setting-item-height","link":"#setting-item-height","children":[]},{"level":2,"title":"INDICATOR_SIZE","slug":"indicator-size","link":"#indicator-size","children":[]},{"level":2,"title":"INDICATOR_SIZE_ICON","slug":"indicator-size-icon","link":"#indicator-size-icon","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE","slug":"indicator-size-mobile","link":"#indicator-size-mobile","children":[]},{"level":2,"title":"INDICATOR_SIZE_MOBILE_ICON","slug":"indicator-size-mobile-icon","link":"#indicator-size-mobile-icon","children":[]},{"level":2,"title":"VOLUME_PANEL_WIDTH","slug":"volume-panel-width","link":"#volume-panel-width","children":[]},{"level":2,"title":"VOLUME_HANDLE_WIDTH","slug":"volume-handle-width","link":"#volume-handle-width","children":[]},{"level":2,"title":"RESIZE_TIME","slug":"resize-time","link":"#resize-time","children":[]},{"level":2,"title":"SCROLL_TIME","slug":"scroll-time","link":"#scroll-time","children":[]},{"level":2,"title":"SCROLL_GAP","slug":"scroll-gap","link":"#scroll-gap","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MAX","slug":"auto-playback-max","link":"#auto-playback-max","children":[]},{"level":2,"title":"AUTO_PLAYBACK_MIN","slug":"auto-playback-min","link":"#auto-playback-min","children":[]},{"level":2,"title":"AUTO_PLAYBACK_TIMEOUT","slug":"auto-playback-timeout","link":"#auto-playback-timeout","children":[]},{"level":2,"title":"RECONNECT_TIME_MAX","slug":"reconnect-time-max","link":"#reconnect-time-max","children":[]},{"level":2,"title":"RECONNECT_SLEEP_TIME","slug":"reconnect-sleep-time","link":"#reconnect-sleep-time","children":[]},{"level":2,"title":"CONTROL_HIDE_TIME","slug":"control-hide-time","link":"#control-hide-time","children":[]},{"level":2,"title":"DB_CLICE_TIME","slug":"db-clice-time","link":"#db-clice-time","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE","slug":"mobile-auto-playbackrate","link":"#mobile-auto-playbackrate","children":[]},{"level":2,"title":"MOBILE_AUTO_PLAYBACKRATE_TIME","slug":"mobile-auto-playbackrate-time","link":"#mobile-auto-playbackrate-time","children":[]},{"level":2,"title":"MOBILE_AUTO_ORIENTATION_TIME","slug":"mobile-auto-orientation-time","link":"#mobile-auto-orientation-time","children":[]},{"level":2,"title":"INFO_LOOP_TIME","slug":"info-loop-time","link":"#info-loop-time","children":[]},{"level":2,"title":"FAST_FORWARD_VALUE","slug":"fast-forward-value","link":"#fast-forward-value","children":[]},{"level":2,"title":"FAST_FORWARD_TIME","slug":"fast-forward-time","link":"#fast-forward-time","children":[]},{"level":2,"title":"TOUCH_MOVE_RATIO","slug":"touch-move-ratio","link":"#touch-move-ratio","children":[]},{"level":2,"title":"VOLUME_STEP","slug":"volume-step","link":"#volume-step","children":[]},{"level":2,"title":"SEEK_STEP","slug":"seek-step","link":"#seek-step","children":[]},{"level":2,"title":"PROGRESS_HEIGHT","slug":"progress-height","link":"#progress-height","children":[]},{"level":2,"title":"PLAYBACK_RATE","slug":"playback-rate","link":"#playback-rate","children":[]},{"level":2,"title":"ASPECT_RATIO","slug":"aspect-ratio","link":"#aspect-ratio","children":[]},{"level":2,"title":"FLIP","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"FULLSCREEN_WEB_IN_BODY","slug":"fullscreen-web-in-body","link":"#fullscreen-web-in-body","children":[]}],"relativePath":"en/advanced/class.md","lastUpdated":1674271984000}'),i={name:"en/advanced/class.md"},o=e("",5),t=a("div",{className:"run-code"},"▶ Run Code",-1),r=e("",3),c=a("div",{className:"run-code"},"▶ Run Code",-1),d=e("",3),p=a("div",{className:"run-code"},"▶ Run Code",-1),h=e("",3),_=a("div",{className:"run-code"},"▶ Run Code",-1),u=e("",3),A=a("div",{className:"run-code"},"▶ Run Code",-1),m=e("",3),b=a("div",{className:"run-code"},"▶ Run Code",-1),C=e("",4),D=a("div",{className:"run-code"},"▶ Run Code",-1),y=e("",3),T=a("div",{className:"run-code"},"▶ Run Code",-1),v=e("",3),F=a("div",{className:"run-code"},"▶ Run Code",-1),E=e("",3),g=a("div",{className:"run-code"},"▶ Run Code",-1),I=e("",3),f=a("div",{className:"run-code"},"▶ Run Code",-1),k=e("",3),O=a("div",{className:"run-code"},"▶ Run Code",-1),S=e("",37),N=[o,t,r,c,d,p,h,_,u,A,m,b,C,D,y,T,v,F,E,g,I,f,k,O,S];function x(R,P,L,M,w,V){return l(),n("div",null,N)}const j=s(i,[["render",x]]);export{U as __pageData,j as default};
diff --git a/docs/document/assets/en_advanced_event.md.1b7bace0.lean.js b/docs/document/assets/en_advanced_event.md.1b7bace0.lean.js
deleted file mode 100644
index f6ae8c126..000000000
--- a/docs/document/assets/en_advanced_event.md.1b7bace0.lean.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const Ps=JSON.parse('{"title":"实例事件","description":"","frontmatter":{},"headers":[{"level":2,"title":"ready","slug":"ready","link":"#ready","children":[]},{"level":2,"title":"restart","slug":"restart","link":"#restart","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"focus","slug":"focus","link":"#focus","children":[]},{"level":2,"title":"blur","slug":"blur","link":"#blur","children":[]},{"level":2,"title":"dblclick","slug":"dblclick","link":"#dblclick","children":[]},{"level":2,"title":"click","slug":"click","link":"#click","children":[]},{"level":2,"title":"error","slug":"error","link":"#error","children":[]},{"level":2,"title":"hover","slug":"hover","link":"#hover","children":[]},{"level":2,"title":"mousemove","slug":"mousemove","link":"#mousemove","children":[]},{"level":2,"title":"resize","slug":"resize","link":"#resize","children":[]},{"level":2,"title":"view","slug":"view","link":"#view","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"subtitleUpdate","slug":"subtitleupdate","link":"#subtitleupdate","children":[]},{"level":2,"title":"subtitleLoad","slug":"subtitleload","link":"#subtitleload","children":[]},{"level":2,"title":"subtitleSwitch","slug":"subtitleswitch","link":"#subtitleswitch","children":[]},{"level":2,"title":"video:canplay","slug":"video-canplay","link":"#video-canplay","children":[]},{"level":2,"title":"video:canplaythrough","slug":"video-canplaythrough","link":"#video-canplaythrough","children":[]},{"level":2,"title":"video:complete","slug":"video-complete","link":"#video-complete","children":[]},{"level":2,"title":"video:durationchange","slug":"video-durationchange","link":"#video-durationchange","children":[]},{"level":2,"title":"video:emptied","slug":"video-emptied","link":"#video-emptied","children":[]},{"level":2,"title":"video:ended","slug":"video-ended","link":"#video-ended","children":[]},{"level":2,"title":"video:error","slug":"video-error","link":"#video-error","children":[]},{"level":2,"title":"video:loadeddata","slug":"video-loadeddata","link":"#video-loadeddata","children":[]},{"level":2,"title":"video:loadedmetadata","slug":"video-loadedmetadata","link":"#video-loadedmetadata","children":[]},{"level":2,"title":"video:pause","slug":"video-pause","link":"#video-pause","children":[]},{"level":2,"title":"video:play","slug":"video-play","link":"#video-play","children":[]},{"level":2,"title":"video:playing","slug":"video-playing","link":"#video-playing","children":[]},{"level":2,"title":"video:progress","slug":"video-progress","link":"#video-progress","children":[]},{"level":2,"title":"video:ratechange","slug":"video-ratechange","link":"#video-ratechange","children":[]},{"level":2,"title":"video:seeked","slug":"video-seeked","link":"#video-seeked","children":[]},{"level":2,"title":"video:seeking","slug":"video-seeking","link":"#video-seeking","children":[]},{"level":2,"title":"video:stalled","slug":"video-stalled","link":"#video-stalled","children":[]},{"level":2,"title":"video:suspend","slug":"video-suspend","link":"#video-suspend","children":[]},{"level":2,"title":"video:timeupdate","slug":"video-timeupdate","link":"#video-timeupdate","children":[]},{"level":2,"title":"video:volumechange","slug":"video-volumechange","link":"#video-volumechange","children":[]},{"level":2,"title":"video:waiting","slug":"video-waiting","link":"#video-waiting","children":[]}],"relativePath":"en/advanced/event.md","lastUpdated":1673692792000}'),o={name:"en/advanced/event.md"},r=s("h1",{id:"实例事件",tabindex:"-1"},[a("实例事件 "),s("a",{class:"header-anchor",href:"#实例事件","aria-hidden":"true"},"#")],-1),c=s("p",null,[a("播放器的事件分为两种,一种视频的 "),s("code",null,"原生事件"),a(" (前缀 "),s("code",null,"video:"),a("),另外一种是 "),s("code",null,"自定义事件")],-1),t=s("p",null,"监听事件:",-1),D=s("div",{className:"run-code"},"▶ Run Code",-1),y=n("",2),F=s("div",{className:"run-code"},"▶ Run Code",-1),i=n("",2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=n("",2),d=s("div",{className:"run-code"},"▶ Run Code",-1),u=n("",4),b=s("div",{className:"run-code"},"▶ Run Code",-1),h=n("",3),m=s("div",{className:"run-code"},"▶ Run Code",-1),_=n("",3),v=s("div",{className:"run-code"},"▶ Run Code",-1),g=n("",3),E=s("div",{className:"run-code"},"▶ Run Code",-1),T=n("",3),f=s("div",{className:"run-code"},"▶ Run Code",-1),k=n("",3),S=s("div",{className:"run-code"},"▶ Run Code",-1),w=n("",3),R=s("div",{className:"run-code"},"▶ Run Code",-1),N=n("",3),V=s("div",{className:"run-code"},"▶ Run Code",-1),P=n("",3),j=s("div",{className:"run-code"},"▶ Run Code",-1),I=n("",3),x=s("div",{className:"run-code"},"▶ Run Code",-1),z=n("",3),O=s("div",{className:"run-code"},"▶ Run Code",-1),U=n("",3),H=s("div",{className:"run-code"},"▶ Run Code",-1),W=n("",3),L=s("div",{className:"run-code"},"▶ Run Code",-1),$=n("",3),B=s("div",{className:"run-code"},"▶ Run Code",-1),J=n("",3),q=s("div",{className:"run-code"},"▶ Run Code",-1),G=n("",3),K=s("div",{className:"run-code"},"▶ Run Code",-1),M=n("",3),Q=s("div",{className:"run-code"},"▶ Run Code",-1),X=n("",3),Y=s("div",{className:"run-code"},"▶ Run Code",-1),Z=n("",3),ss=s("div",{className:"run-code"},"▶ Run Code",-1),ns=n("",3),as=s("div",{className:"run-code"},"▶ Run Code",-1),ls=n("",3),ps=s("div",{className:"run-code"},"▶ Run Code",-1),es=n("",3),os=s("div",{className:"run-code"},"▶ Run Code",-1),rs=n("",3),cs=s("div",{className:"run-code"},"▶ Run Code",-1),ts=n("",3),Ds=s("div",{className:"run-code"},"▶ Run Code",-1),ys=n("",3),Fs=s("div",{className:"run-code"},"▶ Run Code",-1),is=n("",3),As=s("div",{className:"run-code"},"▶ Run Code",-1),Cs=n("",3),ds=s("div",{className:"run-code"},"▶ Run Code",-1),us=n("",3),bs=s("div",{className:"run-code"},"▶ Run Code",-1),hs=n("",3),ms=s("div",{className:"run-code"},"▶ Run Code",-1),_s=n("",3),vs=s("div",{className:"run-code"},"▶ Run Code",-1),gs=n("",43),Es=[r,c,t,D,y,F,i,A,C,d,u,b,h,m,_,v,g,E,T,f,k,S,w,R,N,V,P,j,I,x,z,O,U,H,W,L,$,B,J,q,G,K,M,Q,X,Y,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,us,bs,hs,ms,_s,vs,gs];function Ts(fs,ks,Ss,ws,Rs,Ns){return e(),p("div",null,Es)}const js=l(o,[["render",Ts]]);export{Ps as __pageData,js as default};
diff --git a/docs/document/assets/advanced_event.md.57f904d5.js b/docs/document/assets/en_advanced_event.md.99a25a28.js
similarity index 71%
rename from docs/document/assets/advanced_event.md.57f904d5.js
rename to docs/document/assets/en_advanced_event.md.99a25a28.js
index 77bd8bf3f..523a221de 100644
--- a/docs/document/assets/advanced_event.md.57f904d5.js
+++ b/docs/document/assets/en_advanced_event.md.99a25a28.js
@@ -1,4 +1,4 @@
-import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const Ps=JSON.parse('{"title":"实例事件","description":"","frontmatter":{},"headers":[{"level":2,"title":"ready","slug":"ready","link":"#ready","children":[]},{"level":2,"title":"restart","slug":"restart","link":"#restart","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"focus","slug":"focus","link":"#focus","children":[]},{"level":2,"title":"blur","slug":"blur","link":"#blur","children":[]},{"level":2,"title":"dblclick","slug":"dblclick","link":"#dblclick","children":[]},{"level":2,"title":"click","slug":"click","link":"#click","children":[]},{"level":2,"title":"error","slug":"error","link":"#error","children":[]},{"level":2,"title":"hover","slug":"hover","link":"#hover","children":[]},{"level":2,"title":"mousemove","slug":"mousemove","link":"#mousemove","children":[]},{"level":2,"title":"resize","slug":"resize","link":"#resize","children":[]},{"level":2,"title":"view","slug":"view","link":"#view","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"subtitleUpdate","slug":"subtitleupdate","link":"#subtitleupdate","children":[]},{"level":2,"title":"subtitleLoad","slug":"subtitleload","link":"#subtitleload","children":[]},{"level":2,"title":"subtitleSwitch","slug":"subtitleswitch","link":"#subtitleswitch","children":[]},{"level":2,"title":"video:canplay","slug":"video-canplay","link":"#video-canplay","children":[]},{"level":2,"title":"video:canplaythrough","slug":"video-canplaythrough","link":"#video-canplaythrough","children":[]},{"level":2,"title":"video:complete","slug":"video-complete","link":"#video-complete","children":[]},{"level":2,"title":"video:durationchange","slug":"video-durationchange","link":"#video-durationchange","children":[]},{"level":2,"title":"video:emptied","slug":"video-emptied","link":"#video-emptied","children":[]},{"level":2,"title":"video:ended","slug":"video-ended","link":"#video-ended","children":[]},{"level":2,"title":"video:error","slug":"video-error","link":"#video-error","children":[]},{"level":2,"title":"video:loadeddata","slug":"video-loadeddata","link":"#video-loadeddata","children":[]},{"level":2,"title":"video:loadedmetadata","slug":"video-loadedmetadata","link":"#video-loadedmetadata","children":[]},{"level":2,"title":"video:pause","slug":"video-pause","link":"#video-pause","children":[]},{"level":2,"title":"video:play","slug":"video-play","link":"#video-play","children":[]},{"level":2,"title":"video:playing","slug":"video-playing","link":"#video-playing","children":[]},{"level":2,"title":"video:progress","slug":"video-progress","link":"#video-progress","children":[]},{"level":2,"title":"video:ratechange","slug":"video-ratechange","link":"#video-ratechange","children":[]},{"level":2,"title":"video:seeked","slug":"video-seeked","link":"#video-seeked","children":[]},{"level":2,"title":"video:seeking","slug":"video-seeking","link":"#video-seeking","children":[]},{"level":2,"title":"video:stalled","slug":"video-stalled","link":"#video-stalled","children":[]},{"level":2,"title":"video:suspend","slug":"video-suspend","link":"#video-suspend","children":[]},{"level":2,"title":"video:timeupdate","slug":"video-timeupdate","link":"#video-timeupdate","children":[]},{"level":2,"title":"video:volumechange","slug":"video-volumechange","link":"#video-volumechange","children":[]},{"level":2,"title":"video:waiting","slug":"video-waiting","link":"#video-waiting","children":[]}],"relativePath":"advanced/event.md","lastUpdated":1673441101000}'),o={name:"advanced/event.md"},r=s("h1",{id:"实例事件",tabindex:"-1"},[a("实例事件 "),s("a",{class:"header-anchor",href:"#实例事件","aria-hidden":"true"},"#")],-1),c=s("p",null,[a("播放器的事件分为两种,一种视频的 "),s("code",null,"原生事件"),a(" (前缀 "),s("code",null,"video:"),a("),另外一种是 "),s("code",null,"自定义事件")],-1),t=s("p",null,"监听事件:",-1),D=s("div",{className:"run-code"},"▶ Run Code",-1),y=n(`
js
var art =newArtplayer({
+import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.77a2ba76.js";const Ms=JSON.parse('{"title":"实例事件","description":"","frontmatter":{},"headers":[{"level":2,"title":"ready","slug":"ready","link":"#ready","children":[]},{"level":2,"title":"restart","slug":"restart","link":"#restart","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"focus","slug":"focus","link":"#focus","children":[]},{"level":2,"title":"blur","slug":"blur","link":"#blur","children":[]},{"level":2,"title":"dblclick","slug":"dblclick","link":"#dblclick","children":[]},{"level":2,"title":"click","slug":"click","link":"#click","children":[]},{"level":2,"title":"error","slug":"error","link":"#error","children":[]},{"level":2,"title":"hover","slug":"hover","link":"#hover","children":[]},{"level":2,"title":"mousemove","slug":"mousemove","link":"#mousemove","children":[]},{"level":2,"title":"resize","slug":"resize","link":"#resize","children":[]},{"level":2,"title":"view","slug":"view","link":"#view","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"subtitleUpdate","slug":"subtitleupdate","link":"#subtitleupdate","children":[]},{"level":2,"title":"subtitleLoad","slug":"subtitleload","link":"#subtitleload","children":[]},{"level":2,"title":"subtitleSwitch","slug":"subtitleswitch","link":"#subtitleswitch","children":[]},{"level":2,"title":"info","slug":"info","link":"#info","children":[]},{"level":2,"title":"layer","slug":"layer","link":"#layer","children":[]},{"level":2,"title":"loading","slug":"loading","link":"#loading","children":[]},{"level":2,"title":"mask","slug":"mask","link":"#mask","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"control","slug":"control","link":"#control","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"video:canplay","slug":"video-canplay","link":"#video-canplay","children":[]},{"level":2,"title":"video:canplaythrough","slug":"video-canplaythrough","link":"#video-canplaythrough","children":[]},{"level":2,"title":"video:complete","slug":"video-complete","link":"#video-complete","children":[]},{"level":2,"title":"video:durationchange","slug":"video-durationchange","link":"#video-durationchange","children":[]},{"level":2,"title":"video:emptied","slug":"video-emptied","link":"#video-emptied","children":[]},{"level":2,"title":"video:ended","slug":"video-ended","link":"#video-ended","children":[]},{"level":2,"title":"video:error","slug":"video-error","link":"#video-error","children":[]},{"level":2,"title":"video:loadeddata","slug":"video-loadeddata","link":"#video-loadeddata","children":[]},{"level":2,"title":"video:loadedmetadata","slug":"video-loadedmetadata","link":"#video-loadedmetadata","children":[]},{"level":2,"title":"video:pause","slug":"video-pause","link":"#video-pause","children":[]},{"level":2,"title":"video:play","slug":"video-play","link":"#video-play","children":[]},{"level":2,"title":"video:playing","slug":"video-playing","link":"#video-playing","children":[]},{"level":2,"title":"video:progress","slug":"video-progress","link":"#video-progress","children":[]},{"level":2,"title":"video:ratechange","slug":"video-ratechange","link":"#video-ratechange","children":[]},{"level":2,"title":"video:seeked","slug":"video-seeked","link":"#video-seeked","children":[]},{"level":2,"title":"video:seeking","slug":"video-seeking","link":"#video-seeking","children":[]},{"level":2,"title":"video:stalled","slug":"video-stalled","link":"#video-stalled","children":[]},{"level":2,"title":"video:suspend","slug":"video-suspend","link":"#video-suspend","children":[]},{"level":2,"title":"video:timeupdate","slug":"video-timeupdate","link":"#video-timeupdate","children":[]},{"level":2,"title":"video:volumechange","slug":"video-volumechange","link":"#video-volumechange","children":[]},{"level":2,"title":"video:waiting","slug":"video-waiting","link":"#video-waiting","children":[]}],"relativePath":"en/advanced/event.md","lastUpdated":1677245395000}'),o={name:"en/advanced/event.md"},r=s("h1",{id:"实例事件",tabindex:"-1"},[a("实例事件 "),s("a",{class:"header-anchor",href:"#实例事件","aria-hidden":"true"},"#")],-1),c=s("p",null,[a("播放器的事件分为两种,一种视频的 "),s("code",null,"原生事件"),a(" (前缀 "),s("code",null,"video:"),a("),另外一种是 "),s("code",null,"自定义事件")],-1),t=s("p",null,"监听事件:",-1),D=s("div",{className:"run-code"},"▶ Run Code",-1),y=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -6,7 +6,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('video:canplay',()=>{console.info('video:canplay');});
-
1 2 3 4 5 6 7 8
只监听一次事件:
`,2),F=s("div",{className:"run-code"},"▶ Run Code",-1),i=n(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8
只监听一次事件:
`,2),F=s("div",{className:"run-code"},"▶ Run Code",-1),i=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -14,13 +14,13 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.once('video:canplay',()=>{console.info('video:canplay');});
-
1 2 3 4 5 6 7 8
手动触发事件:
`,2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=n(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8
手动触发事件:
`,2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});art.emit('focus');
-
1 2 3 4 5 6
移除事件:
`,2),d=s("div",{className:"run-code"},"▶ Run Code",-1),u=n(`
js
var art =newArtplayer({
+
1 2 3 4 5 6
移除事件:
`,2),d=s("div",{className:"run-code"},"▶ Run Code",-1),b=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -31,7 +31,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
}art.on('ready', onReady);
-
`,4),u=s("div",{className:"run-code"},"▶ Run Code",-1),h=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -39,7 +39,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('ready',()=>{console.info('ready');});
-
`,3),m=s("div",{className:"run-code"},"▶ Run Code",-1),_=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -51,7 +51,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('restart',()=>{console.info('restart');});
-
`,3),g=s("div",{className:"run-code"},"▶ Run Code",-1),v=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -59,7 +59,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('pause',()=>{console.info('pause');});
-
`,3),E=s("div",{className:"run-code"},"▶ Run Code",-1),T=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -67,7 +67,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('play',()=>{console.info('play');});
-
`,3),f=s("div",{className:"run-code"},"▶ Run Code",-1),k=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -75,7 +75,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('hotkey',(event)=>{console.info('hotkey',event);});
-
`,3),S=s("div",{className:"run-code"},"▶ Run Code",-1),x=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -87,7 +87,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('destroy',()=>{console.info('destroy');});
-
`,3),w=s("div",{className:"run-code"},"▶ Run Code",-1),R=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -99,7 +99,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('url',(url)=>{console.info('url',url);});
-
`,3),N=s("div",{className:"run-code"},"▶ Run Code",-1),V=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -107,7 +107,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('focus',()=>{console.info('focus');});
-
`,3),P=s("div",{className:"run-code"},"▶ Run Code",-1),j=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -115,7 +115,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('blur',()=>{console.info('blur');});
-
`,3),I=s("div",{className:"run-code"},"▶ Run Code",-1),z=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -123,7 +123,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('dblclick',()=>{console.info('dblclick');});
-
`,3),O=s("div",{className:"run-code"},"▶ Run Code",-1),U=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -131,7 +131,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('click',()=>{console.info('click');});
-
`,3),H=s("div",{className:"run-code"},"▶ Run Code",-1),W=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/404.mp4',});
@@ -139,7 +139,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('error',(error,reconnectTime)=>{console.info(error,reconnectTime);});
-
`,3),L=s("div",{className:"run-code"},"▶ Run Code",-1),$=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -147,7 +147,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('hover',(state)=>{console.info('hover',state);});
-
`,3),B=s("div",{className:"run-code"},"▶ Run Code",-1),J=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -155,7 +155,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('mousemove',(event)=>{console.info('mousemove',event);});
-
`,3),q=s("div",{className:"run-code"},"▶ Run Code",-1),G=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -163,7 +163,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('resize',()=>{console.info('resize');});
-
`,3),K=s("div",{className:"run-code"},"▶ Run Code",-1),M=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -171,7 +171,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('view',(state)=>{console.info('view',state);});
-
`,3),Q=s("div",{className:"run-code"},"▶ Run Code",-1),X=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',aspectRatio:true,
@@ -181,7 +181,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('aspectRatio',(aspectRatio)=>{console.info('aspectRatio',aspectRatio);});
-
`,3),Y=s("div",{className:"run-code"},"▶ Run Code",-1),Z=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -193,7 +193,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('autoHeight',(height)=>{console.info('autoHeight',height);});
-
`,3),ss=s("div",{className:"run-code"},"▶ Run Code",-1),ns=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoSize:true,
@@ -202,7 +202,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('autoSize',()=>{console.info('autoSize');});
-
`,3),as=s("div",{className:"run-code"},"▶ Run Code",-1),ls=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',flip:true,
@@ -212,7 +212,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('flip',(flip)=>{console.info('flip',flip);});
-
`,3),ps=s("div",{className:"run-code"},"▶ Run Code",-1),es=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreen:true,
@@ -221,7 +221,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('fullscreen',(state)=>{console.info('fullscreen',state);});
-
`,3),os=s("div",{className:"run-code"},"▶ Run Code",-1),rs=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreenWeb:true,
@@ -230,7 +230,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('fullscreenWeb',(state)=>{console.info('fullscreenWeb',state);});
-
`,3),cs=s("div",{className:"run-code"},"▶ Run Code",-1),ts=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -242,7 +242,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('mini',(state)=>{console.info('mini',state);});
-
`,3),Ds=s("div",{className:"run-code"},"▶ Run Code",-1),ys=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',pip:true,
@@ -251,7 +251,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('pip',(state)=>{console.info('pip',state);});
-
`,3),Fs=s("div",{className:"run-code"},"▶ Run Code",-1),is=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',screenshot:true,
@@ -260,7 +260,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('screenshot',(dataUri)=>{console.info('screenshot',dataUri);});
-
`,3),As=s("div",{className:"run-code"},"▶ Run Code",-1),Cs=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -268,7 +268,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('seek',(currentTime)=>{console.info('seek',currentTime);});
-
`,3),ds=s("div",{className:"run-code"},"▶ Run Code",-1),bs=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitleOffset:true,
@@ -281,7 +281,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('subtitleOffset',(offset)=>{console.info('subtitleOffset',offset);});
-
`,3),us=s("div",{className:"run-code"},"▶ Run Code",-1),hs=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -292,7 +292,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('subtitleUpdate',(text)=>{console.info('subtitleUpdate',text);});
-
`,3),ms=s("div",{className:"run-code"},"▶ Run Code",-1),_s=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -303,7 +303,7 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('subtitleLoad',(url)=>{console.info('subtitleLoad',url);});
-
`,3),gs=s("div",{className:"run-code"},"▶ Run Code",-1),vs=n(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -318,4 +318,69 @@ import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.ad61275b.js";const P
art.on('subtitleSwitch',(url)=>{console.info('subtitleSwitch',url);});
-
`,43),Es=[r,c,t,D,y,F,i,A,C,d,u,b,h,m,_,v,g,E,T,f,k,S,w,R,N,V,P,j,I,x,z,O,U,H,W,L,$,B,J,q,G,K,M,Q,X,Y,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,us,bs,hs,ms,_s,vs,gs];function Ts(fs,ks,Ss,ws,Rs,Ns){return e(),p("div",null,Es)}const js=l(o,[["render",Ts]]);export{Ps as __pageData,js as default};
+
`,43),Hs=[r,c,t,D,y,F,i,A,C,d,b,u,h,m,_,g,v,E,T,f,k,S,x,w,R,N,V,P,j,I,z,O,U,H,W,L,$,B,J,q,G,K,M,Q,X,Y,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,bs,us,hs,ms,_s,gs,vs,Es,Ts,fs,ks,Ss,xs,ws,Rs,Ns,Vs,Ps,js,Is,zs,Os,Us];function Ws(Ls,$s,Bs,Js,qs,Gs){return e(),p("div",null,Hs)}const Qs=l(o,[["render",Ws]]);export{Ms as __pageData,Qs as default};
diff --git a/docs/document/assets/en_advanced_event.md.99a25a28.lean.js b/docs/document/assets/en_advanced_event.md.99a25a28.lean.js
new file mode 100644
index 000000000..386fde884
--- /dev/null
+++ b/docs/document/assets/en_advanced_event.md.99a25a28.lean.js
@@ -0,0 +1 @@
+import{_ as l,c as p,o as e,b as s,d as a,a as n}from"./app.77a2ba76.js";const Ms=JSON.parse('{"title":"实例事件","description":"","frontmatter":{},"headers":[{"level":2,"title":"ready","slug":"ready","link":"#ready","children":[]},{"level":2,"title":"restart","slug":"restart","link":"#restart","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"focus","slug":"focus","link":"#focus","children":[]},{"level":2,"title":"blur","slug":"blur","link":"#blur","children":[]},{"level":2,"title":"dblclick","slug":"dblclick","link":"#dblclick","children":[]},{"level":2,"title":"click","slug":"click","link":"#click","children":[]},{"level":2,"title":"error","slug":"error","link":"#error","children":[]},{"level":2,"title":"hover","slug":"hover","link":"#hover","children":[]},{"level":2,"title":"mousemove","slug":"mousemove","link":"#mousemove","children":[]},{"level":2,"title":"resize","slug":"resize","link":"#resize","children":[]},{"level":2,"title":"view","slug":"view","link":"#view","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"subtitleUpdate","slug":"subtitleupdate","link":"#subtitleupdate","children":[]},{"level":2,"title":"subtitleLoad","slug":"subtitleload","link":"#subtitleload","children":[]},{"level":2,"title":"subtitleSwitch","slug":"subtitleswitch","link":"#subtitleswitch","children":[]},{"level":2,"title":"info","slug":"info","link":"#info","children":[]},{"level":2,"title":"layer","slug":"layer","link":"#layer","children":[]},{"level":2,"title":"loading","slug":"loading","link":"#loading","children":[]},{"level":2,"title":"mask","slug":"mask","link":"#mask","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"control","slug":"control","link":"#control","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"video:canplay","slug":"video-canplay","link":"#video-canplay","children":[]},{"level":2,"title":"video:canplaythrough","slug":"video-canplaythrough","link":"#video-canplaythrough","children":[]},{"level":2,"title":"video:complete","slug":"video-complete","link":"#video-complete","children":[]},{"level":2,"title":"video:durationchange","slug":"video-durationchange","link":"#video-durationchange","children":[]},{"level":2,"title":"video:emptied","slug":"video-emptied","link":"#video-emptied","children":[]},{"level":2,"title":"video:ended","slug":"video-ended","link":"#video-ended","children":[]},{"level":2,"title":"video:error","slug":"video-error","link":"#video-error","children":[]},{"level":2,"title":"video:loadeddata","slug":"video-loadeddata","link":"#video-loadeddata","children":[]},{"level":2,"title":"video:loadedmetadata","slug":"video-loadedmetadata","link":"#video-loadedmetadata","children":[]},{"level":2,"title":"video:pause","slug":"video-pause","link":"#video-pause","children":[]},{"level":2,"title":"video:play","slug":"video-play","link":"#video-play","children":[]},{"level":2,"title":"video:playing","slug":"video-playing","link":"#video-playing","children":[]},{"level":2,"title":"video:progress","slug":"video-progress","link":"#video-progress","children":[]},{"level":2,"title":"video:ratechange","slug":"video-ratechange","link":"#video-ratechange","children":[]},{"level":2,"title":"video:seeked","slug":"video-seeked","link":"#video-seeked","children":[]},{"level":2,"title":"video:seeking","slug":"video-seeking","link":"#video-seeking","children":[]},{"level":2,"title":"video:stalled","slug":"video-stalled","link":"#video-stalled","children":[]},{"level":2,"title":"video:suspend","slug":"video-suspend","link":"#video-suspend","children":[]},{"level":2,"title":"video:timeupdate","slug":"video-timeupdate","link":"#video-timeupdate","children":[]},{"level":2,"title":"video:volumechange","slug":"video-volumechange","link":"#video-volumechange","children":[]},{"level":2,"title":"video:waiting","slug":"video-waiting","link":"#video-waiting","children":[]}],"relativePath":"en/advanced/event.md","lastUpdated":1677245395000}'),o={name:"en/advanced/event.md"},r=s("h1",{id:"实例事件",tabindex:"-1"},[a("实例事件 "),s("a",{class:"header-anchor",href:"#实例事件","aria-hidden":"true"},"#")],-1),c=s("p",null,[a("播放器的事件分为两种,一种视频的 "),s("code",null,"原生事件"),a(" (前缀 "),s("code",null,"video:"),a("),另外一种是 "),s("code",null,"自定义事件")],-1),t=s("p",null,"监听事件:",-1),D=s("div",{className:"run-code"},"▶ Run Code",-1),y=n("",2),F=s("div",{className:"run-code"},"▶ Run Code",-1),i=n("",2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=n("",2),d=s("div",{className:"run-code"},"▶ Run Code",-1),b=n("",4),u=s("div",{className:"run-code"},"▶ Run Code",-1),h=n("",3),m=s("div",{className:"run-code"},"▶ Run Code",-1),_=n("",3),g=s("div",{className:"run-code"},"▶ Run Code",-1),v=n("",3),E=s("div",{className:"run-code"},"▶ Run Code",-1),T=n("",3),f=s("div",{className:"run-code"},"▶ Run Code",-1),k=n("",3),S=s("div",{className:"run-code"},"▶ Run Code",-1),x=n("",3),w=s("div",{className:"run-code"},"▶ Run Code",-1),R=n("",3),N=s("div",{className:"run-code"},"▶ Run Code",-1),V=n("",3),P=s("div",{className:"run-code"},"▶ Run Code",-1),j=n("",3),I=s("div",{className:"run-code"},"▶ Run Code",-1),z=n("",3),O=s("div",{className:"run-code"},"▶ Run Code",-1),U=n("",3),H=s("div",{className:"run-code"},"▶ Run Code",-1),W=n("",3),L=s("div",{className:"run-code"},"▶ Run Code",-1),$=n("",3),B=s("div",{className:"run-code"},"▶ Run Code",-1),J=n("",3),q=s("div",{className:"run-code"},"▶ Run Code",-1),G=n("",3),K=s("div",{className:"run-code"},"▶ Run Code",-1),M=n("",3),Q=s("div",{className:"run-code"},"▶ Run Code",-1),X=n("",3),Y=s("div",{className:"run-code"},"▶ Run Code",-1),Z=n("",3),ss=s("div",{className:"run-code"},"▶ Run Code",-1),ns=n("",3),as=s("div",{className:"run-code"},"▶ Run Code",-1),ls=n("",3),ps=s("div",{className:"run-code"},"▶ Run Code",-1),es=n("",3),os=s("div",{className:"run-code"},"▶ Run Code",-1),rs=n("",3),cs=s("div",{className:"run-code"},"▶ Run Code",-1),ts=n("",3),Ds=s("div",{className:"run-code"},"▶ Run Code",-1),ys=n("",3),Fs=s("div",{className:"run-code"},"▶ Run Code",-1),is=n("",3),As=s("div",{className:"run-code"},"▶ Run Code",-1),Cs=n("",3),ds=s("div",{className:"run-code"},"▶ Run Code",-1),bs=n("",3),us=s("div",{className:"run-code"},"▶ Run Code",-1),hs=n("",3),ms=s("div",{className:"run-code"},"▶ Run Code",-1),_s=n("",3),gs=s("div",{className:"run-code"},"▶ Run Code",-1),vs=n("",3),Es=s("div",{className:"run-code"},"▶ Run Code",-1),Ts=n("",3),fs=s("div",{className:"run-code"},"▶ Run Code",-1),ks=n("",3),Ss=s("div",{className:"run-code"},"▶ Run Code",-1),xs=n("",3),ws=s("div",{className:"run-code"},"▶ Run Code",-1),Rs=n("",3),Ns=s("div",{className:"run-code"},"▶ Run Code",-1),Vs=n("",3),Ps=s("div",{className:"run-code"},"▶ Run Code",-1),js=n("",3),Is=s("div",{className:"run-code"},"▶ Run Code",-1),zs=n("",3),Os=s("div",{className:"run-code"},"▶ Run Code",-1),Us=n("",43),Hs=[r,c,t,D,y,F,i,A,C,d,b,u,h,m,_,g,v,E,T,f,k,S,x,w,R,N,V,P,j,I,z,O,U,H,W,L,$,B,J,q,G,K,M,Q,X,Y,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,bs,us,hs,ms,_s,gs,vs,Es,Ts,fs,ks,Ss,xs,ws,Rs,Ns,Vs,Ps,js,Is,zs,Os,Us];function Ws(Ls,$s,Bs,Js,qs,Gs){return e(),p("div",null,Hs)}const Qs=l(o,[["render",Ws]]);export{Ms as __pageData,Qs as default};
diff --git a/docs/document/assets/en_advanced_plugin.md.e616bfed.js b/docs/document/assets/en_advanced_plugin.md.d438c8aa.js
similarity index 95%
rename from docs/document/assets/en_advanced_plugin.md.e616bfed.js
rename to docs/document/assets/en_advanced_plugin.md.d438c8aa.js
index a20297b09..fb3c50bb4 100644
--- a/docs/document/assets/en_advanced_plugin.md.e616bfed.js
+++ b/docs/document/assets/en_advanced_plugin.md.d438c8aa.js
@@ -1,4 +1,4 @@
-import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const v=JSON.parse('{"title":"编写插件","description":"","frontmatter":{},"headers":[],"relativePath":"en/advanced/plugin.md","lastUpdated":1673692792000}'),e={name:"en/advanced/plugin.md"},r=s("h1",{id:"编写插件",tabindex:"-1"},[n("编写插件 "),s("a",{class:"header-anchor",href:"#编写插件","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("但你已经知道播放器的"),s("code",null,"属性"),n(", "),s("code",null,"方法"),n("和"),s("code",null,"事件"),n("后,再编写插件是非常简单的事")],-1),t=s("p",null,"可以在实例化的时候加载插件的函数",-1),F=s("div",{className:"run-code"},"▶ Run Code",-1),D=a(`
js
functionmyPlugin(art){
+import{_ as l,c as p,o,b as s,d as n,a}from"./app.77a2ba76.js";const v=JSON.parse('{"title":"编写插件","description":"","frontmatter":{},"headers":[],"relativePath":"en/advanced/plugin.md","lastUpdated":1673692792000}'),e={name:"en/advanced/plugin.md"},r=s("h1",{id:"编写插件",tabindex:"-1"},[n("编写插件 "),s("a",{class:"header-anchor",href:"#编写插件","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("但你已经知道播放器的"),s("code",null,"属性"),n(", "),s("code",null,"方法"),n("和"),s("code",null,"事件"),n("后,再编写插件是非常简单的事")],-1),t=s("p",null,"可以在实例化的时候加载插件的函数",-1),F=s("div",{className:"run-code"},"▶ Run Code",-1),D=a(`
js
functionmyPlugin(art){console.info(art);return{ name:'myPlugin',
@@ -18,7 +18,7 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const v=JSON.pars
art.on('ready',()=>{console.info(art.plugins.myPlugin);});
-
`,2),y=s("div",{className:"run-code"},"▶ Run Code",-1),i=a(`
js
functionmyPlugin(art){console.info(art);return{ name:'myPlugin',
@@ -39,7 +39,7 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const v=JSON.pars
art.on('ready',()=>{console.info(art.plugins.myPlugin);});
-
`,2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=a(`
js
functionadsPlugin(option){return(art)=>{art.layers.add({ name:'ads',
diff --git a/docs/document/assets/en_advanced_plugin.md.e616bfed.lean.js b/docs/document/assets/en_advanced_plugin.md.d438c8aa.lean.js
similarity index 93%
rename from docs/document/assets/en_advanced_plugin.md.e616bfed.lean.js
rename to docs/document/assets/en_advanced_plugin.md.d438c8aa.lean.js
index e31989dce..4c0ce3ec1 100644
--- a/docs/document/assets/en_advanced_plugin.md.e616bfed.lean.js
+++ b/docs/document/assets/en_advanced_plugin.md.d438c8aa.lean.js
@@ -1 +1 @@
-import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const v=JSON.parse('{"title":"编写插件","description":"","frontmatter":{},"headers":[],"relativePath":"en/advanced/plugin.md","lastUpdated":1673692792000}'),e={name:"en/advanced/plugin.md"},r=s("h1",{id:"编写插件",tabindex:"-1"},[n("编写插件 "),s("a",{class:"header-anchor",href:"#编写插件","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("但你已经知道播放器的"),s("code",null,"属性"),n(", "),s("code",null,"方法"),n("和"),s("code",null,"事件"),n("后,再编写插件是非常简单的事")],-1),t=s("p",null,"可以在实例化的时候加载插件的函数",-1),F=s("div",{className:"run-code"},"▶ Run Code",-1),D=a("",2),y=s("div",{className:"run-code"},"▶ Run Code",-1),i=a("",2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=a("",1),b=[r,c,t,F,D,y,i,A,C];function u(m,d,h,_,g,E){return o(),p("div",null,b)}const T=l(e,[["render",u]]);export{v as __pageData,T as default};
+import{_ as l,c as p,o,b as s,d as n,a}from"./app.77a2ba76.js";const v=JSON.parse('{"title":"编写插件","description":"","frontmatter":{},"headers":[],"relativePath":"en/advanced/plugin.md","lastUpdated":1673692792000}'),e={name:"en/advanced/plugin.md"},r=s("h1",{id:"编写插件",tabindex:"-1"},[n("编写插件 "),s("a",{class:"header-anchor",href:"#编写插件","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("但你已经知道播放器的"),s("code",null,"属性"),n(", "),s("code",null,"方法"),n("和"),s("code",null,"事件"),n("后,再编写插件是非常简单的事")],-1),t=s("p",null,"可以在实例化的时候加载插件的函数",-1),F=s("div",{className:"run-code"},"▶ Run Code",-1),D=a("",2),y=s("div",{className:"run-code"},"▶ Run Code",-1),i=a("",2),A=s("div",{className:"run-code"},"▶ Run Code",-1),C=a("",1),b=[r,c,t,F,D,y,i,A,C];function u(m,d,h,_,g,E){return o(),p("div",null,b)}const T=l(e,[["render",u]]);export{v as __pageData,T as default};
diff --git a/docs/document/assets/en_advanced_property.md.3a278a0b.js b/docs/document/assets/en_advanced_property.md.04d93333.js
similarity index 91%
rename from docs/document/assets/en_advanced_property.md.3a278a0b.js
rename to docs/document/assets/en_advanced_property.md.04d93333.js
index 8ccb386b4..ebfb0bb92 100644
--- a/docs/document/assets/en_advanced_property.md.3a278a0b.js
+++ b/docs/document/assets/en_advanced_property.md.04d93333.js
@@ -1,4 +1,4 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.parse('{"title":"Instance Property","description":"","frontmatter":{},"headers":[{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"toggle","slug":"toggle","link":"#toggle","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"forward","slug":"forward","link":"#forward","children":[]},{"level":2,"title":"backward","slug":"backward","link":"#backward","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"switchUrl","slug":"switchurl","link":"#switchurl","children":[]},{"level":2,"title":"switchQuality","slug":"switchquality","link":"#switchquality","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"currentTime","slug":"currenttime","link":"#currenttime","children":[]},{"level":2,"title":"duration","slug":"duration","link":"#duration","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"getDataURL","slug":"getdataurl","link":"#getdataurl","children":[]},{"level":2,"title":"getBlobUrl","slug":"getbloburl","link":"#getbloburl","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"playing","slug":"playing","link":"#playing","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"rect","slug":"rect","link":"#rect","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"attr","slug":"attr","link":"#attr","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]},{"level":2,"title":"loaded","slug":"loaded","link":"#loaded","children":[]},{"level":2,"title":"played","slug":"played","link":"#played","children":[]},{"level":2,"title":"proxy","slug":"proxy","link":"#proxy","children":[]},{"level":2,"title":"query","slug":"query","link":"#query","children":[]},{"level":2,"title":"video","slug":"video","link":"#video","children":[]}],"relativePath":"en/advanced/property.md","lastUpdated":1674271220000}'),e={name:"en/advanced/property.md"},o=s('
',5),r=n("div",{className:"run-code"},"▶ Run Code",-1),c=s(`
js
var art =newArtplayer({
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const Ws=JSON.parse('{"title":"Instance Property","description":"","frontmatter":{},"headers":[{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"toggle","slug":"toggle","link":"#toggle","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"forward","slug":"forward","link":"#forward","children":[]},{"level":2,"title":"backward","slug":"backward","link":"#backward","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"switchUrl","slug":"switchurl","link":"#switchurl","children":[]},{"level":2,"title":"switchQuality","slug":"switchquality","link":"#switchquality","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"currentTime","slug":"currenttime","link":"#currenttime","children":[]},{"level":2,"title":"duration","slug":"duration","link":"#duration","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"getDataURL","slug":"getdataurl","link":"#getdataurl","children":[]},{"level":2,"title":"getBlobUrl","slug":"getbloburl","link":"#getbloburl","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"playing","slug":"playing","link":"#playing","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"rect","slug":"rect","link":"#rect","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"attr","slug":"attr","link":"#attr","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]},{"level":2,"title":"loaded","slug":"loaded","link":"#loaded","children":[]},{"level":2,"title":"played","slug":"played","link":"#played","children":[]},{"level":2,"title":"proxy","slug":"proxy","link":"#proxy","children":[]},{"level":2,"title":"query","slug":"query","link":"#query","children":[]},{"level":2,"title":"video","slug":"video","link":"#video","children":[]}],"relativePath":"en/advanced/property.md","lastUpdated":1674271220000}'),e={name:"en/advanced/property.md"},o=s('
',5),r=n("div",{className:"run-code"},"▶ Run Code",-1),c=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -7,7 +7,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('ready',()=>{art.play();});
-
`,4),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -20,7 +20,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.pause();},3000);});
-
`,4),y=n("div",{className:"run-code"},"▶ Run Code",-1),F=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -33,7 +33,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.toggle();},3000);});
-
To destroy the player, accept a parameter indicating whether to remove the player's html after destruction. The default value is true
`,4),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -41,7 +41,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('ready',()=>{art.destroy();});
-
`,4),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -49,7 +49,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('ready',()=>{art.seek=5;});
-
`,4),u=n("div",{className:"run-code"},"▶ Run Code",-1),b=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -57,7 +57,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('ready',()=>{art.forward=5;});
-
`,4),h=n("div",{className:"run-code"},"▶ Run Code",-1),m=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -69,7 +69,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.backward=2;},3000);});
-
`,4),_=n("div",{className:"run-code"},"▶ Run Code",-1),g=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -79,7 +79,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.volume=0.5;console.info(art.volume);});
-
`,4),v=n("div",{className:"run-code"},"▶ Run Code",-1),T=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -87,7 +87,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('ready',()=>{art.url='/assets/sample/video.mp4?t=0';});
-
Setting the video url is similar to that of url, but some optimization operations will be performed
The function supports two parameters, the first is the new video url, and the second is the optional new video name
`,5),E=n("div",{className:"run-code"},"▶ Run Code",-1),f=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -98,7 +98,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.switchUrl('/assets/sample/video.mp4?t=0','New Video Name');},3000);});
-
Set the video quality address, similar to switchUrl, but with the previous playback progress
The function supports two parameters, the first is the new video url, and the second is the optional new video name
`,5),S=n("div",{className:"run-code"},"▶ Run Code",-1),w=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -109,7 +109,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.switchQuality('/assets/sample/video.mp4?t=0','New Video Name');},3000);});
-
`,4),k=n("div",{className:"run-code"},"▶ Run Code",-1),P=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -119,7 +119,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.muted=true;console.info(art.muted);});
-
Set and get the current time of the video. Setting the time is similar to seek, but it will not trigger additional events
`,4),x=n("div",{className:"run-code"},"▶ Run Code",-1),N=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -129,7 +129,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.currentTime=5;console.info(art.currentTime);});
-
`,4),R=n("div",{className:"run-code"},"▶ Run Code",-1),I=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -137,7 +137,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('ready',()=>{console.info(art.duration);});
-
1 2 3 4 5 6 7 8
Tip
Some videos have no duration, such as live videos or videos that have not been decoded. The duration obtained at this time will be 0
`,5),V=n("div",{className:"run-code"},"▶ Run Code",-1),j=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -145,7 +145,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('ready',()=>{art.screenshot();});
-
Get the base64 address of the screenshot of the current video frame, and return a Promise
`,4),G=n("div",{className:"run-code"},"▶ Run Code",-1),q=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -154,7 +154,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
consturl=awaitart.getDataURL();console.info(url)});
-
Get the blob address of the screenshot of the current video frame, and return a Promise
`,4),B=n("div",{className:"run-code"},"▶ Run Code",-1),z=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -163,7 +163,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
consturl=awaitart.getBlobUrl();console.info(url);});
-
`,4),U=n("div",{className:"run-code"},"▶ Run Code",-1),W=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -176,7 +176,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
}, ],});
-
1 2 3 4 5 6 7 8 9 10 11 12 13
Tip
Due to the browser security mechanism, the page must have interaction before triggering the full screen of the window (for example, the user has clicked on the page)
`,5),L=n("div",{className:"run-code"},"▶ Run Code",-1),O=s(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10 11 12 13
Tip
Due to the browser security mechanism, the page must have interaction before triggering the full screen of the window (for example, the user has clicked on the page)
`,5),L=n("div",{className:"run-code"},"▶ Run Code",-1),O=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreenWeb:true,
@@ -189,7 +189,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.fullscreenWeb=false;},3000);});
-
Set and get the picture-in-picture mode of the player
`,4),H=n("div",{className:"run-code"},"▶ Run Code",-1),$=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -202,7 +202,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
}, ],});
-
1 2 3 4 5 6 7 8 9 10 11 12 13
Tip
Due to the browser security mechanism, before triggering picture-in-picture, the page must have interaction (for example, the user has clicked on the page)
Set and obtain video posters. You can only see the poster effect before the video is played
`,5),M=n("div",{className:"run-code"},"▶ Run Code",-1),Q=s(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10 11 12 13
Tip
Due to the browser security mechanism, before triggering picture-in-picture, the page must have interaction (for example, the user has clicked on the page)
Set and obtain video posters. You can only see the poster effect before the video is played
`,5),M=n("div",{className:"run-code"},"▶ Run Code",-1),Q=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',poster:'/assets/sample/poster.jpg',
@@ -213,7 +213,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.poster='/assets/sample/poster.jpg?t=0';console.info(art.poster);});
-
`,4),J=n("div",{className:"run-code"},"▶ Run Code",-1),Y=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -221,7 +221,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('ready',()=>{art.mini=true;});
-
`,4),K=n("div",{className:"run-code"},"▶ Run Code",-1),X=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -230,7 +230,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('ready',()=>{console.info(art.playing);});
-
Set whether the video is adaptive size. After setting it to true, it will only be executed once
`,4),Z=n("div",{className:"run-code"},"▶ Run Code",-1),ss=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -240,7 +240,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.autoSize=true;console.info(art.autoSize);});
-
Get the size and coordinate information of the player
`,4),ns=n("div",{className:"run-code"},"▶ Run Code",-1),as=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -248,7 +248,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('ready',()=>{console.info(JSON.stringify(art.rect));});
-
1 2 3 4 5 6 7 8
Tip
Dimension and coordinate information are obtained through getBoundingClientRect
Set and get player rollover, support normal, horizontal, vertical
`,5),ls=n("div",{className:"run-code"},"▶ Run Code",-1),ps=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -258,7 +258,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.flip='horizontal';console.info(art.flip);});
-
`,4),es=n("div",{className:"run-code"},"▶ Run Code",-1),os=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -268,7 +268,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.playbackRate=2;console.info(art.playbackRate);});
-
`,4),rs=n("div",{className:"run-code"},"▶ Run Code",-1),cs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -278,7 +278,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.aspectRatio='16:9';console.info(art.aspectRatio);});
-
Set and obtain interval sequential playback in seconds
`,4),ts=n("div",{className:"run-code"},"▶ Run Code",-1),Ds=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -288,7 +288,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.loop= [5,10];console.info(art.loop);});
-
1 2 3 4 5 6 7 8 9 10
Tip
To delete interval looping, just set loop to []
art.loop and art.option.loop aer two different things, please don't mix them up
When the container has only width, this attribute can automatically calculate and set the height of the video. After it is set to true, it will only be executed once
`,5),ys=n("div",{className:"run-code"},"▶ Run Code",-1),Fs=s(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10
Tip
To delete interval looping, just set loop to []
art.loop and art.option.loop aer two different things, please don't mix them up
When the container has only width, this attribute can automatically calculate and set the height of the video. After it is set to true, it will only be executed once
`,5),ys=n("div",{className:"run-code"},"▶ Run Code",-1),Fs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -300,7 +300,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('resize',()=>{art.autoHeight=true;});
-
1 2 3 4 5 6 7 8 9 10 11 12
提示
This attribute is useful when your container has only width but does not know the specific height. It can automatically calculate the height of the video, but you need to determine the time to set this attribute
Get and set the attributes of the video element dynamically
`,5),is=n("div",{className:"run-code"},"▶ Run Code",-1),As=s(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10 11 12
提示
This attribute is useful when your container has only width but does not know the specific height. It can automatically calculate the height of the video, but you need to determine the time to set this attribute
Get and set the attributes of the video element dynamically
`,5),is=n("div",{className:"run-code"},"▶ Run Code",-1),As=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -310,7 +310,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.attr('playsInline',true);console.info(art.attr('playsInline'));});
-
`,4),Cs=n("div",{className:"run-code"},"▶ Run Code",-1),ds=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -320,7 +320,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.title='New Title';console.info(art.title);});
-
`,4),us=n("div",{className:"run-code"},"▶ Run Code",-1),bs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -330,7 +330,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.type='m3u8';console.info(art.type);});
-
`,4),hs=n("div",{className:"run-code"},"▶ Run Code",-1),ms=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -340,7 +340,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.theme='#000';console.info(art.theme);});
-
`,4),_s=n("div",{className:"run-code"},"▶ Run Code",-1),gs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -353,7 +353,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
}, ],});
-
The proportion of video cache, with the range of [0, 1], is often used in conjunction with the video:timeupdate event
`,4),vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ts=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -361,7 +361,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('video:timeupdate',()=>{console.info(art.loaded);});
-
The proportion of video playback, with the range of [0, 1], is often used in conjunction with the video:timeupdate event
`,4),Es=n("div",{className:"run-code"},"▶ Run Code",-1),fs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -369,7 +369,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.on('video:timeupdate',()=>{console.info(art.played);});
-
The proxy function of DOM event essentially proxies addEventListener and removeEventListener. When proxy is used to process the event, the player will also automatically destroy the event when it is destroyed
`,4),Ss=n("div",{className:"run-code"},"▶ Run Code",-1),ws=s(`
js
var container = document.querySelector('.artplayer-app');
+
The proxy function of DOM event essentially proxies addEventListener and removeEventListener. When proxy is used to process the event, the player will also automatically destroy the event when it is destroyed
`,4),Ss=n("div",{className:"run-code"},"▶ Run Code",-1),ws=s(`
js
var container = document.querySelector('.artplayer-app');var art =newArtplayer({container: container,
@@ -379,16 +379,16 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.
art.proxy(container,'click',event=>{console.info(event);});
-
1 2 3 4 5 6 7 8 9 10
Tip
If you need some DOM events only exist in the life cycle of the player, we strongly recommend using this function to avoid memory leakage
The query function of DOM is similar to document.querySelector, but the queried object is limited to the current player, which can avoid errors of the same class name
`,5),ks=n("div",{className:"run-code"},"▶ Run Code",-1),Ps=s(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10
Tip
If you need some DOM events only exist in the life cycle of the player, we strongly recommend using this function to avoid memory leakage
The query function of DOM is similar to document.querySelector, but the queried object is limited to the current player, which can avoid errors of the same class name
`,5),ks=n("div",{className:"run-code"},"▶ Run Code",-1),Ps=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});console.info(art.query('.art-video'));
-
`,4),xs=n("div",{className:"run-code"},"▶ Run Code",-1),Ns=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});console.info(art.video);
-
1 2 3 4 5 6
`,1),Is=[o,r,c,t,D,y,F,i,A,C,d,u,b,h,m,_,g,v,T,E,f,S,w,k,P,N,R,I,V,j,x,G,q,B,z,U,W,L,O,H,$,M,Q,J,Y,K,X,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,us,bs,hs,ms,_s,gs,vs,Ts,Es,fs,Ss,ws,ks,Ps,Ns,Rs];function Vs(js,xs,Gs,qs,Bs,zs){return p(),l("div",null,Is)}const Ls=a(e,[["render",Vs]]);export{Ws as __pageData,Ls as default};
+
1 2 3 4 5 6
`,1),Rs=[o,r,c,t,D,y,F,i,A,C,d,u,b,h,m,_,g,v,T,E,f,S,w,k,P,x,N,R,I,V,j,G,q,B,z,U,W,L,O,H,$,M,Q,J,Y,K,X,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,us,bs,hs,ms,_s,gs,vs,Ts,Es,fs,Ss,ws,ks,Ps,xs,Ns];function Is(Vs,js,Gs,qs,Bs,zs){return p(),l("div",null,Rs)}const Ls=a(e,[["render",Is]]);export{Ws as __pageData,Ls as default};
diff --git a/docs/document/assets/en_advanced_property.md.3a278a0b.lean.js b/docs/document/assets/en_advanced_property.md.04d93333.lean.js
similarity index 89%
rename from docs/document/assets/en_advanced_property.md.3a278a0b.lean.js
rename to docs/document/assets/en_advanced_property.md.04d93333.lean.js
index 07b5446ce..33b96fb3e 100644
--- a/docs/document/assets/en_advanced_property.md.3a278a0b.lean.js
+++ b/docs/document/assets/en_advanced_property.md.04d93333.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Ws=JSON.parse('{"title":"Instance Property","description":"","frontmatter":{},"headers":[{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"toggle","slug":"toggle","link":"#toggle","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"forward","slug":"forward","link":"#forward","children":[]},{"level":2,"title":"backward","slug":"backward","link":"#backward","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"switchUrl","slug":"switchurl","link":"#switchurl","children":[]},{"level":2,"title":"switchQuality","slug":"switchquality","link":"#switchquality","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"currentTime","slug":"currenttime","link":"#currenttime","children":[]},{"level":2,"title":"duration","slug":"duration","link":"#duration","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"getDataURL","slug":"getdataurl","link":"#getdataurl","children":[]},{"level":2,"title":"getBlobUrl","slug":"getbloburl","link":"#getbloburl","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"playing","slug":"playing","link":"#playing","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"rect","slug":"rect","link":"#rect","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"attr","slug":"attr","link":"#attr","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]},{"level":2,"title":"loaded","slug":"loaded","link":"#loaded","children":[]},{"level":2,"title":"played","slug":"played","link":"#played","children":[]},{"level":2,"title":"proxy","slug":"proxy","link":"#proxy","children":[]},{"level":2,"title":"query","slug":"query","link":"#query","children":[]},{"level":2,"title":"video","slug":"video","link":"#video","children":[]}],"relativePath":"en/advanced/property.md","lastUpdated":1674271220000}'),e={name:"en/advanced/property.md"},o=s("",5),r=n("div",{className:"run-code"},"▶ Run Code",-1),c=s("",4),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s("",4),y=n("div",{className:"run-code"},"▶ Run Code",-1),F=s("",4),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",4),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",4),u=n("div",{className:"run-code"},"▶ Run Code",-1),b=s("",4),h=n("div",{className:"run-code"},"▶ Run Code",-1),m=s("",4),_=n("div",{className:"run-code"},"▶ Run Code",-1),g=s("",4),v=n("div",{className:"run-code"},"▶ Run Code",-1),T=s("",5),E=n("div",{className:"run-code"},"▶ Run Code",-1),f=s("",5),S=n("div",{className:"run-code"},"▶ Run Code",-1),w=s("",4),k=n("div",{className:"run-code"},"▶ Run Code",-1),P=s("",4),N=n("div",{className:"run-code"},"▶ Run Code",-1),R=s("",4),I=n("div",{className:"run-code"},"▶ Run Code",-1),V=s("",5),j=n("div",{className:"run-code"},"▶ Run Code",-1),x=s("",4),G=n("div",{className:"run-code"},"▶ Run Code",-1),q=s("",4),B=n("div",{className:"run-code"},"▶ Run Code",-1),z=s("",4),U=n("div",{className:"run-code"},"▶ Run Code",-1),W=s("",5),L=n("div",{className:"run-code"},"▶ Run Code",-1),O=s("",4),H=n("div",{className:"run-code"},"▶ Run Code",-1),$=s("",5),M=n("div",{className:"run-code"},"▶ Run Code",-1),Q=s("",4),J=n("div",{className:"run-code"},"▶ Run Code",-1),Y=s("",4),K=n("div",{className:"run-code"},"▶ Run Code",-1),X=s("",4),Z=n("div",{className:"run-code"},"▶ Run Code",-1),ss=s("",4),ns=n("div",{className:"run-code"},"▶ Run Code",-1),as=s("",5),ls=n("div",{className:"run-code"},"▶ Run Code",-1),ps=s("",4),es=n("div",{className:"run-code"},"▶ Run Code",-1),os=s("",4),rs=n("div",{className:"run-code"},"▶ Run Code",-1),cs=s("",4),ts=n("div",{className:"run-code"},"▶ Run Code",-1),Ds=s("",5),ys=n("div",{className:"run-code"},"▶ Run Code",-1),Fs=s("",5),is=n("div",{className:"run-code"},"▶ Run Code",-1),As=s("",4),Cs=n("div",{className:"run-code"},"▶ Run Code",-1),ds=s("",4),us=n("div",{className:"run-code"},"▶ Run Code",-1),bs=s("",4),hs=n("div",{className:"run-code"},"▶ Run Code",-1),ms=s("",4),_s=n("div",{className:"run-code"},"▶ Run Code",-1),gs=s("",4),vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ts=s("",4),Es=n("div",{className:"run-code"},"▶ Run Code",-1),fs=s("",4),Ss=n("div",{className:"run-code"},"▶ Run Code",-1),ws=s("",5),ks=n("div",{className:"run-code"},"▶ Run Code",-1),Ps=s("",4),Ns=n("div",{className:"run-code"},"▶ Run Code",-1),Rs=s("",1),Is=[o,r,c,t,D,y,F,i,A,C,d,u,b,h,m,_,g,v,T,E,f,S,w,k,P,N,R,I,V,j,x,G,q,B,z,U,W,L,O,H,$,M,Q,J,Y,K,X,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,us,bs,hs,ms,_s,gs,vs,Ts,Es,fs,Ss,ws,ks,Ps,Ns,Rs];function Vs(js,xs,Gs,qs,Bs,zs){return p(),l("div",null,Is)}const Ls=a(e,[["render",Vs]]);export{Ws as __pageData,Ls as default};
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const Ws=JSON.parse('{"title":"Instance Property","description":"","frontmatter":{},"headers":[{"level":2,"title":"play","slug":"play","link":"#play","children":[]},{"level":2,"title":"pause","slug":"pause","link":"#pause","children":[]},{"level":2,"title":"toggle","slug":"toggle","link":"#toggle","children":[]},{"level":2,"title":"destroy","slug":"destroy","link":"#destroy","children":[]},{"level":2,"title":"seek","slug":"seek","link":"#seek","children":[]},{"level":2,"title":"forward","slug":"forward","link":"#forward","children":[]},{"level":2,"title":"backward","slug":"backward","link":"#backward","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"switchUrl","slug":"switchurl","link":"#switchurl","children":[]},{"level":2,"title":"switchQuality","slug":"switchquality","link":"#switchquality","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"currentTime","slug":"currenttime","link":"#currenttime","children":[]},{"level":2,"title":"duration","slug":"duration","link":"#duration","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"getDataURL","slug":"getdataurl","link":"#getdataurl","children":[]},{"level":2,"title":"getBlobUrl","slug":"getbloburl","link":"#getbloburl","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"mini","slug":"mini","link":"#mini","children":[]},{"level":2,"title":"playing","slug":"playing","link":"#playing","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"rect","slug":"rect","link":"#rect","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"autoHeight","slug":"autoheight","link":"#autoheight","children":[]},{"level":2,"title":"attr","slug":"attr","link":"#attr","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]},{"level":2,"title":"loaded","slug":"loaded","link":"#loaded","children":[]},{"level":2,"title":"played","slug":"played","link":"#played","children":[]},{"level":2,"title":"proxy","slug":"proxy","link":"#proxy","children":[]},{"level":2,"title":"query","slug":"query","link":"#query","children":[]},{"level":2,"title":"video","slug":"video","link":"#video","children":[]}],"relativePath":"en/advanced/property.md","lastUpdated":1674271220000}'),e={name:"en/advanced/property.md"},o=s("",5),r=n("div",{className:"run-code"},"▶ Run Code",-1),c=s("",4),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s("",4),y=n("div",{className:"run-code"},"▶ Run Code",-1),F=s("",4),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",4),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",4),u=n("div",{className:"run-code"},"▶ Run Code",-1),b=s("",4),h=n("div",{className:"run-code"},"▶ Run Code",-1),m=s("",4),_=n("div",{className:"run-code"},"▶ Run Code",-1),g=s("",4),v=n("div",{className:"run-code"},"▶ Run Code",-1),T=s("",5),E=n("div",{className:"run-code"},"▶ Run Code",-1),f=s("",5),S=n("div",{className:"run-code"},"▶ Run Code",-1),w=s("",4),k=n("div",{className:"run-code"},"▶ Run Code",-1),P=s("",4),x=n("div",{className:"run-code"},"▶ Run Code",-1),N=s("",4),R=n("div",{className:"run-code"},"▶ Run Code",-1),I=s("",5),V=n("div",{className:"run-code"},"▶ Run Code",-1),j=s("",4),G=n("div",{className:"run-code"},"▶ Run Code",-1),q=s("",4),B=n("div",{className:"run-code"},"▶ Run Code",-1),z=s("",4),U=n("div",{className:"run-code"},"▶ Run Code",-1),W=s("",5),L=n("div",{className:"run-code"},"▶ Run Code",-1),O=s("",4),H=n("div",{className:"run-code"},"▶ Run Code",-1),$=s("",5),M=n("div",{className:"run-code"},"▶ Run Code",-1),Q=s("",4),J=n("div",{className:"run-code"},"▶ Run Code",-1),Y=s("",4),K=n("div",{className:"run-code"},"▶ Run Code",-1),X=s("",4),Z=n("div",{className:"run-code"},"▶ Run Code",-1),ss=s("",4),ns=n("div",{className:"run-code"},"▶ Run Code",-1),as=s("",5),ls=n("div",{className:"run-code"},"▶ Run Code",-1),ps=s("",4),es=n("div",{className:"run-code"},"▶ Run Code",-1),os=s("",4),rs=n("div",{className:"run-code"},"▶ Run Code",-1),cs=s("",4),ts=n("div",{className:"run-code"},"▶ Run Code",-1),Ds=s("",5),ys=n("div",{className:"run-code"},"▶ Run Code",-1),Fs=s("",5),is=n("div",{className:"run-code"},"▶ Run Code",-1),As=s("",4),Cs=n("div",{className:"run-code"},"▶ Run Code",-1),ds=s("",4),us=n("div",{className:"run-code"},"▶ Run Code",-1),bs=s("",4),hs=n("div",{className:"run-code"},"▶ Run Code",-1),ms=s("",4),_s=n("div",{className:"run-code"},"▶ Run Code",-1),gs=s("",4),vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ts=s("",4),Es=n("div",{className:"run-code"},"▶ Run Code",-1),fs=s("",4),Ss=n("div",{className:"run-code"},"▶ Run Code",-1),ws=s("",5),ks=n("div",{className:"run-code"},"▶ Run Code",-1),Ps=s("",4),xs=n("div",{className:"run-code"},"▶ Run Code",-1),Ns=s("",1),Rs=[o,r,c,t,D,y,F,i,A,C,d,u,b,h,m,_,g,v,T,E,f,S,w,k,P,x,N,R,I,V,j,G,q,B,z,U,W,L,O,H,$,M,Q,J,Y,K,X,Z,ss,ns,as,ls,ps,es,os,rs,cs,ts,Ds,ys,Fs,is,As,Cs,ds,us,bs,hs,ms,_s,gs,vs,Ts,Es,fs,Ss,ws,ks,Ps,xs,Ns];function Is(Vs,js,Gs,qs,Bs,zs){return p(),l("div",null,Rs)}const Ls=a(e,[["render",Is]]);export{Ws as __pageData,Ls as default};
diff --git a/docs/document/assets/en_index.md.11f3857f.js b/docs/document/assets/en_index.md.5adcaac7.js
similarity index 88%
rename from docs/document/assets/en_index.md.11f3857f.js
rename to docs/document/assets/en_index.md.5adcaac7.js
index 238d63864..4355595aa 100644
--- a/docs/document/assets/en_index.md.11f3857f.js
+++ b/docs/document/assets/en_index.md.5adcaac7.js
@@ -1,16 +1,16 @@
-import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{"title":"Install","description":"","frontmatter":{},"headers":[{"level":2,"title":"Install","slug":"install-1","link":"#install-1","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"Use","slug":"use","link":"#use","children":[]},{"level":2,"title":"Vue.js","slug":"vue-js","link":"#vue-js","children":[]},{"level":2,"title":"React.js","slug":"react-js","link":"#react-js","children":[]},{"level":2,"title":"Syntax hint","slug":"syntax-hint","link":"#syntax-hint","children":[]}],"relativePath":"en/index.md","lastUpdated":1677208560000}'),p={name:"en/index.md"},e=l(`
import Artplayer from'artplayer';
+import{_ as s,c as n,o as a,a as l}from"./app.77a2ba76.js";const C=JSON.parse('{"title":"Install","description":"","frontmatter":{},"headers":[{"level":2,"title":"Install","slug":"install-1","link":"#install-1","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"Use","slug":"use","link":"#use","children":[]},{"level":2,"title":"Vue.js","slug":"vue-js","link":"#vue-js","children":[]},{"level":2,"title":"React.js","slug":"react-js","link":"#react-js","children":[]},{"level":2,"title":"Syntax hint","slug":"syntax-hint","link":"#syntax-hint","children":[]}],"relativePath":"en/index.md","lastUpdated":1677208560000}'),p={name:"en/index.md"},e=l(`
import Artplayer from'artplayer';const art =newArtplayer({container:'.artplayer-app',url:'path/to/video.mp4',});
-
1 2 3 4 5 6
html
<html>
+
1 2 3 4 5 6
html
<html><head><title>ArtPlayer Demo</title><metacharset="UTF-8" />
@@ -25,7 +25,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{
<divclass="artplayer-app"></div></body></html>
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Tip
The size of the player depends on the size of the container, so your container must have a size
<template><divref="artRef"></div></template>
@@ -61,7 +61,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{
},};</script>
-
<template><Artplayer@get-instance="getInstance":option="option":style="style" /></template>
@@ -91,7 +91,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{
},};</script>
-
import{useEffect,useRef}from'react';import Artplayer from'artplayer';exportdefaultfunctionPlayer({option,getInstance,...rest}){
@@ -116,7 +116,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{
return<divref={artRef} {...rest}></div>;}
-
exportdefault{data(){return{/**
@@ -158,4 +158,4 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{
}}}
-
1 2 3 4 5 6 7 8 9 10
`,23),o=[e];function t(r,c,y,F,i,D){return a(),n("div",null,o)}const u=s(p,[["render",t]]);export{C as __pageData,u as default};
+
1 2 3 4 5 6 7 8 9 10
`,23),o=[e];function t(r,c,y,i,F,D){return a(),n("div",null,o)}const u=s(p,[["render",t]]);export{C as __pageData,u as default};
diff --git a/docs/document/assets/en_index.md.11f3857f.lean.js b/docs/document/assets/en_index.md.5adcaac7.lean.js
similarity index 84%
rename from docs/document/assets/en_index.md.11f3857f.lean.js
rename to docs/document/assets/en_index.md.5adcaac7.lean.js
index a420640e5..55ab61c47 100644
--- a/docs/document/assets/en_index.md.11f3857f.lean.js
+++ b/docs/document/assets/en_index.md.5adcaac7.lean.js
@@ -1 +1 @@
-import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{"title":"Install","description":"","frontmatter":{},"headers":[{"level":2,"title":"Install","slug":"install-1","link":"#install-1","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"Use","slug":"use","link":"#use","children":[]},{"level":2,"title":"Vue.js","slug":"vue-js","link":"#vue-js","children":[]},{"level":2,"title":"React.js","slug":"react-js","link":"#react-js","children":[]},{"level":2,"title":"Syntax hint","slug":"syntax-hint","link":"#syntax-hint","children":[]}],"relativePath":"en/index.md","lastUpdated":1677208560000}'),p={name:"en/index.md"},e=l("",23),o=[e];function t(r,c,y,F,i,D){return a(),n("div",null,o)}const u=s(p,[["render",t]]);export{C as __pageData,u as default};
+import{_ as s,c as n,o as a,a as l}from"./app.77a2ba76.js";const C=JSON.parse('{"title":"Install","description":"","frontmatter":{},"headers":[{"level":2,"title":"Install","slug":"install-1","link":"#install-1","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"Use","slug":"use","link":"#use","children":[]},{"level":2,"title":"Vue.js","slug":"vue-js","link":"#vue-js","children":[]},{"level":2,"title":"React.js","slug":"react-js","link":"#react-js","children":[]},{"level":2,"title":"Syntax hint","slug":"syntax-hint","link":"#syntax-hint","children":[]}],"relativePath":"en/index.md","lastUpdated":1677208560000}'),p={name:"en/index.md"},e=l("",23),o=[e];function t(r,c,y,i,F,D){return a(),n("div",null,o)}const u=s(p,[["render",t]]);export{C as __pageData,u as default};
diff --git a/docs/document/assets/en_library_dash.md.2e03e995.js b/docs/document/assets/en_library_dash.md.6cfbdbae.js
similarity index 91%
rename from docs/document/assets/en_library_dash.md.2e03e995.js
rename to docs/document/assets/en_library_dash.md.6cfbdbae.js
index 4fd6f8199..f64a64717 100644
--- a/docs/document/assets/en_library_dash.md.2e03e995.js
+++ b/docs/document/assets/en_library_dash.md.6cfbdbae.js
@@ -1,4 +1,4 @@
-import{_ as n,c as l,o as p,b as s,d as a,a as o}from"./app.ad61275b.js";const m=JSON.parse('{"title":"dash.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/dash.md","lastUpdated":1676696783000}'),e={name:"en/library/dash.md"},r=s("h1",{id:"dash-js",tabindex:"-1"},[a("dash.js "),s("a",{class:"header-anchor",href:"#dash-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[a("👉 "),s("a",{href:"https://github.com/Dash-Industry-Forum/dash.js",target:"_blank",rel:"noreferrer"},"https://github.com/Dash-Industry-Forum/dash.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/dashjs/4.5.2/dash.all.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayMpd(video,url,art){
+import{_ as n,c as l,o as p,b as s,d as a,a as o}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"dash.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/dash.md","lastUpdated":1676696783000}'),e={name:"en/library/dash.md"},r=s("h1",{id:"dash-js",tabindex:"-1"},[a("dash.js "),s("a",{class:"header-anchor",href:"#dash-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[a("👉 "),s("a",{href:"https://github.com/Dash-Industry-Forum/dash.js",target:"_blank",rel:"noreferrer"},"https://github.com/Dash-Industry-Forum/dash.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/dashjs/4.5.2/dash.all.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayMpd(video,url,art){if (dashjs.supportsMediaSource()) {constdash=dashjs.MediaPlayer().create();dash.initialize(video,url,art.option.autoplay);
@@ -24,4 +24,4 @@ import{_ as n,c as l,o as p,b as s,d as a,a as o}from"./app.ad61275b.js";const m
art.on('ready',()=>{console.info(art.dash);});
-
`,1),y=[r,t,c,F];function D(i,A,C,d,b,h){return p(),l("div",null,y)}const _=n(e,[["render",D]]);export{m as __pageData,_ as default};
diff --git a/docs/document/assets/en_library_dash.md.2e03e995.lean.js b/docs/document/assets/en_library_dash.md.6cfbdbae.lean.js
similarity index 77%
rename from docs/document/assets/en_library_dash.md.2e03e995.lean.js
rename to docs/document/assets/en_library_dash.md.6cfbdbae.lean.js
index 0606822b2..050b04565 100644
--- a/docs/document/assets/en_library_dash.md.2e03e995.lean.js
+++ b/docs/document/assets/en_library_dash.md.6cfbdbae.lean.js
@@ -1 +1 @@
-import{_ as n,c as l,o as p,b as s,d as a,a as o}from"./app.ad61275b.js";const m=JSON.parse('{"title":"dash.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/dash.md","lastUpdated":1676696783000}'),e={name:"en/library/dash.md"},r=s("h1",{id:"dash-js",tabindex:"-1"},[a("dash.js "),s("a",{class:"header-anchor",href:"#dash-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[a("👉 "),s("a",{href:"https://github.com/Dash-Industry-Forum/dash.js",target:"_blank",rel:"noreferrer"},"https://github.com/Dash-Industry-Forum/dash.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/dashjs/4.5.2/dash.all.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(A,i,C,d,b,h){return p(),l("div",null,y)}const _=n(e,[["render",D]]);export{m as __pageData,_ as default};
+import{_ as n,c as l,o as p,b as s,d as a,a as o}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"dash.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/dash.md","lastUpdated":1676696783000}'),e={name:"en/library/dash.md"},r=s("h1",{id:"dash-js",tabindex:"-1"},[a("dash.js "),s("a",{class:"header-anchor",href:"#dash-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[a("👉 "),s("a",{href:"https://github.com/Dash-Industry-Forum/dash.js",target:"_blank",rel:"noreferrer"},"https://github.com/Dash-Industry-Forum/dash.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/dashjs/4.5.2/dash.all.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(i,A,C,d,b,h){return p(),l("div",null,y)}const _=n(e,[["render",D]]);export{m as __pageData,_ as default};
diff --git a/docs/document/assets/en_library_flv.md.0171239d.js b/docs/document/assets/en_library_flv.md.834c8dfb.js
similarity index 92%
rename from docs/document/assets/en_library_flv.md.0171239d.js
rename to docs/document/assets/en_library_flv.md.834c8dfb.js
index 5299916ac..7ed7f250b 100644
--- a/docs/document/assets/en_library_flv.md.0171239d.js
+++ b/docs/document/assets/en_library_flv.md.834c8dfb.js
@@ -1,4 +1,4 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const f=JSON.parse('{"title":"flv.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/flv.md","lastUpdated":1673692792000}'),e={name:"en/library/flv.md"},r=s("h1",{id:"flv-js",tabindex:"-1"},[n("flv.js "),s("a",{class:"header-anchor",href:"#flv-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/Bilibili/flv.js",target:"_blank",rel:"noreferrer"},"https://github.com/Bilibili/flv.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.6.2/flv.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayFlv(video,url,art){
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const f=JSON.parse('{"title":"flv.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/flv.md","lastUpdated":1673692792000}'),e={name:"en/library/flv.md"},r=s("h1",{id:"flv-js",tabindex:"-1"},[n("flv.js "),s("a",{class:"header-anchor",href:"#flv-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/Bilibili/flv.js",target:"_blank",rel:"noreferrer"},"https://github.com/Bilibili/flv.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.6.2/flv.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayFlv(video,url,art){if (flvjs.isSupported()) {constflv=flvjs.createPlayer({ type:'flv',url});flv.attachMediaElement(video);
diff --git a/docs/document/assets/en_library_flv.md.0171239d.lean.js b/docs/document/assets/en_library_flv.md.834c8dfb.lean.js
similarity index 84%
rename from docs/document/assets/en_library_flv.md.0171239d.lean.js
rename to docs/document/assets/en_library_flv.md.834c8dfb.lean.js
index 01a970821..4c9b05bef 100644
--- a/docs/document/assets/en_library_flv.md.0171239d.lean.js
+++ b/docs/document/assets/en_library_flv.md.834c8dfb.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const f=JSON.parse('{"title":"flv.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/flv.md","lastUpdated":1673692792000}'),e={name:"en/library/flv.md"},r=s("h1",{id:"flv-js",tabindex:"-1"},[n("flv.js "),s("a",{class:"header-anchor",href:"#flv-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/Bilibili/flv.js",target:"_blank",rel:"noreferrer"},"https://github.com/Bilibili/flv.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.6.2/flv.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(i,A,C,b,d,u){return p(),l("div",null,y)}const h=a(e,[["render",D]]);export{f as __pageData,h as default};
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const f=JSON.parse('{"title":"flv.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/flv.md","lastUpdated":1673692792000}'),e={name:"en/library/flv.md"},r=s("h1",{id:"flv-js",tabindex:"-1"},[n("flv.js "),s("a",{class:"header-anchor",href:"#flv-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/Bilibili/flv.js",target:"_blank",rel:"noreferrer"},"https://github.com/Bilibili/flv.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.6.2/flv.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(i,A,C,b,d,u){return p(),l("div",null,y)}const h=a(e,[["render",D]]);export{f as __pageData,h as default};
diff --git a/docs/document/assets/en_library_hls.md.2f42ec93.js b/docs/document/assets/en_library_hls.md.a49e2812.js
similarity index 92%
rename from docs/document/assets/en_library_hls.md.2f42ec93.js
rename to docs/document/assets/en_library_hls.md.a49e2812.js
index fdfcaab74..bf6e0ca29 100644
--- a/docs/document/assets/en_library_hls.md.2f42ec93.js
+++ b/docs/document/assets/en_library_hls.md.a49e2812.js
@@ -1,4 +1,4 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const m=JSON.parse('{"title":"hls.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/hls.md","lastUpdated":1673692792000}'),e={name:"en/library/hls.md"},r=s("h1",{id:"hls-js",tabindex:"-1"},[n("hls.js "),s("a",{class:"header-anchor",href:"#hls-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/video-dev/hls.js",target:"_blank",rel:"noreferrer"},"https://github.com/video-dev/hls.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/hls.js/8.0.0-beta.3/hls.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayM3u8(video,url,art){
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"hls.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/hls.md","lastUpdated":1673692792000}'),e={name:"en/library/hls.md"},r=s("h1",{id:"hls-js",tabindex:"-1"},[n("hls.js "),s("a",{class:"header-anchor",href:"#hls-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/video-dev/hls.js",target:"_blank",rel:"noreferrer"},"https://github.com/video-dev/hls.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/hls.js/8.0.0-beta.3/hls.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayM3u8(video,url,art){if (Hls.isSupported()) {consthls=newHls();hls.loadSource(url);
diff --git a/docs/document/assets/en_library_hls.md.2f42ec93.lean.js b/docs/document/assets/en_library_hls.md.a49e2812.lean.js
similarity index 84%
rename from docs/document/assets/en_library_hls.md.2f42ec93.lean.js
rename to docs/document/assets/en_library_hls.md.a49e2812.lean.js
index 232903441..f91a7344d 100644
--- a/docs/document/assets/en_library_hls.md.2f42ec93.lean.js
+++ b/docs/document/assets/en_library_hls.md.a49e2812.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const m=JSON.parse('{"title":"hls.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/hls.md","lastUpdated":1673692792000}'),e={name:"en/library/hls.md"},r=s("h1",{id:"hls-js",tabindex:"-1"},[n("hls.js "),s("a",{class:"header-anchor",href:"#hls-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/video-dev/hls.js",target:"_blank",rel:"noreferrer"},"https://github.com/video-dev/hls.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/hls.js/8.0.0-beta.3/hls.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(i,A,C,b,d,h){return p(),l("div",null,y)}const _=a(e,[["render",D]]);export{m as __pageData,_ as default};
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"hls.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/hls.md","lastUpdated":1673692792000}'),e={name:"en/library/hls.md"},r=s("h1",{id:"hls-js",tabindex:"-1"},[n("hls.js "),s("a",{class:"header-anchor",href:"#hls-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/video-dev/hls.js",target:"_blank",rel:"noreferrer"},"https://github.com/video-dev/hls.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/hls.js/8.0.0-beta.3/hls.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(i,A,C,b,d,h){return p(),l("div",null,y)}const _=a(e,[["render",D]]);export{m as __pageData,_ as default};
diff --git a/docs/document/assets/en_library_webtorrent.md.98befbfc.js b/docs/document/assets/en_library_webtorrent.md.ea918503.js
similarity index 92%
rename from docs/document/assets/en_library_webtorrent.md.98befbfc.js
rename to docs/document/assets/en_library_webtorrent.md.ea918503.js
index 693b79ff8..afdba1c6f 100644
--- a/docs/document/assets/en_library_webtorrent.md.98befbfc.js
+++ b/docs/document/assets/en_library_webtorrent.md.ea918503.js
@@ -1,4 +1,4 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const h=JSON.parse('{"title":"webtorrent.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/webtorrent.md","lastUpdated":1676820444000}'),e={name:"en/library/webtorrent.md"},r=s("h1",{id:"webtorrent-js",tabindex:"-1"},[n("webtorrent.js "),s("a",{class:"header-anchor",href:"#webtorrent-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/webtorrent/webtorrent",target:"_blank",rel:"noreferrer"},"https://github.com/webtorrent/webtorrent")],-1),c=s("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/webtorrent@2.0.13/index.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayTorrent(video,url,art){
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const h=JSON.parse('{"title":"webtorrent.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/webtorrent.md","lastUpdated":1676820444000}'),e={name:"en/library/webtorrent.md"},r=s("h1",{id:"webtorrent-js",tabindex:"-1"},[n("webtorrent.js "),s("a",{class:"header-anchor",href:"#webtorrent-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/webtorrent/webtorrent",target:"_blank",rel:"noreferrer"},"https://github.com/webtorrent/webtorrent")],-1),c=s("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/webtorrent@2.0.13/index.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayTorrent(video,url,art){consttorrent=newWebTorrent();torrent.add(url,function(torrent){varfile=torrent.files[0];
@@ -26,4 +26,4 @@ import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const h
art.video.controls=false;console.info(art.torrent);});
-
`,1),y=[r,t,c,F];function D(A,i,C,b,d,m){return p(),l("div",null,y)}const _=a(e,[["render",D]]);export{h as __pageData,_ as default};
diff --git a/docs/document/assets/en_library_webtorrent.md.98befbfc.lean.js b/docs/document/assets/en_library_webtorrent.md.ea918503.lean.js
similarity index 77%
rename from docs/document/assets/en_library_webtorrent.md.98befbfc.lean.js
rename to docs/document/assets/en_library_webtorrent.md.ea918503.lean.js
index cd3de875f..70a007261 100644
--- a/docs/document/assets/en_library_webtorrent.md.98befbfc.lean.js
+++ b/docs/document/assets/en_library_webtorrent.md.ea918503.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const h=JSON.parse('{"title":"webtorrent.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/webtorrent.md","lastUpdated":1676820444000}'),e={name:"en/library/webtorrent.md"},r=s("h1",{id:"webtorrent-js",tabindex:"-1"},[n("webtorrent.js "),s("a",{class:"header-anchor",href:"#webtorrent-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/webtorrent/webtorrent",target:"_blank",rel:"noreferrer"},"https://github.com/webtorrent/webtorrent")],-1),c=s("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/webtorrent@2.0.13/index.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(A,i,C,b,d,u){return p(),l("div",null,y)}const _=a(e,[["render",D]]);export{h as __pageData,_ as default};
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const h=JSON.parse('{"title":"webtorrent.js","description":"","frontmatter":{},"headers":[],"relativePath":"en/library/webtorrent.md","lastUpdated":1676820444000}'),e={name:"en/library/webtorrent.md"},r=s("h1",{id:"webtorrent-js",tabindex:"-1"},[n("webtorrent.js "),s("a",{class:"header-anchor",href:"#webtorrent-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/webtorrent/webtorrent",target:"_blank",rel:"noreferrer"},"https://github.com/webtorrent/webtorrent")],-1),c=s("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/webtorrent@2.0.13/index.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(A,i,C,b,d,m){return p(),l("div",null,y)}const _=a(e,[["render",D]]);export{h as __pageData,_ as default};
diff --git a/docs/document/assets/en_plugin_ads.md.9d743778.js b/docs/document/assets/en_plugin_ads.md.77060a62.js
similarity index 82%
rename from docs/document/assets/en_plugin_ads.md.9d743778.js
rename to docs/document/assets/en_plugin_ads.md.77060a62.js
index 0481d90dd..3ec6dc662 100644
--- a/docs/document/assets/en_plugin_ads.md.9d743778.js
+++ b/docs/document/assets/en_plugin_ads.md.77060a62.js
@@ -1,10 +1,10 @@
-import{_ as a,c as n,o as l,a as s,b as p}from"./app.ad61275b.js";const u=JSON.parse('{"title":"视频广告","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]}],"relativePath":"en/plugin/ads.md","lastUpdated":1673692792000}'),e={name:"en/plugin/ads.md"},o=s(`
`,8),r=p("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-ads/index.js"}," ▶ Run Code ",-1),c=s(`
js
var art =newArtplayer({
+import{_ as a,c as n,o as l,a as s,b as p}from"./app.77a2ba76.js";const u=JSON.parse('{"title":"视频广告","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]}],"relativePath":"en/plugin/ads.md","lastUpdated":1673692792000}'),e={name:"en/plugin/ads.md"},o=s(`
`,8),r=p("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-ads/index.js"}," ▶ Run Code ",-1),t=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoSize:true,
@@ -52,4 +52,4 @@ import{_ as a,c as n,o as l,a as s,b as p}from"./app.ad61275b.js";const u=JSON.p
art.on('artplayerPluginAds:skip',(ads)=>{console.info(ads);});
-
`,1),c=[o,r,t];function i(D,y,F,d,C,b){return l(),n("div",null,c)}const m=a(e,[["render",i]]);export{u as __pageData,m as default};
diff --git a/docs/document/assets/en_plugin_ads.md.9d743778.lean.js b/docs/document/assets/en_plugin_ads.md.77060a62.lean.js
similarity index 76%
rename from docs/document/assets/en_plugin_ads.md.9d743778.lean.js
rename to docs/document/assets/en_plugin_ads.md.77060a62.lean.js
index 05cc4e26e..40a372e55 100644
--- a/docs/document/assets/en_plugin_ads.md.9d743778.lean.js
+++ b/docs/document/assets/en_plugin_ads.md.77060a62.lean.js
@@ -1 +1 @@
-import{_ as a,c as n,o as l,a as s,b as p}from"./app.ad61275b.js";const u=JSON.parse('{"title":"视频广告","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]}],"relativePath":"en/plugin/ads.md","lastUpdated":1673692792000}'),e={name:"en/plugin/ads.md"},o=s("",8),r=p("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-ads/index.js"}," ▶ Run Code ",-1),c=s("",1),t=[o,r,c];function i(y,D,F,d,C,b){return l(),n("div",null,t)}const m=a(e,[["render",i]]);export{u as __pageData,m as default};
+import{_ as a,c as n,o as l,a as s,b as p}from"./app.77a2ba76.js";const u=JSON.parse('{"title":"视频广告","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]}],"relativePath":"en/plugin/ads.md","lastUpdated":1673692792000}'),e={name:"en/plugin/ads.md"},o=s("",8),r=p("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-ads/index.js"}," ▶ Run Code ",-1),t=s("",1),c=[o,r,t];function i(D,y,F,d,C,b){return l(),n("div",null,c)}const m=a(e,[["render",i]]);export{u as __pageData,m as default};
diff --git a/docs/document/assets/en_plugin_control-ui.md.fb9d06e2.js b/docs/document/assets/en_plugin_control-ui.md.5b1a0268.js
similarity index 76%
rename from docs/document/assets/en_plugin_control-ui.md.fb9d06e2.js
rename to docs/document/assets/en_plugin_control-ui.md.5b1a0268.js
index ade43dd95..b8b17ab67 100644
--- a/docs/document/assets/en_plugin_control-ui.md.fb9d06e2.js
+++ b/docs/document/assets/en_plugin_control-ui.md.5b1a0268.js
@@ -1,10 +1,10 @@
-import{_ as n,c as l,o as p,a as s,b as a}from"./app.ad61275b.js";const h=JSON.parse('{"title":"控制器皮肤","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"enable","slug":"enable","link":"#enable","children":[]}],"relativePath":"en/plugin/control-ui.md","lastUpdated":1673692792000}'),e={name:"en/plugin/control-ui.md"},o=s(`
`,8),r=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),t=s(`
js
var art =newArtplayer({
+import{_ as n,c as l,o as p,a as s,b as a}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"控制器皮肤","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"enable","slug":"enable","link":"#enable","children":[]}],"relativePath":"en/plugin/control-ui.md","lastUpdated":1673692792000}'),e={name:"en/plugin/control-ui.md"},o=s(`
`,8),r=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),t=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreen:true,
@@ -13,7 +13,7 @@ import{_ as n,c as l,o as p,a as s,b as a}from"./app.ad61275b.js";const h=JSON.p
artplayerPluginControl(), ],});
-
`,4),c=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),i=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreen:true,
@@ -32,4 +32,4 @@ import{_ as n,c as l,o as p,a as s,b as a}from"./app.ad61275b.js";const h=JSON.p
artplayerPluginControl(), ],});
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
`,1),y=[o,r,t,c,i];function D(F,d,C,u,b,A){return p(),l("div",null,y)}const g=n(e,[["render",D]]);export{h as __pageData,g as default};
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
`,1),y=[o,r,t,c,i];function D(d,F,C,b,u,A){return p(),l("div",null,y)}const g=n(e,[["render",D]]);export{m as __pageData,g as default};
diff --git a/docs/document/assets/en_plugin_control-ui.md.fb9d06e2.lean.js b/docs/document/assets/en_plugin_control-ui.md.5b1a0268.lean.js
similarity index 75%
rename from docs/document/assets/en_plugin_control-ui.md.fb9d06e2.lean.js
rename to docs/document/assets/en_plugin_control-ui.md.5b1a0268.lean.js
index ae2c5a38c..d2630f12c 100644
--- a/docs/document/assets/en_plugin_control-ui.md.fb9d06e2.lean.js
+++ b/docs/document/assets/en_plugin_control-ui.md.5b1a0268.lean.js
@@ -1 +1 @@
-import{_ as n,c as l,o as p,a as s,b as a}from"./app.ad61275b.js";const h=JSON.parse('{"title":"控制器皮肤","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"enable","slug":"enable","link":"#enable","children":[]}],"relativePath":"en/plugin/control-ui.md","lastUpdated":1673692792000}'),e={name:"en/plugin/control-ui.md"},o=s("",8),r=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),t=s("",4),c=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),i=s("",1),y=[o,r,t,c,i];function D(F,d,C,u,b,A){return p(),l("div",null,y)}const g=n(e,[["render",D]]);export{h as __pageData,g as default};
+import{_ as n,c as l,o as p,a as s,b as a}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"控制器皮肤","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"enable","slug":"enable","link":"#enable","children":[]}],"relativePath":"en/plugin/control-ui.md","lastUpdated":1673692792000}'),e={name:"en/plugin/control-ui.md"},o=s("",8),r=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),t=s("",4),c=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),i=s("",1),y=[o,r,t,c,i];function D(d,F,C,b,u,A){return p(),l("div",null,y)}const g=n(e,[["render",D]]);export{m as __pageData,g as default};
diff --git a/docs/document/assets/en_plugin_dash-quality.md.1e60b52d.js b/docs/document/assets/en_plugin_dash-quality.md.1e60b52d.js
new file mode 100644
index 000000000..e01fc42b5
--- /dev/null
+++ b/docs/document/assets/en_plugin_dash-quality.md.1e60b52d.js
@@ -0,0 +1,7 @@
+import{_ as a,c as s,o as e,a as n}from"./app.77a2ba76.js";const y=JSON.parse('{"title":"Dash 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"en/plugin/dash-quality.md","lastUpdated":1676696783000}'),l={name:"en/plugin/dash-quality.md"},p=n(`
`,7),t=[p];function i(r,d,o,c,h,u){return e(),s("div",null,t)}const m=a(l,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/en_plugin_dash-quality.md.dd58ef1f.lean.js b/docs/document/assets/en_plugin_dash-quality.md.1e60b52d.lean.js
similarity index 58%
rename from docs/document/assets/en_plugin_dash-quality.md.dd58ef1f.lean.js
rename to docs/document/assets/en_plugin_dash-quality.md.1e60b52d.lean.js
index f25da5349..f41ba6380 100644
--- a/docs/document/assets/en_plugin_dash-quality.md.dd58ef1f.lean.js
+++ b/docs/document/assets/en_plugin_dash-quality.md.1e60b52d.lean.js
@@ -1 +1 @@
-import{_ as a,c as s,o as e,a as l}from"./app.ad61275b.js";const y=JSON.parse('{"title":"Dash 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"en/plugin/dash-quality.md","lastUpdated":1676696783000}'),n={name:"en/plugin/dash-quality.md"},p=l("",7),t=[p];function i(r,o,d,c,u,h){return e(),s("div",null,t)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
+import{_ as a,c as s,o as e,a as n}from"./app.77a2ba76.js";const y=JSON.parse('{"title":"Dash 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"en/plugin/dash-quality.md","lastUpdated":1676696783000}'),l={name:"en/plugin/dash-quality.md"},p=n("",7),t=[p];function i(r,d,o,c,h,u){return e(),s("div",null,t)}const m=a(l,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/en_plugin_dash-quality.md.dd58ef1f.js b/docs/document/assets/en_plugin_dash-quality.md.dd58ef1f.js
deleted file mode 100644
index 94c01e617..000000000
--- a/docs/document/assets/en_plugin_dash-quality.md.dd58ef1f.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import{_ as a,c as s,o as e,a as l}from"./app.ad61275b.js";const y=JSON.parse('{"title":"Dash 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"en/plugin/dash-quality.md","lastUpdated":1676696783000}'),n={name:"en/plugin/dash-quality.md"},p=l(`
`,7),t=[p];function i(r,o,d,c,u,h){return e(),s("div",null,t)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/en_plugin_hls-quality.md.393144b1.js b/docs/document/assets/en_plugin_hls-quality.md.393144b1.js
new file mode 100644
index 000000000..208aea308
--- /dev/null
+++ b/docs/document/assets/en_plugin_hls-quality.md.393144b1.js
@@ -0,0 +1,7 @@
+import{_ as a,c as s,o as e,a as l}from"./app.77a2ba76.js";const y=JSON.parse('{"title":"HLS 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"en/plugin/hls-quality.md","lastUpdated":1673692792000}'),n={name:"en/plugin/hls-quality.md"},p=l(`
`,7),t=[p];function i(r,o,c,d,h,u){return e(),s("div",null,t)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/en_plugin_hls-quality.md.ee8f1871.lean.js b/docs/document/assets/en_plugin_hls-quality.md.393144b1.lean.js
similarity index 68%
rename from docs/document/assets/en_plugin_hls-quality.md.ee8f1871.lean.js
rename to docs/document/assets/en_plugin_hls-quality.md.393144b1.lean.js
index c34ae9190..56f703150 100644
--- a/docs/document/assets/en_plugin_hls-quality.md.ee8f1871.lean.js
+++ b/docs/document/assets/en_plugin_hls-quality.md.393144b1.lean.js
@@ -1 +1 @@
-import{_ as a,c as s,o as l,a as e}from"./app.ad61275b.js";const y=JSON.parse('{"title":"HLS 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"en/plugin/hls-quality.md","lastUpdated":1673692792000}'),n={name:"en/plugin/hls-quality.md"},p=e("",7),t=[p];function i(r,o,c,d,u,h){return l(),s("div",null,t)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
+import{_ as a,c as s,o as e,a as l}from"./app.77a2ba76.js";const y=JSON.parse('{"title":"HLS 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"en/plugin/hls-quality.md","lastUpdated":1673692792000}'),n={name:"en/plugin/hls-quality.md"},p=l("",7),t=[p];function i(r,o,c,d,h,u){return e(),s("div",null,t)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/en_plugin_hls-quality.md.ee8f1871.js b/docs/document/assets/en_plugin_hls-quality.md.ee8f1871.js
deleted file mode 100644
index 8e4043e74..000000000
--- a/docs/document/assets/en_plugin_hls-quality.md.ee8f1871.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import{_ as a,c as s,o as l,a as e}from"./app.ad61275b.js";const y=JSON.parse('{"title":"HLS 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"en/plugin/hls-quality.md","lastUpdated":1673692792000}'),n={name:"en/plugin/hls-quality.md"},p=e(`
`,7),t=[p];function i(r,o,c,d,u,h){return l(),s("div",null,t)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/en_plugin_iframe.md.27b16170.js b/docs/document/assets/en_plugin_iframe.md.59ae4049.js
similarity index 90%
rename from docs/document/assets/en_plugin_iframe.md.27b16170.js
rename to docs/document/assets/en_plugin_iframe.md.59ae4049.js
index 8c3a09fe9..94d105611 100644
--- a/docs/document/assets/en_plugin_iframe.md.27b16170.js
+++ b/docs/document/assets/en_plugin_iframe.md.59ae4049.js
@@ -1,10 +1,10 @@
-import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{"title":"Iframe 控制","description":"","frontmatter":{},"headers":[{"level":2,"title":"说明","slug":"说明","link":"#说明","children":[]},{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"index.html 接口","slug":"index-html-接口","link":"#index-html-接口","children":[{"level":3,"title":"commit","slug":"commit","link":"#commit","children":[]},{"level":3,"title":"message","slug":"message","link":"#message","children":[]},{"level":3,"title":"destroy","slug":"destroy","link":"#destroy","children":[]}]},{"level":2,"title":"iframe.html 接口","slug":"iframe-html-接口","link":"#iframe-html-接口","children":[{"level":3,"title":"inject","slug":"inject","link":"#inject","children":[]},{"level":3,"title":"postMessage","slug":"postmessage","link":"#postmessage","children":[]}]},{"level":2,"title":"例子","slug":"例子","link":"#例子","children":[]}],"relativePath":"en/plugin/iframe.md","lastUpdated":1673692792000}'),p={name:"en/plugin/iframe.md"},e=l(`
<!DOCTYPEhtml>
+import{_ as s,c as n,o as a,a as l}from"./app.77a2ba76.js";const b=JSON.parse('{"title":"Iframe 控制","description":"","frontmatter":{},"headers":[{"level":2,"title":"说明","slug":"说明","link":"#说明","children":[]},{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"index.html 接口","slug":"index-html-接口","link":"#index-html-接口","children":[{"level":3,"title":"commit","slug":"commit","link":"#commit","children":[]},{"level":3,"title":"message","slug":"message","link":"#message","children":[]},{"level":3,"title":"destroy","slug":"destroy","link":"#destroy","children":[]}]},{"level":2,"title":"iframe.html 接口","slug":"iframe-html-接口","link":"#iframe-html-接口","children":[{"level":3,"title":"inject","slug":"inject","link":"#inject","children":[]},{"level":3,"title":"postMessage","slug":"postmessage","link":"#postmessage","children":[]}]},{"level":2,"title":"例子","slug":"例子","link":"#例子","children":[]}],"relativePath":"en/plugin/iframe.md","lastUpdated":1673692792000}'),p={name:"en/plugin/iframe.md"},e=l(`
<!DOCTYPEhtml><html><head><title>ArtPlayer</title>
@@ -31,7 +31,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{
</script></body></html>
-
<!DOCTYPEhtml><html><head><title>ArtPlayer</title>
@@ -56,7 +56,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{
</script></body></html>
-
iframe.commit(()=>{varart=newArtplayer({ container:'.artplayer-app', url:'path/to/video.mp4',
@@ -81,12 +81,12 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{
},1000);});})();
-
iframe.message((event)=>{console.info(event);});
@@ -96,7 +96,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{
data:art.currentTime,});});
-
`,32),o=[e];function r(t,c,F,D,y,i){return a(),n("div",null,o)}const A=s(p,[["render",r]]);export{b as __pageData,A as default};
diff --git a/docs/document/assets/en_plugin_iframe.md.27b16170.lean.js b/docs/document/assets/en_plugin_iframe.md.59ae4049.lean.js
similarity index 83%
rename from docs/document/assets/en_plugin_iframe.md.27b16170.lean.js
rename to docs/document/assets/en_plugin_iframe.md.59ae4049.lean.js
index 147812a0c..a8a398da5 100644
--- a/docs/document/assets/en_plugin_iframe.md.27b16170.lean.js
+++ b/docs/document/assets/en_plugin_iframe.md.59ae4049.lean.js
@@ -1 +1 @@
-import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{"title":"Iframe 控制","description":"","frontmatter":{},"headers":[{"level":2,"title":"说明","slug":"说明","link":"#说明","children":[]},{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"index.html 接口","slug":"index-html-接口","link":"#index-html-接口","children":[{"level":3,"title":"commit","slug":"commit","link":"#commit","children":[]},{"level":3,"title":"message","slug":"message","link":"#message","children":[]},{"level":3,"title":"destroy","slug":"destroy","link":"#destroy","children":[]}]},{"level":2,"title":"iframe.html 接口","slug":"iframe-html-接口","link":"#iframe-html-接口","children":[{"level":3,"title":"inject","slug":"inject","link":"#inject","children":[]},{"level":3,"title":"postMessage","slug":"postmessage","link":"#postmessage","children":[]}]},{"level":2,"title":"例子","slug":"例子","link":"#例子","children":[]}],"relativePath":"en/plugin/iframe.md","lastUpdated":1673692792000}'),p={name:"en/plugin/iframe.md"},e=l("",32),o=[e];function r(t,c,F,D,y,i){return a(),n("div",null,o)}const b=s(p,[["render",r]]);export{A as __pageData,b as default};
+import{_ as s,c as n,o as a,a as l}from"./app.77a2ba76.js";const b=JSON.parse('{"title":"Iframe 控制","description":"","frontmatter":{},"headers":[{"level":2,"title":"说明","slug":"说明","link":"#说明","children":[]},{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"index.html 接口","slug":"index-html-接口","link":"#index-html-接口","children":[{"level":3,"title":"commit","slug":"commit","link":"#commit","children":[]},{"level":3,"title":"message","slug":"message","link":"#message","children":[]},{"level":3,"title":"destroy","slug":"destroy","link":"#destroy","children":[]}]},{"level":2,"title":"iframe.html 接口","slug":"iframe-html-接口","link":"#iframe-html-接口","children":[{"level":3,"title":"inject","slug":"inject","link":"#inject","children":[]},{"level":3,"title":"postMessage","slug":"postmessage","link":"#postmessage","children":[]}]},{"level":2,"title":"例子","slug":"例子","link":"#例子","children":[]}],"relativePath":"en/plugin/iframe.md","lastUpdated":1673692792000}'),p={name:"en/plugin/iframe.md"},e=l("",32),o=[e];function r(t,c,F,D,y,i){return a(),n("div",null,o)}const A=s(p,[["render",r]]);export{b as __pageData,A as default};
diff --git a/docs/document/assets/en_start_component.md.a8553ba9.js b/docs/document/assets/en_start_component.md.bd02e1ef.js
similarity index 94%
rename from docs/document/assets/en_start_component.md.a8553ba9.js
rename to docs/document/assets/en_start_component.md.bd02e1ef.js
index a60d3702e..ff078b8ca 100644
--- a/docs/document/assets/en_start_component.md.a8553ba9.js
+++ b/docs/document/assets/en_start_component.md.bd02e1ef.js
@@ -1,4 +1,4 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.parse('{"title":"Component","description":"","frontmatter":{},"headers":[{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]}],"relativePath":"en/start/component.md","lastUpdated":1674028264000}'),o={name:"en/start/component.md"},e=s('
Add a layer during instantiation, such as logo or advertisement
',6),t=n("div",{className:"run-code"},"▶ Run Code",-1),c=s(`
js
var img ='/assets/sample/layer.png';
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const T=JSON.parse('{"title":"Component","description":"","frontmatter":{},"headers":[{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]}],"relativePath":"en/start/component.md","lastUpdated":1674028264000}'),o={name:"en/start/component.md"},e=s('
Add a layer during instantiation, such as logo or advertisement
',6),t=n("div",{className:"run-code"},"▶ Run Code",-1),c=s(`
js
var img ='/assets/sample/layer.png';var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',
@@ -23,7 +23,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.p
});console.info(art.layers.potser);
-
`,2),r=n("div",{className:"run-code"},"▶ Run Code",-1),D=s(`
js
var img ='/assets/sample/layer.png';var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',
@@ -47,7 +47,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.p
});console.info(art.layers.potser);
-
position: left and right positions of control controller
selector: Object array of selection list
onSelect: Function triggered when an element of the selection list is clicked
`,4),F=n("div",{className:"run-code"},"▶ Run Code",-1),y=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -90,7 +90,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.p
console.info(art.controls['your-button']);console.info(art.controls.subtitle);
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -113,7 +113,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.p
});console.info(art.controls.button1);
-
`,5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',contextmenu: [
@@ -129,7 +129,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.p
});console.info(art.contextmenu['your-menu']);
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
You can also add a contextmenu after instantiation
`,2),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
You can also add a contextmenu after instantiation
`,2),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
diff --git a/docs/document/assets/en_start_component.md.a8553ba9.lean.js b/docs/document/assets/en_start_component.md.bd02e1ef.lean.js
similarity index 93%
rename from docs/document/assets/en_start_component.md.a8553ba9.lean.js
rename to docs/document/assets/en_start_component.md.bd02e1ef.lean.js
index b7f1c97d2..c0096bfcf 100644
--- a/docs/document/assets/en_start_component.md.a8553ba9.lean.js
+++ b/docs/document/assets/en_start_component.md.bd02e1ef.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.parse('{"title":"Component","description":"","frontmatter":{},"headers":[{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]}],"relativePath":"en/start/component.md","lastUpdated":1674028264000}'),o={name:"en/start/component.md"},e=s("",6),t=n("div",{className:"run-code"},"▶ Run Code",-1),c=s("",2),r=n("div",{className:"run-code"},"▶ Run Code",-1),D=s("",4),F=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",2),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",1),b=[e,t,c,r,D,F,y,i,A,C,d];function h(u,m,g,_,E,f){return p(),l("div",null,b)}const x=a(o,[["render",h]]);export{T as __pageData,x as default};
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const T=JSON.parse('{"title":"Component","description":"","frontmatter":{},"headers":[{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]}],"relativePath":"en/start/component.md","lastUpdated":1674028264000}'),o={name:"en/start/component.md"},e=s("",6),t=n("div",{className:"run-code"},"▶ Run Code",-1),c=s("",2),r=n("div",{className:"run-code"},"▶ Run Code",-1),D=s("",4),F=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",2),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",1),b=[e,t,c,r,D,F,y,i,A,C,d];function h(u,m,g,_,E,f){return p(),l("div",null,b)}const x=a(o,[["render",h]]);export{T as __pageData,x as default};
diff --git a/docs/document/assets/en_start_option.md.b25770ff.js b/docs/document/assets/en_start_option.md.eb3ddacd.js
similarity index 89%
rename from docs/document/assets/en_start_option.md.b25770ff.js
rename to docs/document/assets/en_start_option.md.eb3ddacd.js
index 58f6e2e74..99c34e3ba 100644
--- a/docs/document/assets/en_start_option.md.b25770ff.js
+++ b/docs/document/assets/en_start_option.md.eb3ddacd.js
@@ -1,32 +1,32 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.parse('{"title":"Option","description":"","frontmatter":{},"headers":[{"level":2,"title":"container","slug":"container","link":"#container","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"id","slug":"id","link":"#id","children":[]},{"level":2,"title":"onReady","slug":"onready","link":"#onready","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"isLive","slug":"islive","link":"#islive","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"autoplay","slug":"autoplay","link":"#autoplay","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"autoMini","slug":"automini","link":"#automini","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"mutex","slug":"mutex","link":"#mutex","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"miniProgressBar","slug":"miniprogressbar","link":"#miniprogressbar","children":[]},{"level":2,"title":"useSSR","slug":"usessr","link":"#usessr","children":[]},{"level":2,"title":"playsInline","slug":"playsinline","link":"#playsinline","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"settings","slug":"settings","link":"#settings","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"quality","slug":"quality","link":"#quality","children":[]},{"level":2,"title":"highlight","slug":"highlight","link":"#highlight","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"thumbnails","slug":"thumbnails","link":"#thumbnails","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"moreVideoAttr","slug":"morevideoattr","link":"#morevideoattr","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"customType","slug":"customtype","link":"#customtype","children":[]},{"level":2,"title":"lang","slug":"lang","link":"#lang","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"lock","slug":"lock","link":"#lock","children":[]},{"level":2,"title":"fastForward","slug":"fastforward","link":"#fastforward","children":[]},{"level":2,"title":"autoPlayback","slug":"autoplayback","link":"#autoplayback","children":[]},{"level":2,"title":"autoOrientation","slug":"autoorientation","link":"#autoorientation","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]}],"relativePath":"en/start/option.md","lastUpdated":1675132796000}'),e={name:"en/start/option.md"},o=s('
',4),t=n("div",{className:"run-code"},"▶ Run Code",-1),r=s(`
js
var art =newArtplayer({
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const Dn=JSON.parse('{"title":"Option","description":"","frontmatter":{},"headers":[{"level":2,"title":"container","slug":"container","link":"#container","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"id","slug":"id","link":"#id","children":[]},{"level":2,"title":"onReady","slug":"onready","link":"#onready","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"isLive","slug":"islive","link":"#islive","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"autoplay","slug":"autoplay","link":"#autoplay","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"autoMini","slug":"automini","link":"#automini","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"mutex","slug":"mutex","link":"#mutex","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"miniProgressBar","slug":"miniprogressbar","link":"#miniprogressbar","children":[]},{"level":2,"title":"useSSR","slug":"usessr","link":"#usessr","children":[]},{"level":2,"title":"playsInline","slug":"playsinline","link":"#playsinline","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"settings","slug":"settings","link":"#settings","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"quality","slug":"quality","link":"#quality","children":[]},{"level":2,"title":"highlight","slug":"highlight","link":"#highlight","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"thumbnails","slug":"thumbnails","link":"#thumbnails","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"moreVideoAttr","slug":"morevideoattr","link":"#morevideoattr","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"customType","slug":"customtype","link":"#customtype","children":[]},{"level":2,"title":"lang","slug":"lang","link":"#lang","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"lock","slug":"lock","link":"#lock","children":[]},{"level":2,"title":"fastForward","slug":"fastforward","link":"#fastforward","children":[]},{"level":2,"title":"autoPlayback","slug":"autoplayback","link":"#autoplayback","children":[]},{"level":2,"title":"autoOrientation","slug":"autoorientation","link":"#autoorientation","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]}],"relativePath":"en/start/option.md","lastUpdated":1677226299000}'),e={name:"en/start/option.md"},o=s('
The constructor accepts a function as the second parameter, which is triggered when the player is initialized successfully and the video can be played, just like the ready event
`,4),C=n("div",{className:"run-code"},"▶ Run Code",-1),A=s(`
The constructor accepts a function as the second parameter, which is triggered when the player is initialized successfully and the video can be played, just like the ready event
`,4),C=n("div",{className:"run-code"},"▶ Run Code",-1),A=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',
@@ -36,7 +36,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
this.play()},);
-
1 2 3 4 5 6 7 8 9 10
Equivalent to:
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10
Equivalent to:
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -45,112 +45,112 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
art.on('ready',()=>{art.play();});
-
1 2 3 4 5 6 7 8 9
Tip
The this in the callback function is the player instance, but if the callback function uses the arrow function, the this will not point to the player instance
Video posters will only appear when the player is initialized and not played
`,7),h=n("div",{className:"run-code"},"▶ Run Code",-1),u=s(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9
Tip
The this in the callback function is the player instance, but if the callback function uses the arrow function, the this will not point to the player instance
`,4),k=n("div",{className:"run-code"},"▶ Run Code",-1),x=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoplay:true,muted:true,});
-
1 2 3 4 5 6
Tip
If you want to enter the page by default to automatically play the video, muted must be true. For more information, please read Autoplay Policy Changes
The size of the player will fill the entire container size by default, so black edges often appear. This value can automatically adjust the size of the player to hide the black edges, similar to the object-fit: contain of css
`,5),I=n("div",{className:"run-code"},"▶ Run Code",-1),j=s(`
js
var art =newArtplayer({
+
1 2 3 4 5 6
Tip
If you want to enter the page by default to automatically play the video, muted must be true. For more information, please read Autoplay Policy Changes
The size of the player will fill the entire container size by default, so black edges often appear. This value can automatically adjust the size of the player to hide the black edges, similar to the object-fit: contain of css
`,5),P=n("div",{className:"run-code"},"▶ Run Code",-1),I=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoSize:true,});
-
Subtitle time offset, with the range of [-5s, 5s], appears in the Settings
`,4),ls=n("div",{className:"run-code"},"▶ Run Code",-1),ps=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitleOffset:true,
@@ -159,12 +159,12 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
},setting:true,});
-
Whether to use the SSR mount mode is useful if you want to render the HTML required by the player in advance before the player is mounted
You can access the HTML required by the player through Artplayer.html
`,5),ts=n("div",{className:"run-code"},"▶ Run Code",-1),rs=s(`
js
var $container = document.querySelector('.artplayer-app');$container.innerHTML = Artplayer.html;var art =newArtplayer({
@@ -172,12 +172,12 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
url:'/assets/sample/video.mp4',useSSR:true,});
-
`,4),Ds=n("div",{className:"run-code"},"▶ Run Code",-1),ys=s(`
js
var img ='/assets/sample/layer.png';var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',
@@ -201,7 +201,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
`,5),Fs=n("div",{className:"run-code"},"▶ Run Code",-1),ds=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -236,7 +236,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
`,5),Cs=n("div",{className:"run-code"},"▶ Run Code",-1),As=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',contextmenu: [
@@ -249,7 +249,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
1 2 3 4 5 6 7 8 9 10 11 12 13
Please refer to the following address for Component:
`,5),hs=n("div",{className:"run-code"},"▶ Run Code",-1),us=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -266,7 +266,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
Whether to display the Quality list in the bottom control bar
Property
Type
Describe
default
Boolean
Default quality
html
String
Quality name
url
String
Quality name
`,6),bs=n("div",{className:"run-code"},"▶ Run Code",-1),ms=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',quality: [
@@ -281,7 +281,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
`,5),gs=n("div",{className:"run-code"},"▶ Run Code",-1),_s=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',highlight: [
@@ -307,7 +307,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
`,4),vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ts=s(`
js
functionmyPlugin(art){console.info(art);return{ name:'myPlugin',
@@ -323,14 +323,14 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
url:'/assets/sample/video.mp4',plugins: [myPlugin],});
-
Because different mobile devices have many differences and limitations, sometimes you want to use native functions directly instead of using this player on some mobile devices, you can use this option to control
The whitelist is an array type, which is matched with window.navigator.userAgent respectively. The player will be enabled as long as one of the matches is successful
Support string matching, function matching and regular matching
`,6),fs=n("div",{className:"run-code"},"▶ Run Code",-1),Es=s(`
Because different mobile devices have many differences and limitations, sometimes you want to use native functions directly instead of using this player on some mobile devices, you can use this option to control
The whitelist is an array type, which is matched with window.navigator.userAgent respectively. The player will be enabled as long as one of the matches is successful
Support string matching, function matching and regular matching
`,6),fs=n("div",{className:"run-code"},"▶ Run Code",-1),Es=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',whitelist: [(ua)=>/iPhone/gi.test(ua)],// whitelist: [/iPhone/gi],// whitelist: ['iPhone'],});
-
1 2 3 4 5 6 7
Tip
If this option is not filled in, the player will be used by default
`,6),ws=n("div",{className:"run-code"},"▶ Run Code",-1),Ss=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',thumbnails:{
@@ -339,7 +339,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
column:10,},});
-
Set the subtitle of the video and support the subtitle format: vtt, srt, ass
Property
Type
Describe
url
String
Subtitle url
type
String
Subtitle type: vtt, srt, ass
style
Object
Subtitle style
encoding
String
Subtitle code, Default: utf-8
escape
Boolean
Whether to escape the html tag,Default: true
`,6),ks=n("div",{className:"run-code"},"▶ Run Code",-1),xs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -353,7 +353,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
},},});
-
More video attributes, which will be directly written into the video element
`,4),Ps=n("div",{className:"run-code"},"▶ Run Code",-1),Is=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',moreVideoAttr:{
@@ -361,7 +361,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
playsInline:true,},});
-
It is used to replace the default icon and supports Html String and HTMLElement
`,4),js=n("div",{className:"run-code"},"▶ Run Code",-1),Rs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',icons:{
@@ -369,12 +369,12 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
state:'<img src="/assets/img/state.png">',},});
-
It is used to indicate the format of the video. It needs to be used together with the customType. The default format of the video is the suffix of the video address (such as .m3u8, .mkv, .ts). But sometimes the video address does not have the correct suffix, so it needs to be specially specified
`,5),Ns=n("div",{className:"run-code"},"▶ Run Code",-1),xs=s(`
It is used to indicate the format of the video. It needs to be used together with the customType. The default format of the video is the suffix of the video address (such as .m3u8, .mkv, .ts). But sometimes the video address does not have the correct suffix, so it needs to be specially specified
`,5),Vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ns=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.m3u8',type:'m3u8',});
-
1 2 3 4 5
Identification of suffix
The player can only resolve this suffix: /assets/sample/video.m3u8
However, this suffix cannot be resolved: /assets/sample/video?type=m3u8
So if you use customType, it is better to specify type at the same time
By matching the video's type, the video decoding right is handed over to a third-party program for processing. The processing function can receive three parameters
video : Video DOM element
url : Video url
art : Player instance
`,6),Bs=n("div",{className:"run-code"},"▶ Run Code",-1),zs=s(`
js
var art =newArtplayer({
+
1 2 3 4 5
Identification of suffix
The player can only resolve this suffix: /assets/sample/video.m3u8
However, this suffix cannot be resolved: /assets/sample/video?type=m3u8
So if you use customType, it is better to specify type at the same time
By matching the video's type, the video decoding right is handed over to a third-party program for processing. The processing function can receive three parameters
video : Video DOM element
url : Video url
art : Player instance
`,6),Bs=n("div",{className:"run-code"},"▶ Run Code",-1),zs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.m3u8',customType:{
@@ -383,12 +383,12 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
},},});
-
Customize the i18n configuration, which will be deeply merged with the built-in i18n
Add your language:
`,5),Os=n("div",{className:"run-code"},"▶ Run Code",-1),Ms=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',lang:'your-lang',
@@ -398,7 +398,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
},},});
-
1 2 3 4 5 6 7 8 9 10
Modify existing language:
`,2),Hs=n("div",{className:"run-code"},"▶ Run Code",-1),Ls=s(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10
Modify existing language:
`,2),Hs=n("div",{className:"run-code"},"▶ Run Code",-1),Ls=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',i18n:{
@@ -410,30 +410,30 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
},},});
-
Whether to display the airplay button. Currently, only some browsers support this function
`,4),Zs=n("div",{className:"run-code"},"▶ Run Code",-1),sn=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',airplay:true,});
-
1 2 3 4 5
`,1),nn=[o,t,r,c,i,D,y,F,d,C,A,h,u,b,m,g,_,v,T,f,E,w,S,k,P,I,j,R,V,N,x,B,z,W,q,O,M,H,L,$,Y,Q,U,G,J,K,X,Z,ss,ns,as,ls,ps,es,os,ts,rs,cs,is,Ds,ys,Fs,ds,Cs,As,hs,us,bs,ms,gs,_s,vs,Ts,fs,Es,ws,Ss,ks,Ps,Is,js,Rs,Vs,Ns,xs,Bs,zs,Ws,qs,Os,Ms,Hs,Ls,$s,Ys,Qs,Us,Gs,Js,Ks,Xs,Zs,sn];function an(ln,pn,en,on,tn,rn){return p(),l("div",null,nn)}const yn=a(e,[["render",an]]);export{Dn as __pageData,yn as default};
+
1 2 3 4 5
`,1),nn=[o,t,r,c,i,D,y,F,d,C,A,h,u,b,m,g,_,v,T,f,E,w,S,k,x,P,I,j,R,V,N,B,z,W,q,O,M,H,L,$,Y,Q,U,G,J,K,X,Z,ss,ns,as,ls,ps,es,os,ts,rs,cs,is,Ds,ys,Fs,ds,Cs,As,hs,us,bs,ms,gs,_s,vs,Ts,fs,Es,ws,Ss,ks,xs,Ps,Is,js,Rs,Vs,Ns,Bs,zs,Ws,qs,Os,Ms,Hs,Ls,$s,Ys,Qs,Us,Gs,Js,Ks,Xs,Zs,sn];function an(ln,pn,en,on,tn,rn){return p(),l("div",null,nn)}const yn=a(e,[["render",an]]);export{Dn as __pageData,yn as default};
diff --git a/docs/document/assets/en_start_option.md.b25770ff.lean.js b/docs/document/assets/en_start_option.md.eb3ddacd.lean.js
similarity index 90%
rename from docs/document/assets/en_start_option.md.b25770ff.lean.js
rename to docs/document/assets/en_start_option.md.eb3ddacd.lean.js
index 618e5893f..0de18efa3 100644
--- a/docs/document/assets/en_start_option.md.b25770ff.lean.js
+++ b/docs/document/assets/en_start_option.md.eb3ddacd.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.parse('{"title":"Option","description":"","frontmatter":{},"headers":[{"level":2,"title":"container","slug":"container","link":"#container","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"id","slug":"id","link":"#id","children":[]},{"level":2,"title":"onReady","slug":"onready","link":"#onready","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"isLive","slug":"islive","link":"#islive","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"autoplay","slug":"autoplay","link":"#autoplay","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"autoMini","slug":"automini","link":"#automini","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"mutex","slug":"mutex","link":"#mutex","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"miniProgressBar","slug":"miniprogressbar","link":"#miniprogressbar","children":[]},{"level":2,"title":"useSSR","slug":"usessr","link":"#usessr","children":[]},{"level":2,"title":"playsInline","slug":"playsinline","link":"#playsinline","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"settings","slug":"settings","link":"#settings","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"quality","slug":"quality","link":"#quality","children":[]},{"level":2,"title":"highlight","slug":"highlight","link":"#highlight","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"thumbnails","slug":"thumbnails","link":"#thumbnails","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"moreVideoAttr","slug":"morevideoattr","link":"#morevideoattr","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"customType","slug":"customtype","link":"#customtype","children":[]},{"level":2,"title":"lang","slug":"lang","link":"#lang","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"lock","slug":"lock","link":"#lock","children":[]},{"level":2,"title":"fastForward","slug":"fastforward","link":"#fastforward","children":[]},{"level":2,"title":"autoPlayback","slug":"autoplayback","link":"#autoplayback","children":[]},{"level":2,"title":"autoOrientation","slug":"autoorientation","link":"#autoorientation","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]}],"relativePath":"en/start/option.md","lastUpdated":1675132796000}'),e={name:"en/start/option.md"},o=s("",4),t=n("div",{className:"run-code"},"▶ Run Code",-1),r=s("",9),c=n("div",{className:"run-code"},"▶ Run Code",-1),i=s("",2),D=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),F=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",4),C=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",7),h=n("div",{className:"run-code"},"▶ Run Code",-1),u=s("",4),b=n("div",{className:"run-code"},"▶ Run Code",-1),m=s("",4),g=n("div",{className:"run-code"},"▶ Run Code",-1),_=s("",4),v=n("div",{className:"run-code"},"▶ Run Code",-1),T=s("",5),f=n("div",{className:"run-code"},"▶ Run Code",-1),E=s("",4),w=n("div",{className:"run-code"},"▶ Run Code",-1),S=s("",4),k=n("div",{className:"run-code"},"▶ Run Code",-1),P=s("",5),I=n("div",{className:"run-code"},"▶ Run Code",-1),j=s("",4),R=n("div",{className:"run-code"},"▶ Run Code",-1),V=s("",4),N=n("div",{className:"run-code"},"▶ Run Code",-1),x=s("",4),B=n("div",{className:"run-code"},"▶ Run Code",-1),z=s("",4),W=n("div",{className:"run-code"},"▶ Run Code",-1),q=s("",4),O=n("div",{className:"run-code"},"▶ Run Code",-1),M=s("",4),H=n("div",{className:"run-code"},"▶ Run Code",-1),L=s("",5),$=n("div",{className:"run-code"},"▶ Run Code",-1),Y=s("",4),Q=n("div",{className:"run-code"},"▶ Run Code",-1),U=s("",6),G=n("div",{className:"run-code"},"▶ Run Code",-1),J=s("",4),K=n("div",{className:"run-code"},"▶ Run Code",-1),X=s("",4),Z=n("div",{className:"run-code"},"▶ Run Code",-1),ss=s("",4),ns=n("div",{className:"run-code"},"▶ Run Code",-1),as=s("",4),ls=n("div",{className:"run-code"},"▶ Run Code",-1),ps=s("",4),es=n("div",{className:"run-code"},"▶ Run Code",-1),os=s("",5),ts=n("div",{className:"run-code"},"▶ Run Code",-1),rs=s("",4),cs=n("div",{className:"run-code"},"▶ Run Code",-1),is=s("",4),Ds=n("div",{className:"run-code"},"▶ Run Code",-1),ys=s("",5),Fs=n("div",{className:"run-code"},"▶ Run Code",-1),ds=s("",5),Cs=n("div",{className:"run-code"},"▶ Run Code",-1),As=s("",5),hs=n("div",{className:"run-code"},"▶ Run Code",-1),us=s("",6),bs=n("div",{className:"run-code"},"▶ Run Code",-1),ms=s("",5),gs=n("div",{className:"run-code"},"▶ Run Code",-1),_s=s("",4),vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ts=s("",6),fs=n("div",{className:"run-code"},"▶ Run Code",-1),Es=s("",6),ws=n("div",{className:"run-code"},"▶ Run Code",-1),Ss=s("",6),ks=n("div",{className:"run-code"},"▶ Run Code",-1),Ps=s("",4),Is=n("div",{className:"run-code"},"▶ Run Code",-1),js=s("",4),Rs=n("div",{className:"run-code"},"▶ Run Code",-1),Vs=s("",5),Ns=n("div",{className:"run-code"},"▶ Run Code",-1),xs=s("",6),Bs=n("div",{className:"run-code"},"▶ Run Code",-1),zs=s("",4),Ws=n("div",{className:"run-code"},"▶ Run Code",-1),qs=s("",5),Os=n("div",{className:"run-code"},"▶ Run Code",-1),Ms=s("",2),Hs=n("div",{className:"run-code"},"▶ Run Code",-1),Ls=s("",5),$s=n("div",{className:"run-code"},"▶ Run Code",-1),Ys=s("",4),Qs=n("div",{className:"run-code"},"▶ Run Code",-1),Us=s("",4),Gs=n("div",{className:"run-code"},"▶ Run Code",-1),Js=s("",5),Ks=n("div",{className:"run-code"},"▶ Run Code",-1),Xs=s("",4),Zs=n("div",{className:"run-code"},"▶ Run Code",-1),sn=s("",1),nn=[o,t,r,c,i,D,y,F,d,C,A,h,u,b,m,g,_,v,T,f,E,w,S,k,P,I,j,R,V,N,x,B,z,W,q,O,M,H,L,$,Y,Q,U,G,J,K,X,Z,ss,ns,as,ls,ps,es,os,ts,rs,cs,is,Ds,ys,Fs,ds,Cs,As,hs,us,bs,ms,gs,_s,vs,Ts,fs,Es,ws,Ss,ks,Ps,Is,js,Rs,Vs,Ns,xs,Bs,zs,Ws,qs,Os,Ms,Hs,Ls,$s,Ys,Qs,Us,Gs,Js,Ks,Xs,Zs,sn];function an(ln,pn,en,on,tn,rn){return p(),l("div",null,nn)}const yn=a(e,[["render",an]]);export{Dn as __pageData,yn as default};
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const Dn=JSON.parse('{"title":"Option","description":"","frontmatter":{},"headers":[{"level":2,"title":"container","slug":"container","link":"#container","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"id","slug":"id","link":"#id","children":[]},{"level":2,"title":"onReady","slug":"onready","link":"#onready","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"isLive","slug":"islive","link":"#islive","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"autoplay","slug":"autoplay","link":"#autoplay","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"autoMini","slug":"automini","link":"#automini","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"mutex","slug":"mutex","link":"#mutex","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"miniProgressBar","slug":"miniprogressbar","link":"#miniprogressbar","children":[]},{"level":2,"title":"useSSR","slug":"usessr","link":"#usessr","children":[]},{"level":2,"title":"playsInline","slug":"playsinline","link":"#playsinline","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"settings","slug":"settings","link":"#settings","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"quality","slug":"quality","link":"#quality","children":[]},{"level":2,"title":"highlight","slug":"highlight","link":"#highlight","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"thumbnails","slug":"thumbnails","link":"#thumbnails","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"moreVideoAttr","slug":"morevideoattr","link":"#morevideoattr","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"customType","slug":"customtype","link":"#customtype","children":[]},{"level":2,"title":"lang","slug":"lang","link":"#lang","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"lock","slug":"lock","link":"#lock","children":[]},{"level":2,"title":"fastForward","slug":"fastforward","link":"#fastforward","children":[]},{"level":2,"title":"autoPlayback","slug":"autoplayback","link":"#autoplayback","children":[]},{"level":2,"title":"autoOrientation","slug":"autoorientation","link":"#autoorientation","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]}],"relativePath":"en/start/option.md","lastUpdated":1677226299000}'),e={name:"en/start/option.md"},o=s("",4),t=n("div",{className:"run-code"},"▶ Run Code",-1),r=s("",9),c=n("div",{className:"run-code"},"▶ Run Code",-1),i=s("",2),D=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),F=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",4),C=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",7),h=n("div",{className:"run-code"},"▶ Run Code",-1),u=s("",4),b=n("div",{className:"run-code"},"▶ Run Code",-1),m=s("",4),g=n("div",{className:"run-code"},"▶ Run Code",-1),_=s("",4),v=n("div",{className:"run-code"},"▶ Run Code",-1),T=s("",5),f=n("div",{className:"run-code"},"▶ Run Code",-1),E=s("",4),w=n("div",{className:"run-code"},"▶ Run Code",-1),S=s("",4),k=n("div",{className:"run-code"},"▶ Run Code",-1),x=s("",5),P=n("div",{className:"run-code"},"▶ Run Code",-1),I=s("",4),j=n("div",{className:"run-code"},"▶ Run Code",-1),R=s("",4),V=n("div",{className:"run-code"},"▶ Run Code",-1),N=s("",4),B=n("div",{className:"run-code"},"▶ Run Code",-1),z=s("",4),W=n("div",{className:"run-code"},"▶ Run Code",-1),q=s("",4),O=n("div",{className:"run-code"},"▶ Run Code",-1),M=s("",4),H=n("div",{className:"run-code"},"▶ Run Code",-1),L=s("",5),$=n("div",{className:"run-code"},"▶ Run Code",-1),Y=s("",4),Q=n("div",{className:"run-code"},"▶ Run Code",-1),U=s("",6),G=n("div",{className:"run-code"},"▶ Run Code",-1),J=s("",4),K=n("div",{className:"run-code"},"▶ Run Code",-1),X=s("",4),Z=n("div",{className:"run-code"},"▶ Run Code",-1),ss=s("",4),ns=n("div",{className:"run-code"},"▶ Run Code",-1),as=s("",4),ls=n("div",{className:"run-code"},"▶ Run Code",-1),ps=s("",4),es=n("div",{className:"run-code"},"▶ Run Code",-1),os=s("",5),ts=n("div",{className:"run-code"},"▶ Run Code",-1),rs=s("",4),cs=n("div",{className:"run-code"},"▶ Run Code",-1),is=s("",4),Ds=n("div",{className:"run-code"},"▶ Run Code",-1),ys=s("",5),Fs=n("div",{className:"run-code"},"▶ Run Code",-1),ds=s("",5),Cs=n("div",{className:"run-code"},"▶ Run Code",-1),As=s("",5),hs=n("div",{className:"run-code"},"▶ Run Code",-1),us=s("",6),bs=n("div",{className:"run-code"},"▶ Run Code",-1),ms=s("",5),gs=n("div",{className:"run-code"},"▶ Run Code",-1),_s=s("",4),vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ts=s("",6),fs=n("div",{className:"run-code"},"▶ Run Code",-1),Es=s("",6),ws=n("div",{className:"run-code"},"▶ Run Code",-1),Ss=s("",6),ks=n("div",{className:"run-code"},"▶ Run Code",-1),xs=s("",4),Ps=n("div",{className:"run-code"},"▶ Run Code",-1),Is=s("",4),js=n("div",{className:"run-code"},"▶ Run Code",-1),Rs=s("",5),Vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ns=s("",6),Bs=n("div",{className:"run-code"},"▶ Run Code",-1),zs=s("",4),Ws=n("div",{className:"run-code"},"▶ Run Code",-1),qs=s("",5),Os=n("div",{className:"run-code"},"▶ Run Code",-1),Ms=s("",2),Hs=n("div",{className:"run-code"},"▶ Run Code",-1),Ls=s("",5),$s=n("div",{className:"run-code"},"▶ Run Code",-1),Ys=s("",4),Qs=n("div",{className:"run-code"},"▶ Run Code",-1),Us=s("",4),Gs=n("div",{className:"run-code"},"▶ Run Code",-1),Js=s("",5),Ks=n("div",{className:"run-code"},"▶ Run Code",-1),Xs=s("",4),Zs=n("div",{className:"run-code"},"▶ Run Code",-1),sn=s("",1),nn=[o,t,r,c,i,D,y,F,d,C,A,h,u,b,m,g,_,v,T,f,E,w,S,k,x,P,I,j,R,V,N,B,z,W,q,O,M,H,L,$,Y,Q,U,G,J,K,X,Z,ss,ns,as,ls,ps,es,os,ts,rs,cs,is,Ds,ys,Fs,ds,Cs,As,hs,us,bs,ms,gs,_s,vs,Ts,fs,Es,ws,Ss,ks,xs,Ps,Is,js,Rs,Vs,Ns,Bs,zs,Ws,qs,Os,Ms,Hs,Ls,$s,Ys,Qs,Us,Gs,Js,Ks,Xs,Zs,sn];function an(ln,pn,en,on,tn,rn){return p(),l("div",null,nn)}const yn=a(e,[["render",an]]);export{Dn as __pageData,yn as default};
diff --git a/docs/document/assets/en_start_setting.md.9da60771.js b/docs/document/assets/en_start_setting.md.ce6aa0a7.js
similarity index 94%
rename from docs/document/assets/en_start_setting.md.9da60771.js
rename to docs/document/assets/en_start_setting.md.ce6aa0a7.js
index 0a71e57d0..b84f74a0d 100644
--- a/docs/document/assets/en_start_setting.md.9da60771.js
+++ b/docs/document/assets/en_start_setting.md.ce6aa0a7.js
@@ -1,4 +1,4 @@
-import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.parse('{"title":"设置面板","description":"","frontmatter":{},"headers":[{"level":2,"title":"Selection list","slug":"selection-list","link":"#selection-list","children":[]},{"level":2,"title":"List nesting","slug":"list-nesting","link":"#list-nesting","children":[]},{"level":2,"title":"Toggle button","slug":"toggle-button","link":"#toggle-button","children":[]},{"level":2,"title":"Range Slider","slug":"range-slider","link":"#range-slider","children":[]}],"relativePath":"en/start/setting.md","lastUpdated":1674271220000}'),e={name:"en/start/setting.md"},t=s("h1",{id:"设置面板",tabindex:"-1"},[n("设置面板 "),s("a",{class:"header-anchor",href:"#设置面板","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("You need to open the settings panel first. The player has four settings by default: "),s("code",null,"flip"),n(", "),s("code",null,"playbackRate"),n(", "),s("code",null,"aspectRatio"),n(", "),s("code",null,"subtitleOffset")],-1),r=s("div",{className:"run-code"},"▶ Run Code",-1),D=a(`
js
var art =newArtplayer({
+import{_ as l,c as p,o,b as s,d as n,a}from"./app.77a2ba76.js";const w=JSON.parse('{"title":"设置面板","description":"","frontmatter":{},"headers":[{"level":2,"title":"Selection list","slug":"selection-list","link":"#selection-list","children":[]},{"level":2,"title":"List nesting","slug":"list-nesting","link":"#list-nesting","children":[]},{"level":2,"title":"Toggle button","slug":"toggle-button","link":"#toggle-button","children":[]},{"level":2,"title":"Range Slider","slug":"range-slider","link":"#range-slider","children":[]}],"relativePath":"en/start/setting.md","lastUpdated":1674271220000}'),e={name:"en/start/setting.md"},t=s("h1",{id:"设置面板",tabindex:"-1"},[n("设置面板 "),s("a",{class:"header-anchor",href:"#设置面板","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("You need to open the settings panel first. The player has four settings by default: "),s("code",null,"flip"),n(", "),s("code",null,"playbackRate"),n(", "),s("code",null,"aspectRatio"),n(", "),s("code",null,"subtitleOffset")],-1),r=s("div",{className:"run-code"},"▶ Run Code",-1),D=a(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -7,7 +7,7 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.pars
aspectRatio:true,subtitleOffset:true,});
-
`,3),y=s("div",{className:"run-code"},"▶ Run Code",-1),F=a(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -60,7 +60,7 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.pars
}, ],});
-
`,2),C=s("div",{className:"run-code"},"▶ Run Code",-1),A=a(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -104,7 +104,7 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.pars
}, ],});
-
`,3),i=s("div",{className:"run-code"},"▶ Run Code",-1),d=a(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -124,12 +124,12 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.pars
}, ],});
-
const range = [5,1,10,1];const value = range[0];const min = range[1];const max = range[2];const step = range[3];
-
1 2 3 4 5
`,4),b=s("div",{className:"run-code"},"▶ Run Code",-1),u=a(`
js
var art =newArtplayer({
+
1 2 3 4 5
`,4),b=s("div",{className:"run-code"},"▶ Run Code",-1),u=a(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -146,4 +146,4 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.pars
}, ],});
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
`,1),m=[t,c,r,D,y,F,C,A,i,d,b,u];function h(g,_,E,f,v,S){return o(),p("div",null,m)}const P=l(e,[["render",h]]);export{w as __pageData,P as default};
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
`,1),m=[t,c,r,D,y,F,C,A,i,d,b,u];function h(g,_,E,f,v,S){return o(),p("div",null,m)}const x=l(e,[["render",h]]);export{w as __pageData,x as default};
diff --git a/docs/document/assets/en_start_setting.md.9da60771.lean.js b/docs/document/assets/en_start_setting.md.ce6aa0a7.lean.js
similarity index 91%
rename from docs/document/assets/en_start_setting.md.9da60771.lean.js
rename to docs/document/assets/en_start_setting.md.ce6aa0a7.lean.js
index fba99bec0..784561dc5 100644
--- a/docs/document/assets/en_start_setting.md.9da60771.lean.js
+++ b/docs/document/assets/en_start_setting.md.ce6aa0a7.lean.js
@@ -1 +1 @@
-import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.parse('{"title":"设置面板","description":"","frontmatter":{},"headers":[{"level":2,"title":"Selection list","slug":"selection-list","link":"#selection-list","children":[]},{"level":2,"title":"List nesting","slug":"list-nesting","link":"#list-nesting","children":[]},{"level":2,"title":"Toggle button","slug":"toggle-button","link":"#toggle-button","children":[]},{"level":2,"title":"Range Slider","slug":"range-slider","link":"#range-slider","children":[]}],"relativePath":"en/start/setting.md","lastUpdated":1674271220000}'),e={name:"en/start/setting.md"},t=s("h1",{id:"设置面板",tabindex:"-1"},[n("设置面板 "),s("a",{class:"header-anchor",href:"#设置面板","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("You need to open the settings panel first. The player has four settings by default: "),s("code",null,"flip"),n(", "),s("code",null,"playbackRate"),n(", "),s("code",null,"aspectRatio"),n(", "),s("code",null,"subtitleOffset")],-1),r=s("div",{className:"run-code"},"▶ Run Code",-1),D=a("",3),y=s("div",{className:"run-code"},"▶ Run Code",-1),F=a("",2),C=s("div",{className:"run-code"},"▶ Run Code",-1),A=a("",3),i=s("div",{className:"run-code"},"▶ Run Code",-1),d=a("",4),b=s("div",{className:"run-code"},"▶ Run Code",-1),u=a("",1),m=[t,c,r,D,y,F,C,A,i,d,b,u];function h(g,_,E,f,v,S){return o(),p("div",null,m)}const P=l(e,[["render",h]]);export{w as __pageData,P as default};
+import{_ as l,c as p,o,b as s,d as n,a}from"./app.77a2ba76.js";const w=JSON.parse('{"title":"设置面板","description":"","frontmatter":{},"headers":[{"level":2,"title":"Selection list","slug":"selection-list","link":"#selection-list","children":[]},{"level":2,"title":"List nesting","slug":"list-nesting","link":"#list-nesting","children":[]},{"level":2,"title":"Toggle button","slug":"toggle-button","link":"#toggle-button","children":[]},{"level":2,"title":"Range Slider","slug":"range-slider","link":"#range-slider","children":[]}],"relativePath":"en/start/setting.md","lastUpdated":1674271220000}'),e={name:"en/start/setting.md"},t=s("h1",{id:"设置面板",tabindex:"-1"},[n("设置面板 "),s("a",{class:"header-anchor",href:"#设置面板","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("You need to open the settings panel first. The player has four settings by default: "),s("code",null,"flip"),n(", "),s("code",null,"playbackRate"),n(", "),s("code",null,"aspectRatio"),n(", "),s("code",null,"subtitleOffset")],-1),r=s("div",{className:"run-code"},"▶ Run Code",-1),D=a("",3),y=s("div",{className:"run-code"},"▶ Run Code",-1),F=a("",2),C=s("div",{className:"run-code"},"▶ Run Code",-1),A=a("",3),i=s("div",{className:"run-code"},"▶ Run Code",-1),d=a("",4),b=s("div",{className:"run-code"},"▶ Run Code",-1),u=a("",1),m=[t,c,r,D,y,F,C,A,i,d,b,u];function h(g,_,E,f,v,S){return o(),p("div",null,m)}const x=l(e,[["render",h]]);export{w as __pageData,x as default};
diff --git a/docs/document/assets/index.md.89d9fcd6.js b/docs/document/assets/index.md.4a4c805f.js
similarity index 88%
rename from docs/document/assets/index.md.89d9fcd6.js
rename to docs/document/assets/index.md.4a4c805f.js
index 737901489..44bc695ce 100644
--- a/docs/document/assets/index.md.89d9fcd6.js
+++ b/docs/document/assets/index.md.4a4c805f.js
@@ -1,16 +1,16 @@
-import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{"title":"安装使用","description":"","frontmatter":{},"headers":[{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"Vue.js","slug":"vue-js","link":"#vue-js","children":[]},{"level":2,"title":"React.js","slug":"react-js","link":"#react-js","children":[]},{"level":2,"title":"语法提示","slug":"语法提示","link":"#语法提示","children":[]}],"relativePath":"index.md","lastUpdated":1677208560000}'),p={name:"index.md"},e=l(`
import Artplayer from'artplayer';
+import{_ as s,c as n,o as a,a as l}from"./app.77a2ba76.js";const C=JSON.parse('{"title":"安装使用","description":"","frontmatter":{},"headers":[{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"Vue.js","slug":"vue-js","link":"#vue-js","children":[]},{"level":2,"title":"React.js","slug":"react-js","link":"#react-js","children":[]},{"level":2,"title":"语法提示","slug":"语法提示","link":"#语法提示","children":[]}],"relativePath":"index.md","lastUpdated":1677208560000}'),p={name:"index.md"},e=l(`
import Artplayer from'artplayer';const art =newArtplayer({container:'.artplayer-app',url:'path/to/video.mp4',});
-
1 2 3 4 5 6
html
<html>
+
1 2 3 4 5 6
html
<html><head><title>ArtPlayer Demo</title><metacharset="UTF-8" />
@@ -25,7 +25,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{
<divclass="artplayer-app"></div></body></html>
-
<template><divref="artRef"></div></template>
@@ -61,7 +61,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{
},};</script>
-
<template><Artplayer@get-instance="getInstance":option="option":style="style" /></template>
@@ -91,7 +91,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{
},};</script>
-
import{useEffect,useRef}from'react';import Artplayer from'artplayer';exportdefaultfunctionPlayer({option,getInstance,...rest}){
@@ -116,7 +116,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{
return<divref={artRef} {...rest}></div>;}
-
exportdefault{data(){return{/**
@@ -158,4 +158,4 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{
}}}
-
1 2 3 4 5 6 7 8 9 10
`,23),o=[e];function t(r,c,y,F,D,i){return a(),n("div",null,o)}const u=s(p,[["render",t]]);export{C as __pageData,u as default};
+
1 2 3 4 5 6 7 8 9 10
`,23),o=[e];function t(r,c,F,y,i,D){return a(),n("div",null,o)}const u=s(p,[["render",t]]);export{C as __pageData,u as default};
diff --git a/docs/document/assets/index.md.89d9fcd6.lean.js b/docs/document/assets/index.md.4a4c805f.lean.js
similarity index 84%
rename from docs/document/assets/index.md.89d9fcd6.lean.js
rename to docs/document/assets/index.md.4a4c805f.lean.js
index 47b759d2d..bdd47c255 100644
--- a/docs/document/assets/index.md.89d9fcd6.lean.js
+++ b/docs/document/assets/index.md.4a4c805f.lean.js
@@ -1 +1 @@
-import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const C=JSON.parse('{"title":"安装使用","description":"","frontmatter":{},"headers":[{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"Vue.js","slug":"vue-js","link":"#vue-js","children":[]},{"level":2,"title":"React.js","slug":"react-js","link":"#react-js","children":[]},{"level":2,"title":"语法提示","slug":"语法提示","link":"#语法提示","children":[]}],"relativePath":"index.md","lastUpdated":1677208560000}'),p={name:"index.md"},e=l("",23),o=[e];function t(r,c,y,F,D,i){return a(),n("div",null,o)}const u=s(p,[["render",t]]);export{C as __pageData,u as default};
+import{_ as s,c as n,o as a,a as l}from"./app.77a2ba76.js";const C=JSON.parse('{"title":"安装使用","description":"","frontmatter":{},"headers":[{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"Vue.js","slug":"vue-js","link":"#vue-js","children":[]},{"level":2,"title":"React.js","slug":"react-js","link":"#react-js","children":[]},{"level":2,"title":"语法提示","slug":"语法提示","link":"#语法提示","children":[]}],"relativePath":"index.md","lastUpdated":1677208560000}'),p={name:"index.md"},e=l("",23),o=[e];function t(r,c,F,y,i,D){return a(),n("div",null,o)}const u=s(p,[["render",t]]);export{C as __pageData,u as default};
diff --git a/docs/document/assets/library_dash.md.d41a1806.js b/docs/document/assets/library_dash.md.99d9a876.js
similarity index 91%
rename from docs/document/assets/library_dash.md.d41a1806.js
rename to docs/document/assets/library_dash.md.99d9a876.js
index a3bbaa84c..a4f48d57d 100644
--- a/docs/document/assets/library_dash.md.d41a1806.js
+++ b/docs/document/assets/library_dash.md.99d9a876.js
@@ -1,4 +1,4 @@
-import{_ as n,c as l,o as p,b as s,d as a,a as o}from"./app.ad61275b.js";const m=JSON.parse('{"title":"dash.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/dash.md","lastUpdated":1676696783000}'),e={name:"library/dash.md"},r=s("h1",{id:"dash-js",tabindex:"-1"},[a("dash.js "),s("a",{class:"header-anchor",href:"#dash-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[a("👉 "),s("a",{href:"https://github.com/Dash-Industry-Forum/dash.js",target:"_blank",rel:"noreferrer"},"https://github.com/Dash-Industry-Forum/dash.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/dashjs/4.5.2/dash.all.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayMpd(video,url,art){
+import{_ as n,c as l,o as p,b as s,d as a,a as o}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"dash.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/dash.md","lastUpdated":1676696783000}'),e={name:"library/dash.md"},r=s("h1",{id:"dash-js",tabindex:"-1"},[a("dash.js "),s("a",{class:"header-anchor",href:"#dash-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[a("👉 "),s("a",{href:"https://github.com/Dash-Industry-Forum/dash.js",target:"_blank",rel:"noreferrer"},"https://github.com/Dash-Industry-Forum/dash.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/dashjs/4.5.2/dash.all.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayMpd(video,url,art){if (dashjs.supportsMediaSource()) {constdash=dashjs.MediaPlayer().create();dash.initialize(video,url,art.option.autoplay);
@@ -24,4 +24,4 @@ import{_ as n,c as l,o as p,b as s,d as a,a as o}from"./app.ad61275b.js";const m
art.on('ready',()=>{console.info(art.dash);});
-
`,1),y=[r,t,c,F];function D(i,A,C,d,b,h){return p(),l("div",null,y)}const _=n(e,[["render",D]]);export{m as __pageData,_ as default};
diff --git a/docs/document/assets/library_dash.md.d41a1806.lean.js b/docs/document/assets/library_dash.md.99d9a876.lean.js
similarity index 76%
rename from docs/document/assets/library_dash.md.d41a1806.lean.js
rename to docs/document/assets/library_dash.md.99d9a876.lean.js
index 4029cc1e0..d74151a5a 100644
--- a/docs/document/assets/library_dash.md.d41a1806.lean.js
+++ b/docs/document/assets/library_dash.md.99d9a876.lean.js
@@ -1 +1 @@
-import{_ as n,c as l,o as p,b as s,d as a,a as o}from"./app.ad61275b.js";const m=JSON.parse('{"title":"dash.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/dash.md","lastUpdated":1676696783000}'),e={name:"library/dash.md"},r=s("h1",{id:"dash-js",tabindex:"-1"},[a("dash.js "),s("a",{class:"header-anchor",href:"#dash-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[a("👉 "),s("a",{href:"https://github.com/Dash-Industry-Forum/dash.js",target:"_blank",rel:"noreferrer"},"https://github.com/Dash-Industry-Forum/dash.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/dashjs/4.5.2/dash.all.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(A,i,C,d,b,h){return p(),l("div",null,y)}const _=n(e,[["render",D]]);export{m as __pageData,_ as default};
+import{_ as n,c as l,o as p,b as s,d as a,a as o}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"dash.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/dash.md","lastUpdated":1676696783000}'),e={name:"library/dash.md"},r=s("h1",{id:"dash-js",tabindex:"-1"},[a("dash.js "),s("a",{class:"header-anchor",href:"#dash-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[a("👉 "),s("a",{href:"https://github.com/Dash-Industry-Forum/dash.js",target:"_blank",rel:"noreferrer"},"https://github.com/Dash-Industry-Forum/dash.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/dashjs/4.5.2/dash.all.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(i,A,C,d,b,h){return p(),l("div",null,y)}const _=n(e,[["render",D]]);export{m as __pageData,_ as default};
diff --git a/docs/document/assets/library_flv.md.44b55920.js b/docs/document/assets/library_flv.md.05440acf.js
similarity index 92%
rename from docs/document/assets/library_flv.md.44b55920.js
rename to docs/document/assets/library_flv.md.05440acf.js
index 800a19b8e..a2e998e54 100644
--- a/docs/document/assets/library_flv.md.44b55920.js
+++ b/docs/document/assets/library_flv.md.05440acf.js
@@ -1,4 +1,4 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const f=JSON.parse('{"title":"flv.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/flv.md","lastUpdated":1673441101000}'),e={name:"library/flv.md"},r=s("h1",{id:"flv-js",tabindex:"-1"},[n("flv.js "),s("a",{class:"header-anchor",href:"#flv-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/Bilibili/flv.js",target:"_blank",rel:"noreferrer"},"https://github.com/Bilibili/flv.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.6.2/flv.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayFlv(video,url,art){
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const f=JSON.parse('{"title":"flv.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/flv.md","lastUpdated":1673441101000}'),e={name:"library/flv.md"},r=s("h1",{id:"flv-js",tabindex:"-1"},[n("flv.js "),s("a",{class:"header-anchor",href:"#flv-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/Bilibili/flv.js",target:"_blank",rel:"noreferrer"},"https://github.com/Bilibili/flv.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.6.2/flv.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayFlv(video,url,art){if (flvjs.isSupported()) {constflv=flvjs.createPlayer({ type:'flv',url});flv.attachMediaElement(video);
diff --git a/docs/document/assets/library_flv.md.44b55920.lean.js b/docs/document/assets/library_flv.md.05440acf.lean.js
similarity index 83%
rename from docs/document/assets/library_flv.md.44b55920.lean.js
rename to docs/document/assets/library_flv.md.05440acf.lean.js
index a24b817fe..b89b5ddc4 100644
--- a/docs/document/assets/library_flv.md.44b55920.lean.js
+++ b/docs/document/assets/library_flv.md.05440acf.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const f=JSON.parse('{"title":"flv.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/flv.md","lastUpdated":1673441101000}'),e={name:"library/flv.md"},r=s("h1",{id:"flv-js",tabindex:"-1"},[n("flv.js "),s("a",{class:"header-anchor",href:"#flv-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/Bilibili/flv.js",target:"_blank",rel:"noreferrer"},"https://github.com/Bilibili/flv.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.6.2/flv.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(i,A,C,b,d,u){return p(),l("div",null,y)}const h=a(e,[["render",D]]);export{f as __pageData,h as default};
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const f=JSON.parse('{"title":"flv.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/flv.md","lastUpdated":1673441101000}'),e={name:"library/flv.md"},r=s("h1",{id:"flv-js",tabindex:"-1"},[n("flv.js "),s("a",{class:"header-anchor",href:"#flv-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/Bilibili/flv.js",target:"_blank",rel:"noreferrer"},"https://github.com/Bilibili/flv.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.6.2/flv.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(i,A,C,b,d,u){return p(),l("div",null,y)}const h=a(e,[["render",D]]);export{f as __pageData,h as default};
diff --git a/docs/document/assets/library_hls.md.cd760e7f.js b/docs/document/assets/library_hls.md.39b2d4b8.js
similarity index 92%
rename from docs/document/assets/library_hls.md.cd760e7f.js
rename to docs/document/assets/library_hls.md.39b2d4b8.js
index 2ba5e35dd..2c28ecc03 100644
--- a/docs/document/assets/library_hls.md.cd760e7f.js
+++ b/docs/document/assets/library_hls.md.39b2d4b8.js
@@ -1,4 +1,4 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const m=JSON.parse('{"title":"hls.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/hls.md","lastUpdated":1673441101000}'),e={name:"library/hls.md"},r=s("h1",{id:"hls-js",tabindex:"-1"},[n("hls.js "),s("a",{class:"header-anchor",href:"#hls-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/video-dev/hls.js",target:"_blank",rel:"noreferrer"},"https://github.com/video-dev/hls.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/hls.js/8.0.0-beta.3/hls.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayM3u8(video,url,art){
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"hls.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/hls.md","lastUpdated":1673441101000}'),e={name:"library/hls.md"},r=s("h1",{id:"hls-js",tabindex:"-1"},[n("hls.js "),s("a",{class:"header-anchor",href:"#hls-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/video-dev/hls.js",target:"_blank",rel:"noreferrer"},"https://github.com/video-dev/hls.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/hls.js/8.0.0-beta.3/hls.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayM3u8(video,url,art){if (Hls.isSupported()) {consthls=newHls();hls.loadSource(url);
diff --git a/docs/document/assets/library_hls.md.cd760e7f.lean.js b/docs/document/assets/library_hls.md.39b2d4b8.lean.js
similarity index 84%
rename from docs/document/assets/library_hls.md.cd760e7f.lean.js
rename to docs/document/assets/library_hls.md.39b2d4b8.lean.js
index bf19213d9..800f789e7 100644
--- a/docs/document/assets/library_hls.md.cd760e7f.lean.js
+++ b/docs/document/assets/library_hls.md.39b2d4b8.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const m=JSON.parse('{"title":"hls.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/hls.md","lastUpdated":1673441101000}'),e={name:"library/hls.md"},r=s("h1",{id:"hls-js",tabindex:"-1"},[n("hls.js "),s("a",{class:"header-anchor",href:"#hls-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/video-dev/hls.js",target:"_blank",rel:"noreferrer"},"https://github.com/video-dev/hls.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/hls.js/8.0.0-beta.3/hls.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(i,A,C,b,d,h){return p(),l("div",null,y)}const _=a(e,[["render",D]]);export{m as __pageData,_ as default};
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"hls.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/hls.md","lastUpdated":1673441101000}'),e={name:"library/hls.md"},r=s("h1",{id:"hls-js",tabindex:"-1"},[n("hls.js "),s("a",{class:"header-anchor",href:"#hls-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/video-dev/hls.js",target:"_blank",rel:"noreferrer"},"https://github.com/video-dev/hls.js")],-1),c=s("div",{className:"run-code","data-libs":"https://cdnjs.cloudflare.com/ajax/libs/hls.js/8.0.0-beta.3/hls.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(i,A,C,b,d,h){return p(),l("div",null,y)}const _=a(e,[["render",D]]);export{m as __pageData,_ as default};
diff --git a/docs/document/assets/library_webtorrent.md.bccff75e.js b/docs/document/assets/library_webtorrent.md.aada1832.js
similarity index 92%
rename from docs/document/assets/library_webtorrent.md.bccff75e.js
rename to docs/document/assets/library_webtorrent.md.aada1832.js
index 22c566689..7fd6e73ea 100644
--- a/docs/document/assets/library_webtorrent.md.bccff75e.js
+++ b/docs/document/assets/library_webtorrent.md.aada1832.js
@@ -1,4 +1,4 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const h=JSON.parse('{"title":"webtorrent.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/webtorrent.md","lastUpdated":1676820444000}'),e={name:"library/webtorrent.md"},r=s("h1",{id:"webtorrent-js",tabindex:"-1"},[n("webtorrent.js "),s("a",{class:"header-anchor",href:"#webtorrent-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/webtorrent/webtorrent",target:"_blank",rel:"noreferrer"},"https://github.com/webtorrent/webtorrent")],-1),c=s("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/webtorrent@2.0.13/index.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayTorrent(video,url,art){
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const h=JSON.parse('{"title":"webtorrent.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/webtorrent.md","lastUpdated":1676820444000}'),e={name:"library/webtorrent.md"},r=s("h1",{id:"webtorrent-js",tabindex:"-1"},[n("webtorrent.js "),s("a",{class:"header-anchor",href:"#webtorrent-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/webtorrent/webtorrent",target:"_blank",rel:"noreferrer"},"https://github.com/webtorrent/webtorrent")],-1),c=s("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/webtorrent@2.0.13/index.min.js"}," ▶ Run Code ",-1),F=o(`
js
functionplayTorrent(video,url,art){consttorrent=newWebTorrent();torrent.add(url,function(torrent){varfile=torrent.files[0];
@@ -26,4 +26,4 @@ import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const h
art.video.controls=false;console.info(art.torrent);});
-
`,1),y=[r,t,c,F];function D(A,i,C,b,d,m){return p(),l("div",null,y)}const _=a(e,[["render",D]]);export{h as __pageData,_ as default};
diff --git a/docs/document/assets/library_webtorrent.md.bccff75e.lean.js b/docs/document/assets/library_webtorrent.md.aada1832.lean.js
similarity index 77%
rename from docs/document/assets/library_webtorrent.md.bccff75e.lean.js
rename to docs/document/assets/library_webtorrent.md.aada1832.lean.js
index a9fd3dad0..32053d766 100644
--- a/docs/document/assets/library_webtorrent.md.bccff75e.lean.js
+++ b/docs/document/assets/library_webtorrent.md.aada1832.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.ad61275b.js";const h=JSON.parse('{"title":"webtorrent.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/webtorrent.md","lastUpdated":1676820444000}'),e={name:"library/webtorrent.md"},r=s("h1",{id:"webtorrent-js",tabindex:"-1"},[n("webtorrent.js "),s("a",{class:"header-anchor",href:"#webtorrent-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/webtorrent/webtorrent",target:"_blank",rel:"noreferrer"},"https://github.com/webtorrent/webtorrent")],-1),c=s("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/webtorrent@2.0.13/index.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(A,i,C,b,d,u){return p(),l("div",null,y)}const _=a(e,[["render",D]]);export{h as __pageData,_ as default};
+import{_ as a,c as l,o as p,b as s,d as n,a as o}from"./app.77a2ba76.js";const h=JSON.parse('{"title":"webtorrent.js","description":"","frontmatter":{},"headers":[],"relativePath":"library/webtorrent.md","lastUpdated":1676820444000}'),e={name:"library/webtorrent.md"},r=s("h1",{id:"webtorrent-js",tabindex:"-1"},[n("webtorrent.js "),s("a",{class:"header-anchor",href:"#webtorrent-js","aria-hidden":"true"},"#")],-1),t=s("p",null,[n("👉 "),s("a",{href:"https://github.com/webtorrent/webtorrent",target:"_blank",rel:"noreferrer"},"https://github.com/webtorrent/webtorrent")],-1),c=s("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/webtorrent@2.0.13/index.min.js"}," ▶ Run Code ",-1),F=o("",1),y=[r,t,c,F];function D(A,i,C,b,d,m){return p(),l("div",null,y)}const _=a(e,[["render",D]]);export{h as __pageData,_ as default};
diff --git a/docs/document/assets/plugin_ads.md.5b0d5363.js b/docs/document/assets/plugin_ads.md.d1a697f9.js
similarity index 82%
rename from docs/document/assets/plugin_ads.md.5b0d5363.js
rename to docs/document/assets/plugin_ads.md.d1a697f9.js
index da8066e7a..be99bd2a1 100644
--- a/docs/document/assets/plugin_ads.md.5b0d5363.js
+++ b/docs/document/assets/plugin_ads.md.d1a697f9.js
@@ -1,10 +1,10 @@
-import{_ as a,c as n,o as l,a as s,b as p}from"./app.ad61275b.js";const u=JSON.parse('{"title":"视频广告","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]}],"relativePath":"plugin/ads.md","lastUpdated":1673441101000}'),e={name:"plugin/ads.md"},o=s(`
`,8),r=p("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-ads/index.js"}," ▶ Run Code ",-1),c=s(`
js
var art =newArtplayer({
+import{_ as a,c as n,o as l,a as s,b as p}from"./app.77a2ba76.js";const u=JSON.parse('{"title":"视频广告","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]}],"relativePath":"plugin/ads.md","lastUpdated":1673441101000}'),e={name:"plugin/ads.md"},o=s(`
`,8),r=p("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-ads/index.js"}," ▶ Run Code ",-1),t=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoSize:true,
@@ -52,4 +52,4 @@ import{_ as a,c as n,o as l,a as s,b as p}from"./app.ad61275b.js";const u=JSON.p
art.on('artplayerPluginAds:skip',(ads)=>{console.info(ads);});
-
`,1),c=[o,r,t];function i(y,D,F,d,C,b){return l(),n("div",null,c)}const m=a(e,[["render",i]]);export{u as __pageData,m as default};
diff --git a/docs/document/assets/plugin_ads.md.5b0d5363.lean.js b/docs/document/assets/plugin_ads.md.d1a697f9.lean.js
similarity index 75%
rename from docs/document/assets/plugin_ads.md.5b0d5363.lean.js
rename to docs/document/assets/plugin_ads.md.d1a697f9.lean.js
index 38e57b77d..d7267da72 100644
--- a/docs/document/assets/plugin_ads.md.5b0d5363.lean.js
+++ b/docs/document/assets/plugin_ads.md.d1a697f9.lean.js
@@ -1 +1 @@
-import{_ as a,c as n,o as l,a as s,b as p}from"./app.ad61275b.js";const u=JSON.parse('{"title":"视频广告","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]}],"relativePath":"plugin/ads.md","lastUpdated":1673441101000}'),e={name:"plugin/ads.md"},o=s("",8),r=p("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-ads/index.js"}," ▶ Run Code ",-1),c=s("",1),t=[o,r,c];function i(y,D,F,d,C,b){return l(),n("div",null,t)}const m=a(e,[["render",i]]);export{u as __pageData,m as default};
+import{_ as a,c as n,o as l,a as s,b as p}from"./app.77a2ba76.js";const u=JSON.parse('{"title":"视频广告","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]}],"relativePath":"plugin/ads.md","lastUpdated":1673441101000}'),e={name:"plugin/ads.md"},o=s("",8),r=p("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-ads/index.js"}," ▶ Run Code ",-1),t=s("",1),c=[o,r,t];function i(y,D,F,d,C,b){return l(),n("div",null,c)}const m=a(e,[["render",i]]);export{u as __pageData,m as default};
diff --git a/docs/document/assets/plugin_control-ui.md.202c3dc3.js b/docs/document/assets/plugin_control-ui.md.452a2715.js
similarity index 77%
rename from docs/document/assets/plugin_control-ui.md.202c3dc3.js
rename to docs/document/assets/plugin_control-ui.md.452a2715.js
index 7e31f126f..491fb4f26 100644
--- a/docs/document/assets/plugin_control-ui.md.202c3dc3.js
+++ b/docs/document/assets/plugin_control-ui.md.452a2715.js
@@ -1,10 +1,10 @@
-import{_ as n,c as l,o as p,a as s,b as a}from"./app.ad61275b.js";const m=JSON.parse('{"title":"控制器皮肤","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"enable","slug":"enable","link":"#enable","children":[]}],"relativePath":"plugin/control-ui.md","lastUpdated":1673441101000}'),e={name:"plugin/control-ui.md"},o=s(`
`,8),r=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),t=s(`
js
var art =newArtplayer({
+import{_ as n,c as l,o as p,a as s,b as a}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"控制器皮肤","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"enable","slug":"enable","link":"#enable","children":[]}],"relativePath":"plugin/control-ui.md","lastUpdated":1673441101000}'),e={name:"plugin/control-ui.md"},o=s(`
`,8),r=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),t=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreen:true,
@@ -13,7 +13,7 @@ import{_ as n,c as l,o as p,a as s,b as a}from"./app.ad61275b.js";const m=JSON.p
artplayerPluginControl(), ],});
-
`,4),c=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),i=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreen:true,
diff --git a/docs/document/assets/plugin_control-ui.md.202c3dc3.lean.js b/docs/document/assets/plugin_control-ui.md.452a2715.lean.js
similarity index 93%
rename from docs/document/assets/plugin_control-ui.md.202c3dc3.lean.js
rename to docs/document/assets/plugin_control-ui.md.452a2715.lean.js
index 1958e0ecf..7eb559ead 100644
--- a/docs/document/assets/plugin_control-ui.md.202c3dc3.lean.js
+++ b/docs/document/assets/plugin_control-ui.md.452a2715.lean.js
@@ -1 +1 @@
-import{_ as n,c as l,o as p,a as s,b as a}from"./app.ad61275b.js";const m=JSON.parse('{"title":"控制器皮肤","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"enable","slug":"enable","link":"#enable","children":[]}],"relativePath":"plugin/control-ui.md","lastUpdated":1673441101000}'),e={name:"plugin/control-ui.md"},o=s("",8),r=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),t=s("",4),c=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),i=s("",1),y=[o,r,t,c,i];function D(d,F,C,b,u,A){return p(),l("div",null,y)}const g=n(e,[["render",D]]);export{m as __pageData,g as default};
+import{_ as n,c as l,o as p,a as s,b as a}from"./app.77a2ba76.js";const m=JSON.parse('{"title":"控制器皮肤","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"enable","slug":"enable","link":"#enable","children":[]}],"relativePath":"plugin/control-ui.md","lastUpdated":1673441101000}'),e={name:"plugin/control-ui.md"},o=s("",8),r=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),t=s("",4),c=a("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-control/index.js"}," ▶ Run Code ",-1),i=s("",1),y=[o,r,t,c,i];function D(d,F,C,b,u,A){return p(),l("div",null,y)}const g=n(e,[["render",D]]);export{m as __pageData,g as default};
diff --git a/docs/document/assets/plugin_danmuku.md.dd0934d2.js b/docs/document/assets/plugin_danmuku.md.dca0b589.js
similarity index 93%
rename from docs/document/assets/plugin_danmuku.md.dd0934d2.js
rename to docs/document/assets/plugin_danmuku.md.dca0b589.js
index 22f3daf59..2b3bc1e9e 100644
--- a/docs/document/assets/plugin_danmuku.md.dd0934d2.js
+++ b/docs/document/assets/plugin_danmuku.md.dca0b589.js
@@ -1,10 +1,10 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.parse('{"title":"弹幕库","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"选项","slug":"选项","link":"#选项","children":[]},{"level":2,"title":"使用弹幕数组","slug":"使用弹幕数组","link":"#使用弹幕数组","children":[]},{"level":2,"title":"使用弹幕 XML","slug":"使用弹幕-xml","link":"#使用弹幕-xml","children":[]},{"level":2,"title":"使用异步调用","slug":"使用异步调用","link":"#使用异步调用","children":[]},{"level":2,"title":"hide/show","slug":"hide-show","link":"#hide-show","children":[]},{"level":2,"title":"isHide","slug":"ishide","link":"#ishide","children":[]},{"level":2,"title":"emit","slug":"emit","link":"#emit","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"load","slug":"load","link":"#load","children":[]},{"level":2,"title":"reset","slug":"reset","link":"#reset","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"事件","slug":"事件","link":"#事件","children":[]}],"relativePath":"plugin/danmuku.md","lastUpdated":1673441101000}'),o={name:"plugin/danmuku.md"},e=s(`
{
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const I=JSON.parse('{"title":"弹幕库","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"选项","slug":"选项","link":"#选项","children":[]},{"level":2,"title":"使用弹幕数组","slug":"使用弹幕数组","link":"#使用弹幕数组","children":[]},{"level":2,"title":"使用弹幕 XML","slug":"使用弹幕-xml","link":"#使用弹幕-xml","children":[]},{"level":2,"title":"使用异步调用","slug":"使用异步调用","link":"#使用异步调用","children":[]},{"level":2,"title":"hide/show","slug":"hide-show","link":"#hide-show","children":[]},{"level":2,"title":"isHide","slug":"ishide","link":"#ishide","children":[]},{"level":2,"title":"emit","slug":"emit","link":"#emit","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"load","slug":"load","link":"#load","children":[]},{"level":2,"title":"reset","slug":"reset","link":"#reset","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"事件","slug":"事件","link":"#事件","children":[]}],"relativePath":"plugin/danmuku.md","lastUpdated":1673441101000}'),o={name:"plugin/danmuku.md"},e=s(`
{danmuku: [],// 弹幕库,支持数组, xml 地址, Promise返回数组speed:5,// 弹幕持续时间,单位秒,范围在[1 ~ 10]opacity:1,// 弹幕透明度,范围在[0 ~ 1]
@@ -25,7 +25,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
// 通过 mount 选项可以自定义输入框挂载的位置,默认挂载于播放器底部,仅在当宽度小于最小值时生效mount:document.querySelector('.artplayer-danmuku'),}
-
`,10),r=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),c=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -58,7 +58,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
}), ],});
-
`,2),t=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),D=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',plugins: [
@@ -68,7 +68,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
}), ],});
-
`,2),F=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),y=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',plugins: [
@@ -95,7 +95,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
}), ],});
-
`,3),i=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),C=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',plugins: [
@@ -120,7 +120,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
}, ],});
-
`,3),A=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),u=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',plugins: [
@@ -144,7 +144,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
}, ],});
-
`,3),b=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),m=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',plugins: [
@@ -169,7 +169,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
}, ],});
-
`,4),d=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),h=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',plugins: [
@@ -196,7 +196,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
}, ],});
-
`,3),g=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),_=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',plugins: [
@@ -224,7 +224,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
}, ],});
-
`,3),E=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),v=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -238,7 +238,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
art.on('resize',()=>{art.plugins.artplayerPluginDanmuku.reset();});
-
`,3),k=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),f=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -252,7 +252,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
art.on('ready',()=>{console.info(art.plugins.artplayerPluginDanmuku.option);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -298,4 +298,4 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.p
art.on('artplayerPluginDanmuku:destroy',()=>{console.info('弹幕销毁');});
-
`,3),T=[e,r,c,t,D,F,y,i,C,A,u,b,m,d,h,g,_,E,v,k,f];function x(P,B,j,w,S,N){return p(),l("div",null,T)}const R=a(o,[["render",x]]);export{V as __pageData,R as default};
+
`,3),x=[e,r,c,t,D,F,y,i,C,A,u,b,m,d,h,g,_,E,v,k,f];function T(P,B,w,S,j,N){return p(),l("div",null,x)}const R=a(o,[["render",T]]);export{I as __pageData,R as default};
diff --git a/docs/document/assets/plugin_danmuku.md.dd0934d2.lean.js b/docs/document/assets/plugin_danmuku.md.dca0b589.lean.js
similarity index 88%
rename from docs/document/assets/plugin_danmuku.md.dd0934d2.lean.js
rename to docs/document/assets/plugin_danmuku.md.dca0b589.lean.js
index fd58af363..ab9fab313 100644
--- a/docs/document/assets/plugin_danmuku.md.dd0934d2.lean.js
+++ b/docs/document/assets/plugin_danmuku.md.dca0b589.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const V=JSON.parse('{"title":"弹幕库","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"选项","slug":"选项","link":"#选项","children":[]},{"level":2,"title":"使用弹幕数组","slug":"使用弹幕数组","link":"#使用弹幕数组","children":[]},{"level":2,"title":"使用弹幕 XML","slug":"使用弹幕-xml","link":"#使用弹幕-xml","children":[]},{"level":2,"title":"使用异步调用","slug":"使用异步调用","link":"#使用异步调用","children":[]},{"level":2,"title":"hide/show","slug":"hide-show","link":"#hide-show","children":[]},{"level":2,"title":"isHide","slug":"ishide","link":"#ishide","children":[]},{"level":2,"title":"emit","slug":"emit","link":"#emit","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"load","slug":"load","link":"#load","children":[]},{"level":2,"title":"reset","slug":"reset","link":"#reset","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"事件","slug":"事件","link":"#事件","children":[]}],"relativePath":"plugin/danmuku.md","lastUpdated":1673441101000}'),o={name:"plugin/danmuku.md"},e=s("",10),r=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),c=s("",2),t=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),D=s("",2),F=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),y=s("",3),i=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),C=s("",3),A=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),u=s("",3),b=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),m=s("",4),d=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),h=s("",3),g=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),_=s("",3),E=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),v=s("",3),k=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),f=s("",3),T=[e,r,c,t,D,F,y,i,C,A,u,b,m,d,h,g,_,E,v,k,f];function x(P,B,j,w,S,N){return p(),l("div",null,T)}const R=a(o,[["render",x]]);export{V as __pageData,R as default};
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const I=JSON.parse('{"title":"弹幕库","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"选项","slug":"选项","link":"#选项","children":[]},{"level":2,"title":"使用弹幕数组","slug":"使用弹幕数组","link":"#使用弹幕数组","children":[]},{"level":2,"title":"使用弹幕 XML","slug":"使用弹幕-xml","link":"#使用弹幕-xml","children":[]},{"level":2,"title":"使用异步调用","slug":"使用异步调用","link":"#使用异步调用","children":[]},{"level":2,"title":"hide/show","slug":"hide-show","link":"#hide-show","children":[]},{"level":2,"title":"isHide","slug":"ishide","link":"#ishide","children":[]},{"level":2,"title":"emit","slug":"emit","link":"#emit","children":[]},{"level":2,"title":"config","slug":"config","link":"#config","children":[]},{"level":2,"title":"load","slug":"load","link":"#load","children":[]},{"level":2,"title":"reset","slug":"reset","link":"#reset","children":[]},{"level":2,"title":"option","slug":"option","link":"#option","children":[]},{"level":2,"title":"事件","slug":"事件","link":"#事件","children":[]}],"relativePath":"plugin/danmuku.md","lastUpdated":1673441101000}'),o={name:"plugin/danmuku.md"},e=s("",10),r=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),c=s("",2),t=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),D=s("",2),F=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),y=s("",3),i=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),C=s("",3),A=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),u=s("",3),b=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),m=s("",4),d=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),h=s("",3),g=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),_=s("",3),E=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),v=s("",3),k=n("div",{className:"run-code","data-libs":"./uncompiled/artplayer-plugin-danmuku/index.js"}," ▶ Run Code ",-1),f=s("",3),x=[e,r,c,t,D,F,y,i,C,A,u,b,m,d,h,g,_,E,v,k,f];function T(P,B,w,S,j,N){return p(),l("div",null,x)}const R=a(o,[["render",T]]);export{I as __pageData,R as default};
diff --git a/docs/document/assets/plugin_dash-quality.md.4c287d1a.js b/docs/document/assets/plugin_dash-quality.md.4c287d1a.js
deleted file mode 100644
index 222158602..000000000
--- a/docs/document/assets/plugin_dash-quality.md.4c287d1a.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import{_ as a,c as s,o as e,a as l}from"./app.ad61275b.js";const y=JSON.parse('{"title":"Dash 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"plugin/dash-quality.md","lastUpdated":1676696783000}'),n={name:"plugin/dash-quality.md"},p=l(`
`,7),t=[p];function i(r,d,o,c,u,h){return e(),s("div",null,t)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/plugin_dash-quality.md.9cf0ae9b.js b/docs/document/assets/plugin_dash-quality.md.9cf0ae9b.js
new file mode 100644
index 000000000..1a0c71f0d
--- /dev/null
+++ b/docs/document/assets/plugin_dash-quality.md.9cf0ae9b.js
@@ -0,0 +1,7 @@
+import{_ as a,c as s,o as e,a as n}from"./app.77a2ba76.js";const y=JSON.parse('{"title":"Dash 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"plugin/dash-quality.md","lastUpdated":1676696783000}'),l={name:"plugin/dash-quality.md"},p=n(`
`,7),t=[p];function i(r,d,o,c,u,h){return e(),s("div",null,t)}const m=a(l,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/plugin_dash-quality.md.4c287d1a.lean.js b/docs/document/assets/plugin_dash-quality.md.9cf0ae9b.lean.js
similarity index 57%
rename from docs/document/assets/plugin_dash-quality.md.4c287d1a.lean.js
rename to docs/document/assets/plugin_dash-quality.md.9cf0ae9b.lean.js
index 8cf3cba35..55b870c06 100644
--- a/docs/document/assets/plugin_dash-quality.md.4c287d1a.lean.js
+++ b/docs/document/assets/plugin_dash-quality.md.9cf0ae9b.lean.js
@@ -1 +1 @@
-import{_ as a,c as s,o as e,a as l}from"./app.ad61275b.js";const y=JSON.parse('{"title":"Dash 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"plugin/dash-quality.md","lastUpdated":1676696783000}'),n={name:"plugin/dash-quality.md"},p=l("",7),t=[p];function i(r,d,o,c,u,h){return e(),s("div",null,t)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
+import{_ as a,c as s,o as e,a as n}from"./app.77a2ba76.js";const y=JSON.parse('{"title":"Dash 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"plugin/dash-quality.md","lastUpdated":1676696783000}'),l={name:"plugin/dash-quality.md"},p=n("",7),t=[p];function i(r,d,o,c,u,h){return e(),s("div",null,t)}const m=a(l,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/plugin_hls-quality.md.aa5de94c.js b/docs/document/assets/plugin_hls-quality.md.aa5de94c.js
deleted file mode 100644
index 18c470e3f..000000000
--- a/docs/document/assets/plugin_hls-quality.md.aa5de94c.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import{_ as a,c as s,o as l,a as e}from"./app.ad61275b.js";const y=JSON.parse('{"title":"HLS 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"plugin/hls-quality.md","lastUpdated":1673441101000}'),n={name:"plugin/hls-quality.md"},p=e(`
`,7),t=[p];function i(r,o,c,d,u,h){return l(),s("div",null,t)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/plugin_hls-quality.md.d6b0ffed.js b/docs/document/assets/plugin_hls-quality.md.d6b0ffed.js
new file mode 100644
index 000000000..059357fb2
--- /dev/null
+++ b/docs/document/assets/plugin_hls-quality.md.d6b0ffed.js
@@ -0,0 +1,7 @@
+import{_ as a,c as s,o as e,a as l}from"./app.77a2ba76.js";const y=JSON.parse('{"title":"HLS 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"plugin/hls-quality.md","lastUpdated":1673441101000}'),n={name:"plugin/hls-quality.md"},t=l(`
`,7),p=[t];function i(r,o,c,d,u,h){return e(),s("div",null,p)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/plugin_hls-quality.md.aa5de94c.lean.js b/docs/document/assets/plugin_hls-quality.md.d6b0ffed.lean.js
similarity index 68%
rename from docs/document/assets/plugin_hls-quality.md.aa5de94c.lean.js
rename to docs/document/assets/plugin_hls-quality.md.d6b0ffed.lean.js
index 52ae87d6a..97d430b7a 100644
--- a/docs/document/assets/plugin_hls-quality.md.aa5de94c.lean.js
+++ b/docs/document/assets/plugin_hls-quality.md.d6b0ffed.lean.js
@@ -1 +1 @@
-import{_ as a,c as s,o as l,a as e}from"./app.ad61275b.js";const y=JSON.parse('{"title":"HLS 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"plugin/hls-quality.md","lastUpdated":1673441101000}'),n={name:"plugin/hls-quality.md"},p=e("",7),t=[p];function i(r,o,c,d,u,h){return l(),s("div",null,t)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
+import{_ as a,c as s,o as e,a as l}from"./app.77a2ba76.js";const y=JSON.parse('{"title":"HLS 画质","description":"","frontmatter":{},"headers":[{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]}],"relativePath":"plugin/hls-quality.md","lastUpdated":1673441101000}'),n={name:"plugin/hls-quality.md"},t=l("",7),p=[t];function i(r,o,c,d,u,h){return e(),s("div",null,p)}const m=a(n,[["render",i]]);export{y as __pageData,m as default};
diff --git a/docs/document/assets/plugin_iframe.md.ad14cf5e.js b/docs/document/assets/plugin_iframe.md.c3122371.js
similarity index 90%
rename from docs/document/assets/plugin_iframe.md.ad14cf5e.js
rename to docs/document/assets/plugin_iframe.md.c3122371.js
index f25b80569..29ee8dd05 100644
--- a/docs/document/assets/plugin_iframe.md.ad14cf5e.js
+++ b/docs/document/assets/plugin_iframe.md.c3122371.js
@@ -1,10 +1,10 @@
-import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{"title":"Iframe 控制","description":"","frontmatter":{},"headers":[{"level":2,"title":"说明","slug":"说明","link":"#说明","children":[]},{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"index.html 接口","slug":"index-html-接口","link":"#index-html-接口","children":[{"level":3,"title":"commit","slug":"commit","link":"#commit","children":[]},{"level":3,"title":"message","slug":"message","link":"#message","children":[]},{"level":3,"title":"destroy","slug":"destroy","link":"#destroy","children":[]}]},{"level":2,"title":"iframe.html 接口","slug":"iframe-html-接口","link":"#iframe-html-接口","children":[{"level":3,"title":"inject","slug":"inject","link":"#inject","children":[]},{"level":3,"title":"postMessage","slug":"postmessage","link":"#postmessage","children":[]}]},{"level":2,"title":"例子","slug":"例子","link":"#例子","children":[]}],"relativePath":"plugin/iframe.md","lastUpdated":1673665918000}'),p={name:"plugin/iframe.md"},e=l(`
<!DOCTYPEhtml>
+import{_ as s,c as n,o as a,a as l}from"./app.77a2ba76.js";const b=JSON.parse('{"title":"Iframe 控制","description":"","frontmatter":{},"headers":[{"level":2,"title":"说明","slug":"说明","link":"#说明","children":[]},{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"index.html 接口","slug":"index-html-接口","link":"#index-html-接口","children":[{"level":3,"title":"commit","slug":"commit","link":"#commit","children":[]},{"level":3,"title":"message","slug":"message","link":"#message","children":[]},{"level":3,"title":"destroy","slug":"destroy","link":"#destroy","children":[]}]},{"level":2,"title":"iframe.html 接口","slug":"iframe-html-接口","link":"#iframe-html-接口","children":[{"level":3,"title":"inject","slug":"inject","link":"#inject","children":[]},{"level":3,"title":"postMessage","slug":"postmessage","link":"#postmessage","children":[]}]},{"level":2,"title":"例子","slug":"例子","link":"#例子","children":[]}],"relativePath":"plugin/iframe.md","lastUpdated":1673665918000}'),p={name:"plugin/iframe.md"},e=l(`
<!DOCTYPEhtml><html><head><title>ArtPlayer</title>
@@ -31,7 +31,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{
</script></body></html>
-
<!DOCTYPEhtml><html><head><title>ArtPlayer</title>
@@ -56,7 +56,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{
</script></body></html>
-
iframe.commit(()=>{varart=newArtplayer({ container:'.artplayer-app', url:'path/to/video.mp4',
@@ -81,12 +81,12 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{
},1000);});})();
-
iframe.message((event)=>{console.info(event);});
@@ -96,7 +96,7 @@ import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{
data:art.currentTime,});});
-
`,32),o=[e];function r(t,c,F,D,y,i){return a(),n("div",null,o)}const A=s(p,[["render",r]]);export{b as __pageData,A as default};
diff --git a/docs/document/assets/plugin_iframe.md.ad14cf5e.lean.js b/docs/document/assets/plugin_iframe.md.c3122371.lean.js
similarity index 84%
rename from docs/document/assets/plugin_iframe.md.ad14cf5e.lean.js
rename to docs/document/assets/plugin_iframe.md.c3122371.lean.js
index e951f3b40..484ef6127 100644
--- a/docs/document/assets/plugin_iframe.md.ad14cf5e.lean.js
+++ b/docs/document/assets/plugin_iframe.md.c3122371.lean.js
@@ -1 +1 @@
-import{_ as s,c as n,o as a,a as l}from"./app.ad61275b.js";const A=JSON.parse('{"title":"Iframe 控制","description":"","frontmatter":{},"headers":[{"level":2,"title":"说明","slug":"说明","link":"#说明","children":[]},{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"index.html 接口","slug":"index-html-接口","link":"#index-html-接口","children":[{"level":3,"title":"commit","slug":"commit","link":"#commit","children":[]},{"level":3,"title":"message","slug":"message","link":"#message","children":[]},{"level":3,"title":"destroy","slug":"destroy","link":"#destroy","children":[]}]},{"level":2,"title":"iframe.html 接口","slug":"iframe-html-接口","link":"#iframe-html-接口","children":[{"level":3,"title":"inject","slug":"inject","link":"#inject","children":[]},{"level":3,"title":"postMessage","slug":"postmessage","link":"#postmessage","children":[]}]},{"level":2,"title":"例子","slug":"例子","link":"#例子","children":[]}],"relativePath":"plugin/iframe.md","lastUpdated":1673665918000}'),p={name:"plugin/iframe.md"},e=l("",32),o=[e];function r(t,c,F,D,y,i){return a(),n("div",null,o)}const b=s(p,[["render",r]]);export{A as __pageData,b as default};
+import{_ as s,c as n,o as a,a as l}from"./app.77a2ba76.js";const b=JSON.parse('{"title":"Iframe 控制","description":"","frontmatter":{},"headers":[{"level":2,"title":"说明","slug":"说明","link":"#说明","children":[]},{"level":2,"title":"演示","slug":"演示","link":"#演示","children":[]},{"level":2,"title":"安装","slug":"安装","link":"#安装","children":[]},{"level":2,"title":"CDN","slug":"cdn","link":"#cdn","children":[]},{"level":2,"title":"使用","slug":"使用","link":"#使用","children":[]},{"level":2,"title":"index.html 接口","slug":"index-html-接口","link":"#index-html-接口","children":[{"level":3,"title":"commit","slug":"commit","link":"#commit","children":[]},{"level":3,"title":"message","slug":"message","link":"#message","children":[]},{"level":3,"title":"destroy","slug":"destroy","link":"#destroy","children":[]}]},{"level":2,"title":"iframe.html 接口","slug":"iframe-html-接口","link":"#iframe-html-接口","children":[{"level":3,"title":"inject","slug":"inject","link":"#inject","children":[]},{"level":3,"title":"postMessage","slug":"postmessage","link":"#postmessage","children":[]}]},{"level":2,"title":"例子","slug":"例子","link":"#例子","children":[]}],"relativePath":"plugin/iframe.md","lastUpdated":1673665918000}'),p={name:"plugin/iframe.md"},e=l("",32),o=[e];function r(t,c,F,D,y,i){return a(),n("div",null,o)}const A=s(p,[["render",r]]);export{b as __pageData,A as default};
diff --git a/docs/document/assets/start_component.md.b1b531ac.js b/docs/document/assets/start_component.md.72ecc8a1.js
similarity index 94%
rename from docs/document/assets/start_component.md.b1b531ac.js
rename to docs/document/assets/start_component.md.72ecc8a1.js
index 38e142a63..42ffb9e15 100644
--- a/docs/document/assets/start_component.md.b1b531ac.js
+++ b/docs/document/assets/start_component.md.72ecc8a1.js
@@ -1,4 +1,4 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.parse('{"title":"组件配置","description":"","frontmatter":{},"headers":[{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]}],"relativePath":"start/component.md","lastUpdated":1674028264000}'),o={name:"start/component.md"},e=s('
',6),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s(`
js
var img ='/assets/sample/layer.png';
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const T=JSON.parse('{"title":"组件配置","description":"","frontmatter":{},"headers":[{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]}],"relativePath":"start/component.md","lastUpdated":1674028264000}'),o={name:"start/component.md"},e=s('
',6),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s(`
js
var img ='/assets/sample/layer.png';var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',
@@ -23,7 +23,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.p
});console.info(art.layers.potser);
-
`,2),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s(`
js
var img ='/assets/sample/layer.png';var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',
@@ -47,7 +47,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.p
});console.info(art.layers.potser);
-
`,4),F=n("div",{className:"run-code"},"▶ Run Code",-1),y=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -90,7 +90,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.p
console.info(art.controls['your-button']);console.info(art.controls.subtitle);
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -113,7 +113,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.p
});console.info(art.controls.button1);
-
`,5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',contextmenu: [
@@ -129,7 +129,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.p
});console.info(art.contextmenu['your-menu']);
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
也可以实例化之后添加一个右键菜单
`,2),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
也可以实例化之后添加一个右键菜单
`,2),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
diff --git a/docs/document/assets/start_component.md.b1b531ac.lean.js b/docs/document/assets/start_component.md.72ecc8a1.lean.js
similarity index 93%
rename from docs/document/assets/start_component.md.b1b531ac.lean.js
rename to docs/document/assets/start_component.md.72ecc8a1.lean.js
index 428ec8f6e..690f70c8d 100644
--- a/docs/document/assets/start_component.md.b1b531ac.lean.js
+++ b/docs/document/assets/start_component.md.72ecc8a1.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const T=JSON.parse('{"title":"组件配置","description":"","frontmatter":{},"headers":[{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]}],"relativePath":"start/component.md","lastUpdated":1674028264000}'),o={name:"start/component.md"},e=s("",6),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s("",2),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s("",4),F=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",2),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",1),b=[e,c,r,t,D,F,y,i,A,C,d];function h(u,m,g,_,E,f){return p(),l("div",null,b)}const x=a(o,[["render",h]]);export{T as __pageData,x as default};
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const T=JSON.parse('{"title":"组件配置","description":"","frontmatter":{},"headers":[{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]}],"relativePath":"start/component.md","lastUpdated":1674028264000}'),o={name:"start/component.md"},e=s("",6),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s("",2),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s("",4),F=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),i=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",2),C=n("div",{className:"run-code"},"▶ Run Code",-1),d=s("",1),b=[e,c,r,t,D,F,y,i,A,C,d];function h(u,m,g,_,E,f){return p(),l("div",null,b)}const x=a(o,[["render",h]]);export{T as __pageData,x as default};
diff --git a/docs/document/assets/start_option.md.20f71bce.js b/docs/document/assets/start_option.md.2c38c28e.js
similarity index 90%
rename from docs/document/assets/start_option.md.20f71bce.js
rename to docs/document/assets/start_option.md.2c38c28e.js
index 88c27a5de..589f8bc6d 100644
--- a/docs/document/assets/start_option.md.20f71bce.js
+++ b/docs/document/assets/start_option.md.2c38c28e.js
@@ -1,32 +1,32 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.parse('{"title":"基础选项","description":"","frontmatter":{},"headers":[{"level":2,"title":"container","slug":"container","link":"#container","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"id","slug":"id","link":"#id","children":[]},{"level":2,"title":"onReady","slug":"onready","link":"#onready","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"isLive","slug":"islive","link":"#islive","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"autoplay","slug":"autoplay","link":"#autoplay","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"autoMini","slug":"automini","link":"#automini","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"mutex","slug":"mutex","link":"#mutex","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"miniProgressBar","slug":"miniprogressbar","link":"#miniprogressbar","children":[]},{"level":2,"title":"useSSR","slug":"usessr","link":"#usessr","children":[]},{"level":2,"title":"playsInline","slug":"playsinline","link":"#playsinline","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"settings","slug":"settings","link":"#settings","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"quality","slug":"quality","link":"#quality","children":[]},{"level":2,"title":"highlight","slug":"highlight","link":"#highlight","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"thumbnails","slug":"thumbnails","link":"#thumbnails","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"moreVideoAttr","slug":"morevideoattr","link":"#morevideoattr","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"customType","slug":"customtype","link":"#customtype","children":[]},{"level":2,"title":"lang","slug":"lang","link":"#lang","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"lock","slug":"lock","link":"#lock","children":[]},{"level":2,"title":"fastForward","slug":"fastforward","link":"#fastforward","children":[]},{"level":2,"title":"autoPlayback","slug":"autoplayback","link":"#autoplayback","children":[]},{"level":2,"title":"autoOrientation","slug":"autoorientation","link":"#autoorientation","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]}],"relativePath":"start/option.md","lastUpdated":1675132796000}'),e={name:"start/option.md"},o=s('
',4),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s(`
js
var art =newArtplayer({
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const Dn=JSON.parse('{"title":"基础选项","description":"","frontmatter":{},"headers":[{"level":2,"title":"container","slug":"container","link":"#container","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"id","slug":"id","link":"#id","children":[]},{"level":2,"title":"onReady","slug":"onready","link":"#onready","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"isLive","slug":"islive","link":"#islive","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"autoplay","slug":"autoplay","link":"#autoplay","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"autoMini","slug":"automini","link":"#automini","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"mutex","slug":"mutex","link":"#mutex","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"miniProgressBar","slug":"miniprogressbar","link":"#miniprogressbar","children":[]},{"level":2,"title":"useSSR","slug":"usessr","link":"#usessr","children":[]},{"level":2,"title":"playsInline","slug":"playsinline","link":"#playsinline","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"settings","slug":"settings","link":"#settings","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"quality","slug":"quality","link":"#quality","children":[]},{"level":2,"title":"highlight","slug":"highlight","link":"#highlight","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"thumbnails","slug":"thumbnails","link":"#thumbnails","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"moreVideoAttr","slug":"morevideoattr","link":"#morevideoattr","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"customType","slug":"customtype","link":"#customtype","children":[]},{"level":2,"title":"lang","slug":"lang","link":"#lang","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"lock","slug":"lock","link":"#lock","children":[]},{"level":2,"title":"fastForward","slug":"fastforward","link":"#fastforward","children":[]},{"level":2,"title":"autoPlayback","slug":"autoplayback","link":"#autoplayback","children":[]},{"level":2,"title":"autoOrientation","slug":"autoorientation","link":"#autoorientation","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]}],"relativePath":"start/option.md","lastUpdated":1677226299000}'),e={name:"start/option.md"},o=s('
`,4),d=n("div",{className:"run-code"},"▶ Run Code",-1),A=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',
@@ -36,7 +36,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
this.play()},);
-
1 2 3 4 5 6 7 8 9 10
等同于:
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10
等同于:
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -45,112 +45,112 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
art.on('ready',()=>{art.play();});
-
`,4),ls=n("div",{className:"run-code"},"▶ Run Code",-1),ps=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitleOffset:true,
@@ -159,12 +159,12 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
},setting:true,});
-
`,5),cs=n("div",{className:"run-code"},"▶ Run Code",-1),rs=s(`
js
var $container = document.querySelector('.artplayer-app');$container.innerHTML = Artplayer.html;var art =newArtplayer({
@@ -172,12 +172,12 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
url:'/assets/sample/video.mp4',useSSR:true,});
-
`,4),Ds=n("div",{className:"run-code"},"▶ Run Code",-1),ys=s(`
js
var img ='/assets/sample/layer.png';var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',
@@ -201,7 +201,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
`,5),Fs=n("div",{className:"run-code"},"▶ Run Code",-1),Cs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -236,7 +236,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
`,5),ds=n("div",{className:"run-code"},"▶ Run Code",-1),As=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',contextmenu: [
@@ -249,7 +249,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
`,5),hs=n("div",{className:"run-code"},"▶ Run Code",-1),us=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -266,7 +266,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
`,6),bs=n("div",{className:"run-code"},"▶ Run Code",-1),ms=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',quality: [
@@ -281,7 +281,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
`,5),gs=n("div",{className:"run-code"},"▶ Run Code",-1),_s=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',highlight: [
@@ -307,7 +307,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
}, ],});
-
`,4),vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ts=s(`
js
functionmyPlugin(art){console.info(art);return{ name:'myPlugin',
@@ -323,14 +323,14 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
url:'/assets/sample/video.mp4',plugins: [myPlugin],});
-
`,6),Es=n("div",{className:"run-code"},"▶ Run Code",-1),fs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',whitelist: [(ua)=>/iPhone/gi.test(ua)],// whitelist: [/iPhone/gi],// whitelist: ['iPhone'],});
-
`,6),Ss=n("div",{className:"run-code"},"▶ Run Code",-1),ks=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',thumbnails:{
@@ -339,7 +339,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
column:10,},});
-
`,6),ws=n("div",{className:"run-code"},"▶ Run Code",-1),xs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -353,7 +353,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
},},});
-
`,4),Ps=n("div",{className:"run-code"},"▶ Run Code",-1),Rs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',moreVideoAttr:{
@@ -361,7 +361,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
playsInline:true,},});
-
`,4),js=n("div",{className:"run-code"},"▶ Run Code",-1),Ns=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',icons:{
@@ -369,12 +369,12 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
state:'<img src="/assets/img/state.png">',},});
-
`,6),Bs=n("div",{className:"run-code"},"▶ Run Code",-1),qs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.m3u8',customType:{
@@ -383,12 +383,12 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
},},});
-
`,5),Ms=n("div",{className:"run-code"},"▶ Run Code",-1),Ls=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',lang:'your-lang',
@@ -398,7 +398,7 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
},},});
-
1 2 3 4 5 6 7 8 9 10
修改现有的语言
`,2),$s=n("div",{className:"run-code"},"▶ Run Code",-1),Hs=s(`
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10
修改现有的语言
`,2),$s=n("div",{className:"run-code"},"▶ Run Code",-1),Hs=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',i18n:{
@@ -410,30 +410,30 @@ import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.
},},});
-
`,4),Zs=n("div",{className:"run-code"},"▶ Run Code",-1),sn=s(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',airplay:true,});
-
1 2 3 4 5
`,1),nn=[o,c,r,t,D,i,y,F,C,d,A,h,u,b,m,g,_,v,T,E,f,S,k,w,P,R,j,N,I,V,x,B,q,O,z,M,L,$,H,Y,W,J,U,G,K,Q,X,Z,ss,ns,as,ls,ps,es,os,cs,rs,ts,Ds,is,ys,Fs,Cs,ds,As,hs,us,bs,ms,gs,_s,vs,Ts,Es,fs,Ss,ks,ws,Ps,Rs,js,Ns,Is,Vs,xs,Bs,qs,Os,zs,Ms,Ls,$s,Hs,Ys,Ws,Js,Us,Gs,Ks,Qs,Xs,Zs,sn];function an(ln,pn,en,on,cn,rn){return p(),l("div",null,nn)}const yn=a(e,[["render",an]]);export{Dn as __pageData,yn as default};
+
1 2 3 4 5
`,1),nn=[o,c,r,t,i,D,y,F,C,d,A,h,u,b,m,g,_,v,T,E,f,S,k,w,x,P,R,j,N,I,V,B,q,O,z,M,L,$,H,Y,W,J,U,G,K,Q,X,Z,ss,ns,as,ls,ps,es,os,cs,rs,ts,is,Ds,ys,Fs,Cs,ds,As,hs,us,bs,ms,gs,_s,vs,Ts,Es,fs,Ss,ks,ws,xs,Ps,Rs,js,Ns,Is,Vs,Bs,qs,Os,zs,Ms,Ls,$s,Hs,Ys,Ws,Js,Us,Gs,Ks,Qs,Xs,Zs,sn];function an(ln,pn,en,on,cn,rn){return p(),l("div",null,nn)}const yn=a(e,[["render",an]]);export{Dn as __pageData,yn as default};
diff --git a/docs/document/assets/start_option.md.20f71bce.lean.js b/docs/document/assets/start_option.md.2c38c28e.lean.js
similarity index 86%
rename from docs/document/assets/start_option.md.20f71bce.lean.js
rename to docs/document/assets/start_option.md.2c38c28e.lean.js
index 61f717d64..dd1d19e16 100644
--- a/docs/document/assets/start_option.md.20f71bce.lean.js
+++ b/docs/document/assets/start_option.md.2c38c28e.lean.js
@@ -1 +1 @@
-import{_ as a,c as l,o as p,a as s,b as n}from"./app.ad61275b.js";const Dn=JSON.parse('{"title":"基础选项","description":"","frontmatter":{},"headers":[{"level":2,"title":"container","slug":"container","link":"#container","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"id","slug":"id","link":"#id","children":[]},{"level":2,"title":"onReady","slug":"onready","link":"#onready","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"isLive","slug":"islive","link":"#islive","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"autoplay","slug":"autoplay","link":"#autoplay","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"autoMini","slug":"automini","link":"#automini","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"mutex","slug":"mutex","link":"#mutex","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"miniProgressBar","slug":"miniprogressbar","link":"#miniprogressbar","children":[]},{"level":2,"title":"useSSR","slug":"usessr","link":"#usessr","children":[]},{"level":2,"title":"playsInline","slug":"playsinline","link":"#playsinline","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"settings","slug":"settings","link":"#settings","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"quality","slug":"quality","link":"#quality","children":[]},{"level":2,"title":"highlight","slug":"highlight","link":"#highlight","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"thumbnails","slug":"thumbnails","link":"#thumbnails","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"moreVideoAttr","slug":"morevideoattr","link":"#morevideoattr","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"customType","slug":"customtype","link":"#customtype","children":[]},{"level":2,"title":"lang","slug":"lang","link":"#lang","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"lock","slug":"lock","link":"#lock","children":[]},{"level":2,"title":"fastForward","slug":"fastforward","link":"#fastforward","children":[]},{"level":2,"title":"autoPlayback","slug":"autoplayback","link":"#autoplayback","children":[]},{"level":2,"title":"autoOrientation","slug":"autoorientation","link":"#autoorientation","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]}],"relativePath":"start/option.md","lastUpdated":1675132796000}'),e={name:"start/option.md"},o=s("",4),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s("",9),t=n("div",{className:"run-code"},"▶ Run Code",-1),D=s("",2),i=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),F=n("div",{className:"run-code"},"▶ Run Code",-1),C=s("",4),d=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",7),h=n("div",{className:"run-code"},"▶ Run Code",-1),u=s("",4),b=n("div",{className:"run-code"},"▶ Run Code",-1),m=s("",4),g=n("div",{className:"run-code"},"▶ Run Code",-1),_=s("",4),v=n("div",{className:"run-code"},"▶ Run Code",-1),T=s("",5),E=n("div",{className:"run-code"},"▶ Run Code",-1),f=s("",4),S=n("div",{className:"run-code"},"▶ Run Code",-1),k=s("",4),w=n("div",{className:"run-code"},"▶ Run Code",-1),P=s("",5),R=n("div",{className:"run-code"},"▶ Run Code",-1),j=s("",4),N=n("div",{className:"run-code"},"▶ Run Code",-1),I=s("",4),V=n("div",{className:"run-code"},"▶ Run Code",-1),x=s("",4),B=n("div",{className:"run-code"},"▶ Run Code",-1),q=s("",4),O=n("div",{className:"run-code"},"▶ Run Code",-1),z=s("",4),M=n("div",{className:"run-code"},"▶ Run Code",-1),L=s("",4),$=n("div",{className:"run-code"},"▶ Run Code",-1),H=s("",5),Y=n("div",{className:"run-code"},"▶ Run Code",-1),W=s("",4),J=n("div",{className:"run-code"},"▶ Run Code",-1),U=s("",6),G=n("div",{className:"run-code"},"▶ Run Code",-1),K=s("",4),Q=n("div",{className:"run-code"},"▶ Run Code",-1),X=s("",4),Z=n("div",{className:"run-code"},"▶ Run Code",-1),ss=s("",4),ns=n("div",{className:"run-code"},"▶ Run Code",-1),as=s("",4),ls=n("div",{className:"run-code"},"▶ Run Code",-1),ps=s("",4),es=n("div",{className:"run-code"},"▶ Run Code",-1),os=s("",5),cs=n("div",{className:"run-code"},"▶ Run Code",-1),rs=s("",4),ts=n("div",{className:"run-code"},"▶ Run Code",-1),Ds=s("",4),is=n("div",{className:"run-code"},"▶ Run Code",-1),ys=s("",5),Fs=n("div",{className:"run-code"},"▶ Run Code",-1),Cs=s("",5),ds=n("div",{className:"run-code"},"▶ Run Code",-1),As=s("",5),hs=n("div",{className:"run-code"},"▶ Run Code",-1),us=s("",6),bs=n("div",{className:"run-code"},"▶ Run Code",-1),ms=s("",5),gs=n("div",{className:"run-code"},"▶ Run Code",-1),_s=s("",4),vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ts=s("",6),Es=n("div",{className:"run-code"},"▶ Run Code",-1),fs=s("",6),Ss=n("div",{className:"run-code"},"▶ Run Code",-1),ks=s("",6),ws=n("div",{className:"run-code"},"▶ Run Code",-1),Ps=s("",4),Rs=n("div",{className:"run-code"},"▶ Run Code",-1),js=s("",4),Ns=n("div",{className:"run-code"},"▶ Run Code",-1),Is=s("",5),Vs=n("div",{className:"run-code"},"▶ Run Code",-1),xs=s("",6),Bs=n("div",{className:"run-code"},"▶ Run Code",-1),qs=s("",4),Os=n("div",{className:"run-code"},"▶ Run Code",-1),zs=s("",5),Ms=n("div",{className:"run-code"},"▶ Run Code",-1),Ls=s("",2),$s=n("div",{className:"run-code"},"▶ Run Code",-1),Hs=s("",5),Ys=n("div",{className:"run-code"},"▶ Run Code",-1),Ws=s("",4),Js=n("div",{className:"run-code"},"▶ Run Code",-1),Us=s("",4),Gs=n("div",{className:"run-code"},"▶ Run Code",-1),Ks=s("",5),Qs=n("div",{className:"run-code"},"▶ Run Code",-1),Xs=s("",4),Zs=n("div",{className:"run-code"},"▶ Run Code",-1),sn=s("",1),nn=[o,c,r,t,D,i,y,F,C,d,A,h,u,b,m,g,_,v,T,E,f,S,k,w,P,R,j,N,I,V,x,B,q,O,z,M,L,$,H,Y,W,J,U,G,K,Q,X,Z,ss,ns,as,ls,ps,es,os,cs,rs,ts,Ds,is,ys,Fs,Cs,ds,As,hs,us,bs,ms,gs,_s,vs,Ts,Es,fs,Ss,ks,ws,Ps,Rs,js,Ns,Is,Vs,xs,Bs,qs,Os,zs,Ms,Ls,$s,Hs,Ys,Ws,Js,Us,Gs,Ks,Qs,Xs,Zs,sn];function an(ln,pn,en,on,cn,rn){return p(),l("div",null,nn)}const yn=a(e,[["render",an]]);export{Dn as __pageData,yn as default};
+import{_ as a,c as l,o as p,a as s,b as n}from"./app.77a2ba76.js";const Dn=JSON.parse('{"title":"基础选项","description":"","frontmatter":{},"headers":[{"level":2,"title":"container","slug":"container","link":"#container","children":[]},{"level":2,"title":"url","slug":"url","link":"#url","children":[]},{"level":2,"title":"id","slug":"id","link":"#id","children":[]},{"level":2,"title":"onReady","slug":"onready","link":"#onready","children":[]},{"level":2,"title":"poster","slug":"poster","link":"#poster","children":[]},{"level":2,"title":"title","slug":"title","link":"#title","children":[]},{"level":2,"title":"theme","slug":"theme","link":"#theme","children":[]},{"level":2,"title":"volume","slug":"volume","link":"#volume","children":[]},{"level":2,"title":"isLive","slug":"islive","link":"#islive","children":[]},{"level":2,"title":"muted","slug":"muted","link":"#muted","children":[]},{"level":2,"title":"autoplay","slug":"autoplay","link":"#autoplay","children":[]},{"level":2,"title":"autoSize","slug":"autosize","link":"#autosize","children":[]},{"level":2,"title":"autoMini","slug":"automini","link":"#automini","children":[]},{"level":2,"title":"loop","slug":"loop","link":"#loop","children":[]},{"level":2,"title":"flip","slug":"flip","link":"#flip","children":[]},{"level":2,"title":"playbackRate","slug":"playbackrate","link":"#playbackrate","children":[]},{"level":2,"title":"aspectRatio","slug":"aspectratio","link":"#aspectratio","children":[]},{"level":2,"title":"screenshot","slug":"screenshot","link":"#screenshot","children":[]},{"level":2,"title":"setting","slug":"setting","link":"#setting","children":[]},{"level":2,"title":"hotkey","slug":"hotkey","link":"#hotkey","children":[]},{"level":2,"title":"pip","slug":"pip","link":"#pip","children":[]},{"level":2,"title":"mutex","slug":"mutex","link":"#mutex","children":[]},{"level":2,"title":"fullscreen","slug":"fullscreen","link":"#fullscreen","children":[]},{"level":2,"title":"fullscreenWeb","slug":"fullscreenweb","link":"#fullscreenweb","children":[]},{"level":2,"title":"subtitleOffset","slug":"subtitleoffset","link":"#subtitleoffset","children":[]},{"level":2,"title":"miniProgressBar","slug":"miniprogressbar","link":"#miniprogressbar","children":[]},{"level":2,"title":"useSSR","slug":"usessr","link":"#usessr","children":[]},{"level":2,"title":"playsInline","slug":"playsinline","link":"#playsinline","children":[]},{"level":2,"title":"layers","slug":"layers","link":"#layers","children":[]},{"level":2,"title":"settings","slug":"settings","link":"#settings","children":[]},{"level":2,"title":"contextmenu","slug":"contextmenu","link":"#contextmenu","children":[]},{"level":2,"title":"controls","slug":"controls","link":"#controls","children":[]},{"level":2,"title":"quality","slug":"quality","link":"#quality","children":[]},{"level":2,"title":"highlight","slug":"highlight","link":"#highlight","children":[]},{"level":2,"title":"plugins","slug":"plugins","link":"#plugins","children":[]},{"level":2,"title":"whitelist","slug":"whitelist","link":"#whitelist","children":[]},{"level":2,"title":"thumbnails","slug":"thumbnails","link":"#thumbnails","children":[]},{"level":2,"title":"subtitle","slug":"subtitle","link":"#subtitle","children":[]},{"level":2,"title":"moreVideoAttr","slug":"morevideoattr","link":"#morevideoattr","children":[]},{"level":2,"title":"icons","slug":"icons","link":"#icons","children":[]},{"level":2,"title":"type","slug":"type","link":"#type","children":[]},{"level":2,"title":"customType","slug":"customtype","link":"#customtype","children":[]},{"level":2,"title":"lang","slug":"lang","link":"#lang","children":[]},{"level":2,"title":"i18n","slug":"i18n","link":"#i18n","children":[]},{"level":2,"title":"lock","slug":"lock","link":"#lock","children":[]},{"level":2,"title":"fastForward","slug":"fastforward","link":"#fastforward","children":[]},{"level":2,"title":"autoPlayback","slug":"autoplayback","link":"#autoplayback","children":[]},{"level":2,"title":"autoOrientation","slug":"autoorientation","link":"#autoorientation","children":[]},{"level":2,"title":"airplay","slug":"airplay","link":"#airplay","children":[]}],"relativePath":"start/option.md","lastUpdated":1677226299000}'),e={name:"start/option.md"},o=s("",4),c=n("div",{className:"run-code"},"▶ Run Code",-1),r=s("",9),t=n("div",{className:"run-code"},"▶ Run Code",-1),i=s("",2),D=n("div",{className:"run-code"},"▶ Run Code",-1),y=s("",5),F=n("div",{className:"run-code"},"▶ Run Code",-1),C=s("",4),d=n("div",{className:"run-code"},"▶ Run Code",-1),A=s("",7),h=n("div",{className:"run-code"},"▶ Run Code",-1),u=s("",4),b=n("div",{className:"run-code"},"▶ Run Code",-1),m=s("",4),g=n("div",{className:"run-code"},"▶ Run Code",-1),_=s("",4),v=n("div",{className:"run-code"},"▶ Run Code",-1),T=s("",5),E=n("div",{className:"run-code"},"▶ Run Code",-1),f=s("",4),S=n("div",{className:"run-code"},"▶ Run Code",-1),k=s("",4),w=n("div",{className:"run-code"},"▶ Run Code",-1),x=s("",5),P=n("div",{className:"run-code"},"▶ Run Code",-1),R=s("",4),j=n("div",{className:"run-code"},"▶ Run Code",-1),N=s("",4),I=n("div",{className:"run-code"},"▶ Run Code",-1),V=s("",4),B=n("div",{className:"run-code"},"▶ Run Code",-1),q=s("",4),O=n("div",{className:"run-code"},"▶ Run Code",-1),z=s("",4),M=n("div",{className:"run-code"},"▶ Run Code",-1),L=s("",4),$=n("div",{className:"run-code"},"▶ Run Code",-1),H=s("",5),Y=n("div",{className:"run-code"},"▶ Run Code",-1),W=s("",4),J=n("div",{className:"run-code"},"▶ Run Code",-1),U=s("",6),G=n("div",{className:"run-code"},"▶ Run Code",-1),K=s("",4),Q=n("div",{className:"run-code"},"▶ Run Code",-1),X=s("",4),Z=n("div",{className:"run-code"},"▶ Run Code",-1),ss=s("",4),ns=n("div",{className:"run-code"},"▶ Run Code",-1),as=s("",4),ls=n("div",{className:"run-code"},"▶ Run Code",-1),ps=s("",4),es=n("div",{className:"run-code"},"▶ Run Code",-1),os=s("",5),cs=n("div",{className:"run-code"},"▶ Run Code",-1),rs=s("",4),ts=n("div",{className:"run-code"},"▶ Run Code",-1),is=s("",4),Ds=n("div",{className:"run-code"},"▶ Run Code",-1),ys=s("",5),Fs=n("div",{className:"run-code"},"▶ Run Code",-1),Cs=s("",5),ds=n("div",{className:"run-code"},"▶ Run Code",-1),As=s("",5),hs=n("div",{className:"run-code"},"▶ Run Code",-1),us=s("",6),bs=n("div",{className:"run-code"},"▶ Run Code",-1),ms=s("",5),gs=n("div",{className:"run-code"},"▶ Run Code",-1),_s=s("",4),vs=n("div",{className:"run-code"},"▶ Run Code",-1),Ts=s("",6),Es=n("div",{className:"run-code"},"▶ Run Code",-1),fs=s("",6),Ss=n("div",{className:"run-code"},"▶ Run Code",-1),ks=s("",6),ws=n("div",{className:"run-code"},"▶ Run Code",-1),xs=s("",4),Ps=n("div",{className:"run-code"},"▶ Run Code",-1),Rs=s("",4),js=n("div",{className:"run-code"},"▶ Run Code",-1),Ns=s("",5),Is=n("div",{className:"run-code"},"▶ Run Code",-1),Vs=s("",6),Bs=n("div",{className:"run-code"},"▶ Run Code",-1),qs=s("",4),Os=n("div",{className:"run-code"},"▶ Run Code",-1),zs=s("",5),Ms=n("div",{className:"run-code"},"▶ Run Code",-1),Ls=s("",2),$s=n("div",{className:"run-code"},"▶ Run Code",-1),Hs=s("",5),Ys=n("div",{className:"run-code"},"▶ Run Code",-1),Ws=s("",4),Js=n("div",{className:"run-code"},"▶ Run Code",-1),Us=s("",4),Gs=n("div",{className:"run-code"},"▶ Run Code",-1),Ks=s("",5),Qs=n("div",{className:"run-code"},"▶ Run Code",-1),Xs=s("",4),Zs=n("div",{className:"run-code"},"▶ Run Code",-1),sn=s("",1),nn=[o,c,r,t,i,D,y,F,C,d,A,h,u,b,m,g,_,v,T,E,f,S,k,w,x,P,R,j,N,I,V,B,q,O,z,M,L,$,H,Y,W,J,U,G,K,Q,X,Z,ss,ns,as,ls,ps,es,os,cs,rs,ts,is,Ds,ys,Fs,Cs,ds,As,hs,us,bs,ms,gs,_s,vs,Ts,Es,fs,Ss,ks,ws,xs,Ps,Rs,js,Ns,Is,Vs,Bs,qs,Os,zs,Ms,Ls,$s,Hs,Ys,Ws,Js,Us,Gs,Ks,Qs,Xs,Zs,sn];function an(ln,pn,en,on,cn,rn){return p(),l("div",null,nn)}const yn=a(e,[["render",an]]);export{Dn as __pageData,yn as default};
diff --git a/docs/document/assets/start_setting.md.dd2b81cc.js b/docs/document/assets/start_setting.md.a02c089b.js
similarity index 94%
rename from docs/document/assets/start_setting.md.dd2b81cc.js
rename to docs/document/assets/start_setting.md.a02c089b.js
index 9e7be2728..597072e30 100644
--- a/docs/document/assets/start_setting.md.dd2b81cc.js
+++ b/docs/document/assets/start_setting.md.a02c089b.js
@@ -1,4 +1,4 @@
-import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.parse('{"title":"设置面板","description":"","frontmatter":{},"headers":[{"level":2,"title":"选择列表","slug":"选择列表","link":"#选择列表","children":[]},{"level":2,"title":"列表嵌套","slug":"列表嵌套","link":"#列表嵌套","children":[]},{"level":2,"title":"切换按钮","slug":"切换按钮","link":"#切换按钮","children":[]},{"level":2,"title":"范围滑块","slug":"范围滑块","link":"#范围滑块","children":[]}],"relativePath":"start/setting.md","lastUpdated":1674271220000}'),e={name:"start/setting.md"},t=s("h1",{id:"设置面板",tabindex:"-1"},[n("设置面板 "),s("a",{class:"header-anchor",href:"#设置面板","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("需先打开设置面板,播放器默认自带四个设置项:"),s("code",null,"flip"),n(", "),s("code",null,"playbackRate"),n(", "),s("code",null,"aspectRatio"),n(", "),s("code",null,"subtitleOffset")],-1),r=s("div",{className:"run-code"},"▶ Run Code",-1),D=a(`
js
var art =newArtplayer({
+import{_ as l,c as p,o,b as s,d as n,a}from"./app.77a2ba76.js";const w=JSON.parse('{"title":"设置面板","description":"","frontmatter":{},"headers":[{"level":2,"title":"选择列表","slug":"选择列表","link":"#选择列表","children":[]},{"level":2,"title":"列表嵌套","slug":"列表嵌套","link":"#列表嵌套","children":[]},{"level":2,"title":"切换按钮","slug":"切换按钮","link":"#切换按钮","children":[]},{"level":2,"title":"范围滑块","slug":"范围滑块","link":"#范围滑块","children":[]}],"relativePath":"start/setting.md","lastUpdated":1674271220000}'),e={name:"start/setting.md"},t=s("h1",{id:"设置面板",tabindex:"-1"},[n("设置面板 "),s("a",{class:"header-anchor",href:"#设置面板","aria-hidden":"true"},"#")],-1),c=s("p",null,[n("需先打开设置面板,播放器默认自带四个设置项:"),s("code",null,"flip"),n(", "),s("code",null,"playbackRate"),n(", "),s("code",null,"aspectRatio"),n(", "),s("code",null,"subtitleOffset")],-1),r=s("div",{className:"run-code"},"▶ Run Code",-1),D=a(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -7,7 +7,7 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.pars
aspectRatio:true,subtitleOffset:true,});
-
`,3),y=s("div",{className:"run-code"},"▶ Run Code",-1),F=a(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -60,7 +60,7 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.pars
}, ],});
-
`,2),C=s("div",{className:"run-code"},"▶ Run Code",-1),A=a(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -104,7 +104,7 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.pars
}, ],});
-
`,3),i=s("div",{className:"run-code"},"▶ Run Code",-1),d=a(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -124,12 +124,12 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.pars
}, ],});
-
const range = [5,1,10,1];const value = range[0];const min = range[1];const max = range[2];const step = range[3];
-
1 2 3 4 5
`,4),b=s("div",{className:"run-code"},"▶ Run Code",-1),u=a(`
js
var art =newArtplayer({
+
1 2 3 4 5
`,4),b=s("div",{className:"run-code"},"▶ Run Code",-1),u=a(`
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -146,4 +146,4 @@ import{_ as l,c as p,o,b as s,d as n,a}from"./app.ad61275b.js";const w=JSON.pars
}, ],});
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
`,1),m=[t,c,r,D,y,F,C,A,i,d,b,u];function h(_,g,E,v,f,S){return o(),p("div",null,m)}const P=l(e,[["render",h]]);export{w as __pageData,P as default};
+
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',whitelist: [(ua)=>/iPhone/gi.test(ua)],});console.info(art.whitelist.state);
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -66,20 +66,20 @@
console.info(test);art.storage.del('test');art.storage.clear();
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});art.storage.name ='your-storage-key';art.storage.set('test',{foo:'bar'});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -99,7 +99,7 @@
art.on('ready',()=>{art.notice.show='Video Ready To Play';})
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -180,7 +180,7 @@
art.hotkey.remove(32,hotkeyEvent);},5000);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -207,7 +207,7 @@
art.setting.show=false;},1000);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -226,9 +226,9 @@
art.on('ready',()=>{art.plugins.add(myPlugin);});
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
-
-
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
+
+
\ No newline at end of file
diff --git a/docs/document/en/advanced/class.html b/docs/document/en/advanced/class.html
index d6e2e5478..9326e02d7 100644
--- a/docs/document/en/advanced/class.html
+++ b/docs/document/en/advanced/class.html
@@ -1,14 +1,14 @@
-
+
静态属性 | Artplayer.js
-
-
-
-
+
+
+
+
@@ -16,7 +16,7 @@
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -24,7 +24,7 @@
art.on('video:canplay',()=>{console.info('video:canplay');});
-
1 2 3 4 5 6 7 8
只监听一次事件:
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8
只监听一次事件:
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -32,13 +32,13 @@
art.once('video:canplay',()=>{console.info('video:canplay');});
-
1 2 3 4 5 6 7 8
手动触发事件:
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8
手动触发事件:
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});art.emit('focus');
-
1 2 3 4 5 6
移除事件:
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6
移除事件:
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -49,7 +49,7 @@
}art.on('ready', onReady);
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -69,7 +69,7 @@
art.on('restart',()=>{console.info('restart');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -93,7 +93,7 @@
art.on('hotkey',(event)=>{console.info('hotkey',event);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -105,7 +105,7 @@
art.on('destroy',()=>{console.info('destroy');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -117,7 +117,7 @@
art.on('url',(url)=>{console.info('url',url);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -125,7 +125,7 @@
art.on('focus',()=>{console.info('focus');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -141,7 +141,7 @@
art.on('dblclick',()=>{console.info('dblclick');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -149,7 +149,7 @@
art.on('click',()=>{console.info('click');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/404.mp4',});
@@ -157,7 +157,7 @@
art.on('error',(error,reconnectTime)=>{console.info(error,reconnectTime);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -165,7 +165,7 @@
art.on('hover',(state)=>{console.info('hover',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -173,7 +173,7 @@
art.on('mousemove',(event)=>{console.info('mousemove',event);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -181,7 +181,7 @@
art.on('resize',()=>{console.info('resize');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -189,7 +189,7 @@
art.on('view',(state)=>{console.info('view',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',aspectRatio:true,
@@ -199,7 +199,7 @@
art.on('aspectRatio',(aspectRatio)=>{console.info('aspectRatio',aspectRatio);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -211,7 +211,7 @@
art.on('autoHeight',(height)=>{console.info('autoHeight',height);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoSize:true,
@@ -220,7 +220,7 @@
art.on('autoSize',()=>{console.info('autoSize');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',flip:true,
@@ -230,7 +230,7 @@
art.on('flip',(flip)=>{console.info('flip',flip);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreen:true,
@@ -239,7 +239,7 @@
art.on('fullscreen',(state)=>{console.info('fullscreen',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreenWeb:true,
@@ -248,7 +248,7 @@
art.on('fullscreenWeb',(state)=>{console.info('fullscreenWeb',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -260,7 +260,7 @@
art.on('mini',(state)=>{console.info('mini',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',pip:true,
@@ -269,7 +269,7 @@
art.on('pip',(state)=>{console.info('pip',state);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',screenshot:true,
@@ -278,7 +278,7 @@
art.on('screenshot',(dataUri)=>{console.info('screenshot',dataUri);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -286,7 +286,7 @@
art.on('seek',(currentTime)=>{console.info('seek',currentTime);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitleOffset:true,
@@ -299,7 +299,7 @@
art.on('subtitleOffset',(offset)=>{console.info('subtitleOffset',offset);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -310,7 +310,7 @@
art.on('subtitleUpdate',(text)=>{console.info('subtitleUpdate',text);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -321,7 +321,7 @@
art.on('subtitleLoad',(url)=>{console.info('subtitleLoad',url);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',subtitle:{
@@ -336,9 +336,74 @@
art.on('subtitleSwitch',(url)=>{console.info('subtitleSwitch',url);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -105,7 +105,7 @@
art.on('ready',()=>{art.url='/assets/sample/video.mp4?t=0';});
-
Setting the video url is similar to that of url, but some optimization operations will be performed
The function supports two parameters, the first is the new video url, and the second is the optional new video name
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -116,7 +116,7 @@
art.switchUrl('/assets/sample/video.mp4?t=0','New Video Name');},3000);});
-
Set the video quality address, similar to switchUrl, but with the previous playback progress
The function supports two parameters, the first is the new video url, and the second is the optional new video name
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -127,7 +127,7 @@
art.switchQuality('/assets/sample/video.mp4?t=0','New Video Name');},3000);});
-
Set and get the current time of the video. Setting the time is similar to seek, but it will not trigger additional events
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -147,7 +147,7 @@
art.currentTime=5;console.info(art.currentTime);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -155,7 +155,7 @@
art.on('ready',()=>{console.info(art.duration);});
-
1 2 3 4 5 6 7 8
Tip
Some videos have no duration, such as live videos or videos that have not been decoded. The duration obtained at this time will be 0
Get the base64 address of the screenshot of the current video frame, and return a Promise
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -172,7 +172,7 @@
consturl=awaitart.getDataURL();console.info(url)});
-
Get the blob address of the screenshot of the current video frame, and return a Promise
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -181,7 +181,7 @@
consturl=awaitart.getBlobUrl();console.info(url);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -194,7 +194,7 @@
}, ],});
-
1 2 3 4 5 6 7 8 9 10 11 12 13
Tip
Due to the browser security mechanism, the page must have interaction before triggering the full screen of the window (for example, the user has clicked on the page)
Due to the browser security mechanism, the page must have interaction before triggering the full screen of the window (for example, the user has clicked on the page)
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',fullscreenWeb:true,
@@ -207,7 +207,7 @@
art.fullscreenWeb=false;},3000);});
-
Set and get the picture-in-picture mode of the player
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -220,7 +220,7 @@
}, ],});
-
1 2 3 4 5 6 7 8 9 10 11 12 13
Tip
Due to the browser security mechanism, before triggering picture-in-picture, the page must have interaction (for example, the user has clicked on the page)
Set and obtain video posters. You can only see the poster effect before the video is played
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10 11 12 13
Tip
Due to the browser security mechanism, before triggering picture-in-picture, the page must have interaction (for example, the user has clicked on the page)
Set and obtain video posters. You can only see the poster effect before the video is played
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',poster:'/assets/sample/poster.jpg',
@@ -231,7 +231,7 @@
art.poster='/assets/sample/poster.jpg?t=0';console.info(art.poster);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -248,7 +248,7 @@
art.on('ready',()=>{console.info(art.playing);});
-
Set whether the video is adaptive size. After setting it to true, it will only be executed once
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -258,7 +258,7 @@
art.autoSize=true;console.info(art.autoSize);});
-
Get the size and coordinate information of the player
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -266,7 +266,7 @@
art.on('ready',()=>{console.info(JSON.stringify(art.rect));});
-
1 2 3 4 5 6 7 8
Tip
Dimension and coordinate information are obtained through getBoundingClientRect
Set and get player rollover, support normal, horizontal, vertical
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -276,7 +276,7 @@
art.flip='horizontal';console.info(art.flip);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -286,7 +286,7 @@
art.playbackRate=2;console.info(art.playbackRate);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -296,7 +296,7 @@
art.aspectRatio='16:9';console.info(art.aspectRatio);});
-
When the container has only width, this attribute can automatically calculate and set the height of the video. After it is set to true, it will only be executed once
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10
Tip
To delete interval looping, just set loop to []
art.loop and art.option.loop aer two different things, please don't mix them up
When the container has only width, this attribute can automatically calculate and set the height of the video. After it is set to true, it will only be executed once
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -318,7 +318,7 @@
art.on('resize',()=>{art.autoHeight=true;});
-
1 2 3 4 5 6 7 8 9 10 11 12
提示
This attribute is useful when your container has only width but does not know the specific height. It can automatically calculate the height of the video, but you need to determine the time to set this attribute
Get and set the attributes of the video element dynamically
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10 11 12
提示
This attribute is useful when your container has only width but does not know the specific height. It can automatically calculate the height of the video, but you need to determine the time to set this attribute
Get and set the attributes of the video element dynamically
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -328,7 +328,7 @@
art.attr('playsInline',true);console.info(art.attr('playsInline'));});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -338,7 +338,7 @@
art.title='New Title';console.info(art.title);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -358,7 +358,7 @@
art.theme='#000';console.info(art.theme);});
-
The proportion of video cache, with the range of [0, 1], is often used in conjunction with the video:timeupdate event
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -379,7 +379,7 @@
art.on('video:timeupdate',()=>{console.info(art.loaded);});
-
The proportion of video playback, with the range of [0, 1], is often used in conjunction with the video:timeupdate event
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -387,7 +387,7 @@
art.on('video:timeupdate',()=>{console.info(art.played);});
-
The proxy function of DOM event essentially proxies addEventListener and removeEventListener. When proxy is used to process the event, the player will also automatically destroy the event when it is destroyed
▶ Run Code
js
var container = document.querySelector('.artplayer-app');
+
The proxy function of DOM event essentially proxies addEventListener and removeEventListener. When proxy is used to process the event, the player will also automatically destroy the event when it is destroyed
▶ Run Code
js
var container = document.querySelector('.artplayer-app');var art =newArtplayer({container: container,
@@ -397,21 +397,21 @@
art.proxy(container,'click',event=>{console.info(event);});
-
1 2 3 4 5 6 7 8 9 10
Tip
If you need some DOM events only exist in the life cycle of the player, we strongly recommend using this function to avoid memory leakage
The query function of DOM is similar to document.querySelector, but the queried object is limited to the current player, which can avoid errors of the same class name
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10
Tip
If you need some DOM events only exist in the life cycle of the player, we strongly recommend using this function to avoid memory leakage
The query function of DOM is similar to document.querySelector, but the queried object is limited to the current player, which can avoid errors of the same class name
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});console.info(art.query('.art-video'));
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoSize:true,
@@ -70,9 +70,9 @@
art.on('artplayerPluginAds:skip',(ads)=>{console.info(ads);});
-
position: left and right positions of control controller
selector: Object array of selection list
onSelect: Function triggered when an element of the selection list is clicked
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -108,7 +108,7 @@
console.info(art.controls['your-button']);console.info(art.controls.subtitle);
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',contextmenu: [
@@ -147,7 +147,7 @@
});console.info(art.contextmenu['your-menu']);
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
You can also add a contextmenu after instantiation
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
You can also add a contextmenu after instantiation
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -162,9 +162,9 @@
});console.info(art.contextmenu['your-menu']);
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-
-
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+
+
\ No newline at end of file
diff --git a/docs/document/en/start/option.html b/docs/document/en/start/option.html
index 326d7f210..b8ee49ff6 100644
--- a/docs/document/en/start/option.html
+++ b/docs/document/en/start/option.html
@@ -1,14 +1,14 @@
-
+
Option | Artplayer.js
-
-
-
-
+
+
+
+
@@ -16,35 +16,35 @@
-
The constructor accepts a function as the second parameter, which is triggered when the player is initialized successfully and the video can be played, just like the ready event
The constructor accepts a function as the second parameter, which is triggered when the player is initialized successfully and the video can be played, just like the ready event
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',
@@ -54,7 +54,7 @@
this.play()},);
-
1 2 3 4 5 6 7 8 9 10
Equivalent to:
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10
Equivalent to:
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -63,112 +63,112 @@
art.on('ready',()=>{art.play();});
-
1 2 3 4 5 6 7 8 9
Tip
The this in the callback function is the player instance, but if the callback function uses the arrow function, the this will not point to the player instance
Video posters will only appear when the player is initialized and not played
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9
Tip
The this in the callback function is the player instance, but if the callback function uses the arrow function, the this will not point to the player instance
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoplay:true,muted:true,});
-
1 2 3 4 5 6
Tip
If you want to enter the page by default to automatically play the video, muted must be true. For more information, please read Autoplay Policy Changes
The size of the player will fill the entire container size by default, so black edges often appear. This value can automatically adjust the size of the player to hide the black edges, similar to the object-fit: contain of css
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6
Tip
If you want to enter the page by default to automatically play the video, muted must be true. For more information, please read Autoplay Policy Changes
The size of the player will fill the entire container size by default, so black edges often appear. This value can automatically adjust the size of the player to hide the black edges, similar to the object-fit: contain of css
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoSize:true,});
-
Because different mobile devices have many differences and limitations, sometimes you want to use native functions directly instead of using this player on some mobile devices, you can use this option to control
The whitelist is an array type, which is matched with window.navigator.userAgent respectively. The player will be enabled as long as one of the matches is successful
Support string matching, function matching and regular matching
Because different mobile devices have many differences and limitations, sometimes you want to use native functions directly instead of using this player on some mobile devices, you can use this option to control
The whitelist is an array type, which is matched with window.navigator.userAgent respectively. The player will be enabled as long as one of the matches is successful
Support string matching, function matching and regular matching
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',whitelist: [(ua)=>/iPhone/gi.test(ua)],// whitelist: [/iPhone/gi],// whitelist: ['iPhone'],});
-
1 2 3 4 5 6 7
Tip
If this option is not filled in, the player will be used by default
It is used to replace the default icon and supports Html String and HTMLElement
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',icons:{
@@ -387,12 +387,12 @@
state:'<img src="/assets/img/state.png">',},});
-
It is used to indicate the format of the video. It needs to be used together with the customType. The default format of the video is the suffix of the video address (such as .m3u8, .mkv, .ts). But sometimes the video address does not have the correct suffix, so it needs to be specially specified
It is used to indicate the format of the video. It needs to be used together with the customType. The default format of the video is the suffix of the video address (such as .m3u8, .mkv, .ts). But sometimes the video address does not have the correct suffix, so it needs to be specially specified
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.m3u8',type:'m3u8',});
-
1 2 3 4 5
Identification of suffix
The player can only resolve this suffix: /assets/sample/video.m3u8
However, this suffix cannot be resolved: /assets/sample/video?type=m3u8
So if you use customType, it is better to specify type at the same time
By matching the video's type, the video decoding right is handed over to a third-party program for processing. The processing function can receive three parameters
video : Video DOM element
url : Video url
art : Player instance
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5
Identification of suffix
The player can only resolve this suffix: /assets/sample/video.m3u8
However, this suffix cannot be resolved: /assets/sample/video?type=m3u8
So if you use customType, it is better to specify type at the same time
By matching the video's type, the video decoding right is handed over to a third-party program for processing. The processing function can receive three parameters
video : Video DOM element
url : Video url
art : Player instance
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.m3u8',customType:{
@@ -401,12 +401,12 @@
},},});
-
You need to open the settings panel first. The player has four settings by default: flip, playbackRate, aspectRatio, subtitleOffset
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -25,7 +25,7 @@
aspectRatio:true,subtitleOffset:true,});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',autoSize:true,
@@ -70,9 +70,9 @@
art.on('artplayerPluginAds:skip',(ads)=>{console.info(ads);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -256,7 +256,7 @@
art.on('resize',()=>{art.plugins.artplayerPluginDanmuku.reset();});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -270,7 +270,7 @@
art.on('ready',()=>{console.info(art.plugins.artplayerPluginDanmuku.option);});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -316,9 +316,9 @@
art.on('artplayerPluginDanmuku:destroy',()=>{console.info('弹幕销毁');});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',controls: [
@@ -108,7 +108,7 @@
console.info(art.controls['your-button']);console.info(art.controls.subtitle);
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',contextmenu: [
@@ -147,7 +147,7 @@
});console.info(art.contextmenu['your-menu']);
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
也可以实例化之后添加一个右键菜单
▶ Run Code
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
也可以实例化之后添加一个右键菜单
▶ Run Code
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',});
@@ -162,9 +162,9 @@
});console.info(art.contextmenu['your-menu']);
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-
-
+
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+
+
\ No newline at end of file
diff --git a/docs/document/start/option.html b/docs/document/start/option.html
index f68600bbf..59bc552af 100644
--- a/docs/document/start/option.html
+++ b/docs/document/start/option.html
@@ -1,14 +1,14 @@
-
+
基础选项 | Artplayer.js
-
-
-
-
+
+
+
+
@@ -16,35 +16,35 @@
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',
@@ -54,7 +54,7 @@
this.play()},);
-
1 2 3 4 5 6 7 8 9 10
等同于:
js
var art =newArtplayer({
+
1 2 3 4 5 6 7 8 9 10
等同于:
js
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',muted:true,
@@ -63,112 +63,112 @@
art.on('ready',()=>{art.play();});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',whitelist: [(ua)=>/iPhone/gi.test(ua)],// whitelist: [/iPhone/gi],// whitelist: ['iPhone'],});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',icons:{
@@ -387,12 +387,12 @@
state:'<img src="/assets/img/state.png">',},});
-
var art =newArtplayer({container:'.artplayer-app',url:'/assets/sample/video.mp4',setting:true,
@@ -25,7 +25,7 @@
aspectRatio:true,subtitleOffset:true,});
-