dyphire / mpv-load-danmaku

A lua script to load local damaku files (.xml) for mpv player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mpv-load-danmaku

Description

This is a lua script for mpv player. It will load danmaku files (.xml) of the same name in the playback directory.

Requirements

Need DanmakuFactory to be installed or explicitly specified.

Usage

Keybinds

You can add bindings to input.conf:

key        script-message-to load-danmaku load-local-danmaku
key        script-message-to load-danmaku toggle-local-danmaku

Script message

load-danmaku

script-message load-danmaku input <xml_path>

Allows loading of danmaku by passing the path to a given danmaku file (.xm) with a script-message.

Todo

  • consider using osd-overlay for rendering danmaku?
  • add script-message support

Acknowledgement

About

A lua script to load local damaku files (.xml) for mpv player

License:GNU General Public License v3.0


Languages

Language:Lua 100.0%