mpv danmaku plugin powered by dandanplay API. The plugin sends the name and hash value of the currently playing file to the dandanplay server to get matching danmaku comments.
This plugin requires curl
in $PATH
.
Example to bind the d
key to toggle the danmaku visibility in your input.conf
(default invisible):
d script-message toggle-danmaku
It may take some time to load the danmaku after first enabling it.
Set the following options in script-opts/danmaku.conf
to configure the plugin (runtime-updatable via script-opts
option/property):
font_size=40
: danmaku font size.transparency=48
: 0 (opaque) to 255 (fully transparent).reserved_space=0
: the proportion of reserved space at the bottom of the screen, 0.0 to 1.0 (excluded).speed=1.0
: factor for the speed.no_overlap=yes
: hide the overlapping danmaku, yes
or no
.filter=keyword1,keyword2
: comma separated keywords, danmaku that contains any of them will be blocked.filter_source=bilibili,gamer
: comma separated case-insensitive sources (dandan
, bilibili
, gamer
, etc.), danmaku from any of them will be blocked.filter_bilibili=~~/files/bilibili.json
: filter file exported from bilibili, regex/user based blocking is not supported, double-tilde placeholders are expanded.proxy
: proxy used by curl.Available script messages:
toggle-danmaku
: toggles the danmaku visibility.danmaku-delay <seconds>
: delays danmaku by <seconds> seconds, can be negative.