Files
mpv/submodules/ModernZ/docs/INTERACTIVE_MENUS.md

1.7 KiB

Interactive Menus

ModernZ integrates mpv's console.lua and select.lua, which have been built in mpv starting v0.39+. Can be used in:

  • Playlist button
  • Subtitles button
  • Audio track button
  • Chapter title (chapters list)
  • Volume control button (audio device selector) [right mouse button]

For details on how to interact with these buttons, view the controls manual.

https://github.com/user-attachments/assets/a7330f29-c26d-4f5a-8797-d20f97211fdc

Notes

Important

If the menus are not functioning as shown in the video, it is most likely because you're using an outdated version of mpv

  • Check mpv installation sources on the official website for up-to-date packages
  • Use mpv-build to get the latest release
  • Use a simplified alternative function as shown below until you're able to update mpv

Alternative function: (for outdated mpv)

You can add the following to modernz.conf in your script-opts folder to at least get some functionality until you update mpv

title_mbtn_left_command=show-text ${filename}
playlist_mbtn_left_command=show-text ${playlist} 3000
audio_track_mbtn_left_command=cycle audio
sub_track_mbtn_left_command=cycle sub
chapter_title_mbtn_left_command=show-text ${chapter-list} 3000

Tip

If the font size for the interactive playlist is too small, you can add the following in your mpv.conf

# change font size for console and select
script-opts-append=console-font_size=25