Browse Source

Merge pull request #3 from A-Circle-Zhang/patch-2

Update README.md
A-Circle Zhang 7 years ago
parent
commit
e4f25ce8ee
1 changed files with 12 additions and 1 deletions
  1. 12 1
      docs/README.md

+ 12 - 1
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.