fix: typo, close #839
This commit is contained in:
parent
66a6835553
commit
be567b2b0c
|
|
@ -22,7 +22,7 @@ Let's make DPlayer better, feel free to submit yours in [`Let me know!`](https:/
|
|||
|
||||
- [DPlayer-thumbnails](https://github.com/MoePlayer/DPlayer-thumbnails): generate video thumbnails
|
||||
|
||||
### Danamku api
|
||||
### Danmaku api
|
||||
|
||||
- [DPlayer-node](https://github.com/MoePlayer/DPlayer-node): Node.js
|
||||
- [laravel-danmaku](https://github.com/MoePlayer/laravel-danmaku): PHP
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ You can custom your player instance by those options
|
|||
| subtitle.bottom | '40px' | the distance between the subtitle and player bottom, values like: '10px' '10%' |
|
||||
| subtitle.color | '#fff' | subtitle color |
|
||||
| danmaku | - | showing danmaku |
|
||||
| danmaku.id | `required` | danamku pool id, it must be unique |
|
||||
| danmaku.id | `required` | danmaku pool id, it must be unique |
|
||||
| danmaku.api | `required` | see [#Danmaku API](#danmaku-api) |
|
||||
| danmaku.token | - | back end verification token |
|
||||
| danmaku.maximum | - | danmaku maximum quantity |
|
||||
|
|
@ -750,7 +750,7 @@ const dp = new DPlayer({
|
|||
callback();
|
||||
},
|
||||
send: function (options) {
|
||||
console.log('Pretend to send danamku via WebSocket', options.data);
|
||||
console.log('Pretend to send danmaku via WebSocket', options.data);
|
||||
callback();
|
||||
},
|
||||
},
|
||||
|
|
@ -765,7 +765,7 @@ Draw danmaku after getting a danmaku via WebSocket:
|
|||
|
||||
```js
|
||||
const danmaku = {
|
||||
text: 'Get a danamku via WebSocket',
|
||||
text: 'Get a danmaku via WebSocket',
|
||||
color: '#fff',
|
||||
type: 'right',
|
||||
};
|
||||
|
|
|
|||
|
|
@ -734,7 +734,7 @@ const dp = new DPlayer({
|
|||
callback();
|
||||
},
|
||||
send: function (endpoint, danmakuData, callback) {
|
||||
console.log('Pretend to send danamku via WebSocket', danmakuData);
|
||||
console.log('Pretend to send danmaku via WebSocket', danmakuData);
|
||||
callback();
|
||||
},
|
||||
},
|
||||
|
|
@ -749,7 +749,7 @@ const dp = new DPlayer({
|
|||
|
||||
```js
|
||||
const danmaku = {
|
||||
text: 'Get a danamku via WebSocket',
|
||||
text: 'Get a danmaku via WebSocket',
|
||||
color: '#fff',
|
||||
type: 'right',
|
||||
};
|
||||
|
|
|
|||
|
|
@ -231,15 +231,15 @@
|
|||
</div>
|
||||
{{ if options.danmaku }}
|
||||
<div class="dplayer-info-panel-item dplayer-info-panel-item-danmaku-id">
|
||||
<span class="dplayer-info-panel-item-title">Danamku id</span>
|
||||
<span class="dplayer-info-panel-item-title">Danmaku id</span>
|
||||
<span class="dplayer-info-panel-item-data"></span>
|
||||
</div>
|
||||
<div class="dplayer-info-panel-item dplayer-info-panel-item-danmaku-api">
|
||||
<span class="dplayer-info-panel-item-title">Danamku api</span>
|
||||
<span class="dplayer-info-panel-item-title">Danmaku api</span>
|
||||
<span class="dplayer-info-panel-item-data"></span>
|
||||
</div>
|
||||
<div class="dplayer-info-panel-item dplayer-info-panel-item-danmaku-amount">
|
||||
<span class="dplayer-info-panel-item-title">Danamku amount</span>
|
||||
<span class="dplayer-info-panel-item-title">Danmaku amount</span>
|
||||
<span class="dplayer-info-panel-item-data"></span>
|
||||
</div>
|
||||
{{ /if }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue