MediaToast
Current playing media info via the vanilla music toast (previously MprisToast)
截图
介绍
MediaToast
Description
This (fabric) mod shows the media currently playing on your system using the vanilla music toast feature.
To make it work, you also have to enable the toast in vanilla options.
This mod is originally based on my other mod MprisCustomHud I made mainly to learn how to use MPRIS (and DBUS) with dbus-java.
This I made to learn a little bit about mixins and because I think it’s cool 🙂
Controls
There are keybindings for play/pause, next, previous, refresh and cycle through active players.
Configuration
By default a player is selected from the active ones and the mod is enabled, so you will not see toasts with vanilla music while your other music is playing. To cycle through the currently active ones, use the (only works if “Only preferred source” is disabled).
All options are located in the vanilla sound settings under the option to enable music toasts in the first place. They all have tooltips that explain what they do.
Linux Flatpak notice
- when you’re running Minecraft in a Flatpak sandbox, you have to add
org.mpris.MediaPlayer2.*to the list of well known session bus names your launcher can talk to e.g. with Flatseal
Notes
- there will be no older versions, as the music toast didn’t exist pre 1.21.6 (how did I think it was 1.21.10)
- macOS is probably not supported (I also have no way to test it)
Libraries used
- dbus-java
- Improved version of java DBus library provided by freedesktop.org https://dbus.freedesktop.org/doc/dbus-java
- mediainterface
- Access the operating systems “Media Remote”/Now Playing interface from Java/Kotlin.
License
This Mod is licensed under the MIT License
常见问题
MediaToast 支持哪些 Minecraft 版本?
MediaToast 支持 Minecraft Java 版 1.21.6–26.3,共 11 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
MediaToast 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
technicfan 的其他作品
查看全部 →
LANLock
a whitelist for LAN worlds e.g. when opening them to the public with e4mc
MprisCustomHud
(Linux only) Mpris music info addon for CustomHud and Hudder
Don’t Drop It! Revivied
Prevents accidental dropping of items via various means.
Letterboxed
A mod that lets you play at any aspect ratio with letterboxing
评论
登录后评论和评分