Skip to content
/ danmaku Public

Danmaku plugin for mpv powered by dandanplay API

License

Notifications You must be signed in to change notification settings

lu0se/danmaku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Install

Run:

cargo build --release

Copy the .dll/.so file to the scripts subdirectory of your mpv configuration directory.

Usage

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:

  • 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 (bilibili, gamer, acfun, qq, iqiyi, d or dandan), danmaku from any of them will be blocked, runtime updatable via script-opts option/property.
  • filter_bilibili=~~/files/bilibili.json: filter file exported from bilibili, regex/user based blocking is not supported, double-tilde placeholders are expanded.

Available script messages:

  • toggle-danmaku: toggles the danmaku visibility.
  • danmaku-url url: get danmaku by video origin steam url(such as iqiyi,youku,bilibili)
  • danmaku-delay <seconds>: delays danmaku by <seconds> seconds, can be negative.

About

Danmaku plugin for mpv powered by dandanplay API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages