Update README.md

master
A-Circle Zhang 6 years ago committed by GitHub
parent e1719cca14
commit d2ae6bf4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      docs/README.md

@ -109,6 +109,7 @@ danmaku.user | 'DIYgod' | danmaku user name
danmaku.bottom | - | values like: '10px' '10%', the distance between the danmaku bottom and player bottom, in order to prevent warding off subtitle
danmaku.unlimited | false | display all danmaku even though danmaku overlap, notice that player will remember user setting, default setting will not work after user set it themselves
contextmenu | [] | custom contextmenu
highlight | [] | custom time markers upon progress bar
mutex | true | prevent to play multiple player at the same time, pause other players when this player start play
For example:
@ -164,6 +165,16 @@ const dp = new DPlayer({
console.log(player);
}
}
],
highlight: [
{
text: 'marker for 20s',
time: 20
},
{
text: 'marker for 2mins',
time: 120
}
]
});
```
@ -681,4 +692,4 @@ For full browser support it should look like this:
### Why can't player autoplay in some mobile browsers?
Most mobile browsers forbid video autoplay, you wont be able to achieve it without hacks.
Most mobile browsers forbid video autoplay, you wont be able to achieve it without hacks.

Loading…
Cancel
Save