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/example/backlight.js b/docs/assets/example/backlight.js
deleted file mode 100644
index 0583aa641..000000000
--- a/docs/assets/example/backlight.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var art = new Artplayer({
- container: '.artplayer-app',
- url: '/assets/sample/video.mp4',
- autoSize: true,
- light: true,
- localVideo: true,
- moreVideoAttr: {
- crossOrigin: 'anonymous',
- },
- controls: [
- {
- name: 'open',
- position: 'right',
- html: 'Local Video',
- mounted: $open => {
- art.plugins.localVideo.attach($open);
- },
- },
- ],
- plugins: [artplayerPluginBacklight],
-});
diff --git a/docs/assets/example/github.js b/docs/assets/example/github.js
deleted file mode 100644
index 906262be0..000000000
--- a/docs/assets/example/github.js
+++ /dev/null
@@ -1,68 +0,0 @@
-// 使用 Github Issues Api 做弹幕接口
-// 接口每小时限制 5000 次请求,勿滥用
-var danmuku = new ArtplayerToolGithub({
- api: 'zhw2590582/github-issues-api-as-danmuku/issues/1',
- clientID: '749a95aad589f8849abe',
- clientSecret: '7bb6fa67ef6e525e5bd5fda46cd3925ecc4a3760',
-});
-
-var art = new Artplayer({
- container: '.artplayer-app',
- url: '/assets/sample/video.mp4',
- autoSize: true,
- controls: [
- {
- name: 'danmuku',
- position: 'right',
- html: '发送弹幕',
- click: () => {
- if (window.location.href.includes('code=')) {
- art.notice.show = '正在登陆中,请稍等!!!';
- } else if (!danmuku.isLogin) {
- danmuku.login();
- } else {
- var text = prompt('请输入:', '弹幕内容');
- if (!text || !text.trim()) return;
- if (text.length >= 20) {
- art.notice.show = '弹幕字数不能大于20字!!!';
- return;
- }
- if (danmuku.remaining <= 10) {
- art.notice.show = '接口请求到达上限,请稍后再试!!!';
- return;
- }
- art.notice.show = '弹幕发送中...';
- danmuku
- .send({
- text: text,
- time: art.player.currentTime,
- color: '#' + Math.floor(Math.random() * 0xffffff).toString(16),
- })
- .then(data => {
- art.notice.show = `发送弹幕成功: ${danmuku.remaining} / ${danmuku.limit}`;
- art.plugins.artplayerPluginDanmuku.emit({
- ...data,
- mode: 0,
- time: art.player.currentTime + 0.2,
- border: true,
- });
- })
- .catch(() => {
- art.notice.show = `发送弹幕失败: ${danmuku.remaining} / ${danmuku.limit}`;
- });
- }
- },
- },
- ],
- plugins: [
- artplayerPluginDanmuku({
- danmuku: () => danmuku.load(),
- speed: 5,
- opacity: 1,
- color: '#fff',
- size: 25,
- maxlength: 50,
- margin: [10, 100],
- }),
- ],
-});
diff --git a/docs/assets/js/ssr.js b/docs/assets/js/ssr.js
deleted file mode 100644
index 3b92c1071..000000000
--- a/docs/assets/js/ssr.js
+++ /dev/null
@@ -1,132 +0,0 @@
-const $container = document.querySelector('.artplayer-app');
-
-// 在服务器端可以直接访问 Artplayer.html 属性,返回供 ssr 使用的 html
-// 然后直接插值于播放器的容器里
-// const Artplayer = require('artplayer');
-// console.log(Artplayer.html);
-// 在浏览器端,开启 useSSR 即可
-
-// 模拟效果
-$container.innerHTML = Artplayer.html;
-
-var art = new Artplayer({
- useSSR: true,
- container: $container,
- url: 'https://artplayer.org/assets/sample/video.mp4',
- title: 'One More Time One More Chance',
- poster: '/assets/sample/poster.jpg',
- volume: 0.5,
- isLive: false,
- muted: false,
- autoplay: false,
- pip: true,
- autoSize: true,
- autoMini: true,
- screenshot: true,
- setting: true,
- loop: true,
- flip: true,
- rotate: true,
- playbackRate: true,
- aspectRatio: true,
- fullscreen: true,
- fullscreenWeb: true,
- subtitleOffset: true,
- miniProgressBar: true,
- localVideo: true,
- localSubtitle: true,
- networkMonitor: false,
- mutex: true,
- light: true,
- backdrop: true,
- log: true,
- theme: '#ffad00',
- lang: navigator.language.toLowerCase(),
- moreVideoAttr: {
- crossOrigin: 'anonymous',
- },
- contextmenu: [
- {
- html: 'Custom menu',
- click: function (contextmenu) {
- console.info('You clicked on the custom menu');
- contextmenu.show = false;
- },
- },
- ],
- layers: [
- {
- html: `
`,
- click: function () {
- console.info('You clicked on the custom layer');
- },
- style: {
- position: 'absolute',
- top: '20px',
- right: '20px',
- opacity: '.9',
- },
- },
- ],
- quality: [
- {
- default: true,
- name: 'SD 480P',
- url: '/assets/sample/video.mp4',
- },
- {
- name: 'HD 720P',
- url: '/assets/sample/video.mp4',
- },
- ],
- thumbnails: {
- url: '/assets/sample/thumbnails.png',
- number: 100,
- width: 160,
- height: 90,
- column: 10,
- },
- subtitle: {
- url: '/assets/sample/subtitle.srt',
- style: {
- color: '#03A9F4',
- },
- encoding: 'utf-8',
- bilingual: true,
- },
- highlight: [
- {
- time: 60,
- text: 'One more chance',
- },
- {
- time: 120,
- text: '谁でもいいはずなのに',
- },
- {
- time: 180,
- text: '夏の想い出がまわる',
- },
- {
- time: 240,
- text: 'こんなとこにあるはずもないのに',
- },
- {
- time: 300,
- text: '终わり',
- },
- ],
- controls: [
- {
- position: 'right',
- html: 'Control',
- click: function () {
- console.info('You clicked on the custom control');
- },
- },
- ],
- icons: {
- loading: '
',
- state: '
',
- },
-});
diff --git a/docs/document/404.html b/docs/document/404.html
index 64978f658..bd8d32c39 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.