mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
fix docs
This commit is contained in:
1 parent
8d95baabc3
commit
dced5f8b34
7 files changed
+2
-9
No files matched your search
+1
-3
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- <b>大小</b> - `artplayer.js` ≈ `90kb` and `artplayer.css` ≈ `20kb`
|
- <b>大小</b> - `artplayer.js` ≈ `100kb`
|
||||||
- <b>字幕</b> - 支持 `.VTT`, `.ASS` 和 `.SRT` 格式
|
- <b>字幕</b> - 支持 `.VTT`, `.ASS` 和 `.SRT` 格式
|
||||||
- <b>自定义</b> - `右键菜单`, `业务图层`, `视频控制器` 和 `设置面板`
|
- <b>自定义</b> - `右键菜单`, `业务图层`, `视频控制器` 和 `设置面板`
|
||||||
- <b>控制器</b> - `画质切换`, `字幕切换`, `播放速度`, `长宽比`, `视频翻转`, `全屏`, `画中画`, `截图`, `缩略图`, `自适应尺寸`, `高亮` 和 `热键`...
|
- <b>控制器</b> - `画质切换`, `字幕切换`, `播放速度`, `长宽比`, `视频翻转`, `全屏`, `画中画`, `截图`, `缩略图`, `自适应尺寸`, `高亮` 和 `热键`...
|
||||||
@@ -61,13 +61,11 @@ $ yarn add artplayer
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
import Artplayer from 'artplayer';
|
import Artplayer from 'artplayer';
|
||||||
import 'artplayer/dist/artplayer.css';
|
|
||||||
```
|
```
|
||||||
|
|
||||||
或者直接引入`umd`文件:
|
或者直接引入`umd`文件:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<link rel="stylesheet" href="path/to/artplayer.css" />
|
|
||||||
<script src="path/to/artplayer.js"></script>
|
<script src="path/to/artplayer.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- <b>Size</b> - `artplayer.js` ≈ `90kb` and `artplayer.css` ≈ `20kb`
|
- <b>Size</b> - `artplayer.js` ≈ `100kb`
|
||||||
- <b>Subtitle</b> - Support for `.VTT`, `.ASS` and `.SRT` formats
|
- <b>Subtitle</b> - Support for `.VTT`, `.ASS` and `.SRT` formats
|
||||||
- <b>Customizable</b> - `Right Click Menu`, `Business Layer`, `Video Controller` and `Settings Panel`
|
- <b>Customizable</b> - `Right Click Menu`, `Business Layer`, `Video Controller` and `Settings Panel`
|
||||||
- <b>Controller</b> - `Quality Switch`, `Subtitle Switch`, `Play Speed`, `Aspect Ratio`, `Video Flip`, `Fullscreen`, `Picture In Picture`, `Screenshot`, `Thumbnail`, `Adaptive Size`, `Highlight` and `Hotkey`...
|
- <b>Controller</b> - `Quality Switch`, `Subtitle Switch`, `Play Speed`, `Aspect Ratio`, `Video Flip`, `Fullscreen`, `Picture In Picture`, `Screenshot`, `Thumbnail`, `Adaptive Size`, `Highlight` and `Hotkey`...
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ $ yarn add artplayer-react
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
import ArtplayerComponent from 'artplayer-react';
|
import ArtplayerComponent from 'artplayer-react';
|
||||||
import 'artplayer-react/dist/artplayer-react.css';
|
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
<ArtplayerComponent
|
<ArtplayerComponent
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
"expose": "ArtplayerReact",
|
"expose": "ArtplayerReact",
|
||||||
"description": "React Component for Artplayer",
|
"description": "React Component for Artplayer",
|
||||||
"main": "dist/artplayer-react.js",
|
"main": "dist/artplayer-react.js",
|
||||||
"style": "dist/artplayer-react.css",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ $ yarn add artplayer-vue
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
import ArtplayerComponent from 'artplayer-vue';
|
import ArtplayerComponent from 'artplayer-vue';
|
||||||
import 'artplayer-vue/dist/artplayer-vue.css';
|
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
<ArtplayerComponent
|
<ArtplayerComponent
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
"expose": "ArtplayerVue",
|
"expose": "ArtplayerVue",
|
||||||
"description": "Vue Component for Artplayer",
|
"description": "Vue Component for Artplayer",
|
||||||
"main": "dist/artplayer-vue.js",
|
"main": "dist/artplayer-vue.js",
|
||||||
"style": "dist/artplayer-vue.css",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
"expose": "Artplayer",
|
"expose": "Artplayer",
|
||||||
"description": "ArtPlayer.js is a modern and full featured HTML5 video player",
|
"description": "ArtPlayer.js is a modern and full featured HTML5 video player",
|
||||||
"main": "dist/artplayer.js",
|
"main": "dist/artplayer.js",
|
||||||
"style": "dist/artplayer.css",
|
|
||||||
"types": "types/artplayer.d.ts",
|
"types": "types/artplayer.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
|||||||
Reference in new issue
Block a user