Update README.md

This commit is contained in:
Harvey committed 2020-05-15 14:02:57 +08:00
1 parent e96c57c4c1
commit 20adfbbcce
1 file changed
+7 -4
+7 -4
View File
@@ -60,7 +60,7 @@ var art = new Artplayer({
],
});
// Send danmu
// Send a new danmu
art.plugins.artplayerPluginDanmuku.emit({
text: '666', // Danmu text
time: 5, // Video time
@@ -70,13 +70,16 @@ art.plugins.artplayerPluginDanmuku.emit({
mode: 0, // Danmu mode: 0-scroll or 1-static
});
// Hide danmu
// Hide the danmu
art.plugins.artplayerPluginDanmuku.hide();
// Show danmu
// Show the danmu
art.plugins.artplayerPluginDanmuku.show();
// Config danmu
// Returns whether to hide the danmu
art.plugins.artplayerPluginDanmuku.isHide;
// Config danmu dynamically
art.plugins.artplayerPluginDanmuku.config({
// option
});