mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 11:11:20 -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',
|
text: 'Plugins',
|
||||||
collapsible: true,
|
collapsible: true,
|
||||||
items: [
|
items: [
|
||||||
|
{ text: 'Danmuku', link: '/en/plugin/danmuku' },
|
||||||
{ text: 'Video Ads', link: '/en/plugin/ads' },
|
{ text: 'Video Ads', link: '/en/plugin/ads' },
|
||||||
{ text: 'Iframe Control', link: '/en/plugin/iframe' },
|
{ text: 'Iframe Control', link: '/en/plugin/iframe' },
|
||||||
{ text: 'Hls Quality', link: '/en/plugin/hls-quality' },
|
{ 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
|
```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
|
## Using Danmuku XML
|
||||||
|
|
||||||
@@ -134,6 +133,7 @@ var art = new Artplayer({
|
|||||||
<div className="run-code" data-libs="./uncompiled/artplayer-plugin-danmuku/index.js">
|
<div className="run-code" data-libs="./uncompiled/artplayer-plugin-danmuku/index.js">
|
||||||
▶ Run Code
|
▶ Run Code
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var art = new Artplayer({
|
var art = new Artplayer({
|
||||||
container: '.artplayer-app',
|
container: '.artplayer-app',
|
||||||
@@ -163,6 +163,7 @@ var art = new Artplayer({
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## `hide/show`
|
## `hide/show`
|
||||||
|
|
||||||
Hide or show the bullet comments with the methods `hide` and `show`.
|
Hide or show the bullet comments with the methods `hide` and `show`.
|
||||||
@@ -232,6 +233,7 @@ var art = new Artplayer({
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## `emit`
|
## `emit`
|
||||||
|
|
||||||
Send a real-time danmaku message through the `emit` method
|
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">
|
<div className="run-code" data-libs="./uncompiled/artplayer-plugin-danmuku/index.js">
|
||||||
▶ Run Code
|
▶ Run Code
|
||||||
</div>
|
</div>
|
||||||
▶ Run Code
|
|
||||||
</div>
|
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var art = new Artplayer({
|
var art = new Artplayer({
|
||||||
@@ -407,7 +407,7 @@ art.on('ready', () => {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## 事件
|
## Event
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var art = new Artplayer({
|
var art = new Artplayer({
|
||||||
@@ -457,28 +457,3 @@ art.on('artplayerPluginDanmuku:destroy', () => {
|
|||||||
console.info('弹幕销毁');
|
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