Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.64 KB

INTERACTIVE_MENUS.md

File metadata and controls

38 lines (31 loc) · 1.64 KB

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
  • Volume control button (audio device selector) [right mouse button]
  • Chapter title

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

select_menus.mp4

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:

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