Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
diff --git a/docs/assets/css/mobile.css b/docs/assets/css/mobile.css
deleted file mode 100644
index d8972cddf..000000000
--- a/docs/assets/css/mobile.css
+++ /dev/null
@@ -1,19 +0,0 @@
-html, body {
- height: 100%;
- overflow: hidden;
-}
-
-.container {
- height: 100%;
- padding: 10px;
- box-sizing: border-box;
-}
-
-.artplayer-app {
- width: 100%;
- height: 50%;
-}
-
-.tip {
- text-align: center;
-}
\ No newline at end of file
diff --git a/docs/assets/example/index.js b/docs/assets/example/index.js
index ae837bb8c..532795b15 100644
--- a/docs/assets/example/index.js
+++ b/docs/assets/example/index.js
@@ -23,6 +23,7 @@ var art = new Artplayer({
mutex: true,
backdrop: true,
playsInline: true,
+ autoPlayback: true,
theme: '#23ade5',
lang: navigator.language.toLowerCase(),
whitelist: ['*'],
diff --git a/docs/assets/js/mobile.js b/docs/assets/js/mobile.js
deleted file mode 100644
index 0222dd01e..000000000
--- a/docs/assets/js/mobile.js
+++ /dev/null
@@ -1,101 +0,0 @@
-var vConsole = new VConsole();
-
-var art = new Artplayer({
- container: '.artplayer-app',
- url: '/assets/sample/video.mp4',
- title: 'One More Time One More Chance',
- poster: '/assets/sample/poster.jpg',
- autoSize: true,
- loop: true,
- mutex: true,
- setting: true,
- flip: true,
- lock: true,
- playbackRate: true,
- aspectRatio: true,
- theme: '#ff0057',
- fullscreen: true,
- fullscreenWeb: true,
- miniProgressBar: true,
- moreVideoAttr: {
- 'x5-video-player-type': 'h5',
- 'x5-video-player-fullscreen': false,
- 'x5-video-orientation': 'portraint',
- },
- subtitle: {
- url: '/assets/sample/subtitle.srt',
- style: {
- color: '#fff',
- fontSize: '14px',
- },
- },
- layers: [
- {
- html: `
`,
- click: function () {
- console.info('You clicked on the custom layer');
- },
- style: {
- position: 'absolute',
- top: '10px',
- right: '10px',
- opacity: '.9',
- },
- },
- ],
- icons: {
- loading: '
',
- state: '',
- indicator: '
',
- },
- plugins: [
- artplayerPluginDanmuku({
- danmuku: '/assets/sample/danmuku.xml',
- speed: 5,
- maxlength: 100,
- margin: [10, 70],
- opacity: 1,
- fontSize: 14,
- synchronousPlayback: false,
- }),
- ],
- settings: [
- {
- width: 200,
- html: '自定义设置',
- tooltip: '提示',
- icon: '
',
- selector: [
- {
- default: true,
- html: '设置 01',
- },
- {
- html: '设置 02',
- },
- ],
- onSelect: function (item) {
- console.info('你点击了', item.html);
- return item.html;
- },
- },
- ],
- whitelist: ['*'],
-});
-
-Artplayer.config.events.forEach(function (item) {
- art.on('video:' + item, function (event) {
- console.log('video: ' + event.type);
- });
-});
-
-if (Artplayer.utils.isWechat) {
- document.querySelector('.tip').textContent = '微信环境需手动触发播放';
- let isClick = false;
- document.body.addEventListener('click', () => {
- if (!isClick) {
- isClick = true;
- art.play();
- }
- });
-}
diff --git a/docs/assets/ts/artplayer.d.ts b/docs/assets/ts/artplayer.d.ts
index 44d60e655..c2c574a36 100644
--- a/docs/assets/ts/artplayer.d.ts
+++ b/docs/assets/ts/artplayer.d.ts
@@ -329,6 +329,11 @@ type Option = {
*/
lock?: boolean;
+ /**
+ * Whether use auto playback
+ */
+ autoPlayback?: boolean;
+
/**
* Custom plugin list
*/
diff --git a/docs/document/404.html b/docs/document/404.html
index 507db4338..3a717c40b 100644
--- a/docs/document/404.html
+++ b/docs/document/404.html
@@ -5,13 +5,13 @@
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.