docs: update

This commit is contained in:
DIYgod 2020-05-23 11:14:35 +08:00
parent b31977927c
commit 55e22c1591
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ You can custom your player instance by those options
| hotkey | true | enable hotkey, support FF, FR, volume control, play & pause |
| preload | 'auto' | values: 'none', 'metadata', 'auto' |
| volume | 0.7 | default volume, notice that player will remember user setting, default volume will not work after user set volume themselves |
| playbackSpeed | [0.5, 0.75, 1, 1.25, 1.5, 2] | default playback speed, or or you can set a custom one |
| playbackSpeed | [0.5, 0.75, 1, 1.25, 1.5, 2] | optional playback speed, or or you can set a custom one |
| logo | - | showing logo in the top left corner, you can adjust its size and position by CSS |
| apiBackend | - | getting and sending danmaku in your way, see [#live](#live) |
| video | - | video info |

View File

@ -96,7 +96,7 @@ DPlayer 有丰富的参数可以自定义你的播放器实例
| hotkey | true | 开启热键,支持快进、快退、音量控制、播放暂停 |
| preload | 'auto' | 视频预加载,可选值: 'none', 'metadata', 'auto' |
| volume | 0.7 | 默认音量,请注意播放器会记忆用户设置,用户手动设置音量后默认音量即失效 |
| playbackSpeed | [0.5, 0.75, 1, 1.25, 1.5, 2] | 默认播放速率,可以设置成自定义的数组 |
| playbackSpeed | [0.5, 0.75, 1, 1.25, 1.5, 2] | 可选的播放速率,可以设置成自定义的数组 |
| logo | - | 在左上角展示一个 logo你可以通过 CSS 调整它的大小和位置 |
| apiBackend | - | 自定义获取和发送弹幕行为,见[#直播](#直播) |
| video | - | 视频信息 |