mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
Add Danmuku plugin to config.js
This commit is contained in:
1 parent
a2b57495a2
commit
5a166f421d
2 files changed
+6
-30
No files matched your search
@@ -117,6 +117,7 @@ const config = {
|
||||
text: 'Plugins',
|
||||
collapsible: true,
|
||||
items: [
|
||||
{ text: 'Danmuku', link: '/en/plugin/danmuku' },
|
||||
{ text: 'Video Ads', link: '/en/plugin/ads' },
|
||||
{ text: 'Iframe Control', link: '/en/plugin/iframe' },
|
||||
{ text: 'Hls Quality', link: '/en/plugin/hls-quality' },
|
||||
|
||||
@@ -40,7 +40,7 @@ https://unpkg.com/artplayer-plugin-danmuku/dist/artplayer-plugin-danmuku.js
|
||||
|
||||
:::
|
||||
|
||||
## 选项
|
||||
## Option
|
||||
|
||||
```js
|
||||
{
|
||||
@@ -108,7 +108,6 @@ var art = new Artplayer({
|
||||
],
|
||||
});
|
||||
```
|
||||
Sure, below is the translation of the provided Markdown content into English, maintaining the original Markdown formatting:
|
||||
|
||||
## Using Danmuku XML
|
||||
|
||||
@@ -134,6 +133,7 @@ var art = new Artplayer({
|
||||
<div className="run-code" data-libs="./uncompiled/artplayer-plugin-danmuku/index.js">
|
||||
▶ Run Code
|
||||
</div>
|
||||
|
||||
```js
|
||||
var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
@@ -163,6 +163,7 @@ var art = new Artplayer({
|
||||
],
|
||||
});
|
||||
```
|
||||
|
||||
## `hide/show`
|
||||
|
||||
Hide or show the bullet comments with the methods `hide` and `show`.
|
||||
@@ -232,6 +233,7 @@ var art = new Artplayer({
|
||||
],
|
||||
});
|
||||
```
|
||||
|
||||
## `emit`
|
||||
|
||||
Send a real-time danmaku message through the `emit` method
|
||||
@@ -387,8 +389,6 @@ Used to get the current barrage configuration
|
||||
<div className="run-code" data-libs="./uncompiled/artplayer-plugin-danmuku/index.js">
|
||||
▶ Run Code
|
||||
</div>
|
||||
▶ Run Code
|
||||
</div>
|
||||
|
||||
```js
|
||||
var art = new Artplayer({
|
||||
@@ -407,7 +407,7 @@ art.on('ready', () => {
|
||||
});
|
||||
```
|
||||
|
||||
## 事件
|
||||
## Event
|
||||
|
||||
```js
|
||||
var art = new Artplayer({
|
||||
@@ -457,28 +457,3 @@ art.on('artplayerPluginDanmuku:destroy', () => {
|
||||
console.info('弹幕销毁');
|
||||
});
|
||||
```
|
||||
|
||||
Here is the translation of the VitePress extended Markdown syntax into English:
|
||||
|
||||
```markdown
|
||||
# Welcome to VitePress
|
||||
|
||||
## Project setup
|
||||
|
||||
```bash
|
||||
yarn
|
||||
yarn docs:dev
|
||||
```
|
||||
|
||||
## Build
|
||||
|
||||
To build the documentation site, run the following command:
|
||||
|
||||
```bash
|
||||
yarn docs:build
|
||||
```
|
||||
|
||||
## Deployment
|
||||
|
||||
To deploy the documentation site, you can use any static site hosting services.
|
||||
```
|
||||
Reference in new issue
Block a user