优化docs

This commit is contained in:
Harvey committed 2020-05-20 10:30:21 +08:00
1 parent bafbd78018
commit caa0128d37
24 files changed
+2667 -1850

No files matched your search

+1 -2
View File
@@ -1,7 +1,6 @@
var url = 'https://zhw2590582.github.io/assets-cdn';
var art = new Artplayer({
container: '.artplayer-app',
url: url + '/video/your-name.mp4',
url: '/assets/sample/video.mp4',
autoSize: true,
light: true,
localVideo: true,
+1 -2
View File
@@ -1,7 +1,6 @@
var url = 'https://zhw2590582.github.io/assets-cdn';
var art = new Artplayer({
container: '.artplayer-app',
url: url + '/video/your-name.mp4',
url: '/assets/sample/video.mp4',
autoSize: true,
moreVideoAttr: {
crossOrigin: 'anonymous',
+2 -3
View File
@@ -1,14 +1,13 @@
var url = 'https://zhw2590582.github.io/assets-cdn';
var art = new Artplayer({
container: '.artplayer-app',
url: url + '/video/your-name.mp4',
url: '/assets/sample/video.mp4',
autoSize: true,
setting: true,
playbackRate: true,
fullscreenWeb: true,
plugins: [
artplayerPluginDanmuku({
danmuku: url + '/danmuku/your-name.xml',
danmuku: '/assets/sample/danmuku.xml',
speed: 5,
maxlength: 50,
margin: [10, 100],
+1 -2
View File
@@ -1,7 +1,6 @@
var url = 'https://zhw2590582.github.io/assets-cdn';
var art = new Artplayer({
container: '.artplayer-app',
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
url: '/assets/sample/video.mp4',
title: '【新海诚动画】『秒速5センチメートル』',
autoSize: true,
localVideo: true,
+1 -2
View File
@@ -6,10 +6,9 @@ var danmuku = new ArtplayerToolGithub({
clientSecret: '7bb6fa67ef6e525e5bd5fda46cd3925ecc4a3760',
});
var url = 'https://zhw2590582.github.io/assets-cdn';
var art = new Artplayer({
container: '.artplayer-app',
url: url + '/video/your-name.mp4',
url: '/assets/sample/video.mp4',
autoSize: true,
controls: [
{
+6 -7
View File
@@ -1,9 +1,8 @@
var url = 'https://zhw2590582.github.io/assets-cdn';
var art = new Artplayer({
container: '.artplayer-app',
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
url: '/assets/sample/video.mp4',
title: 'One More Time One More Chance',
poster: url + '/image/one-more-time-one-more-chance-poster.jpg',
poster: '/assets/sample/poster.jpg',
volume: 0.5,
isLive: false,
muted: false,
@@ -59,22 +58,22 @@ var art = new Artplayer({
{
default: true,
name: 'SD 480P',
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
url: '/assets/sample/video.mp4',
},
{
name: 'HD 720P',
url: url + '/video/one-more-time-one-more-chance-720p.mp4',
url: '/assets/sample/video.mp4',
},
],
thumbnails: {
url: url + '/image/one-more-time-one-more-chance-thumbnails.png',
url: '/assets/sample/thumbnails.png',
number: 100,
width: 160,
height: 90,
column: 10,
},
subtitle: {
url: url + '/subtitle/one-more-time-one-more-chance.srt',
url: '/assets/sample/subtitle.srt',
style: {
color: '#03A9F4',
},
-45
View File
@@ -1,45 +0,0 @@
var url = 'https://zhw2590582.github.io/assets-cdn';
var art = new Artplayer({
container: '.artplayer-app',
url: url + '/video/your-name.mp4',
poster: url + '/image/one-more-time-one-more-chance-poster.jpg',
autoSize: true,
controls: [
{
name: 'playlist',
position: 'right',
html: 'Playlist',
click: () => {
art.plugins.artplayerPluginPlaylist.show();
},
},
{
name: 'prev',
position: 'right',
html: 'Prev',
click: () => {
art.plugins.artplayerPluginPlaylist.prev();
},
},
{
name: 'next',
position: 'right',
html: 'Next',
click: () => {
art.plugins.artplayerPluginPlaylist.next();
},
},
],
plugins: [
artplayerPluginPlaylist([
{
title: 'Your name',
url: url + '/video/your-name.mp4',
},
{
title: 'One more time one more chance',
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
},
]),
],
});