Cranberry 图标

Cranberry

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/cranberry
资源信息

Minecraft 版本: 1.21 1.21.1

平台: fabric quilt

标签: decoration magic social

资源介绍

Cranberry

In-game music playback on macOS

Cranberry allows you to control whatever music is playing on your computer from within Minecraft. If also installed on a server, others with the mod will be able to see what you're listening to (disableable).

Table of Contents

Images

an in-game image of fighter by tali playing

Visit the gallery for more examples.

Client Installation

Cranberry is currently only supported on macOS and will automatically disable itself on any other platform.

If installed only on the client, pressing the keybind (M by default) will open a screen that shows what music is currently being played and allows you to play/pause it. By default, the background of the screen is dynamically tinted with the dominant color from the image - this can be disabled in the configuration (see Configuration Options).

Server Installation

Installing the mod on the server allows clients to see each other's music statuses - clients may disable sending or receiving statuses in the configuration. Note that if this mod is installed on the server, owo-lib (a library mod that this mod depends on) must be installed on every connecting client, or they will not be able to connect due to registry mismatches. The mod itself is optional.

Configuration Options

You may edit configuration values in config/cranberry-client-config.json5. Alternatively, installing Mod Menu will allow you to change the following configuration options via a GUI:

  • Send music statuses (default: true; only takes effect when playing multiplayer)
  • Receive music statuses (default: true; only takes effect when playing multiplayer)
  • Dynamic background (default: true)

How Does It Work?

Magic.

Technical details Apple has a private framework on its platforms called `MediaRemote`, which allows for media playback information and control. Some Swift code is linked to this framework, built to a dynamic library, and called from Java using JNI.

Windows / Linux?

While this sort of thing would generally be easier on Windows and Linux (Windows has MediaPlayer and Linux has MPRIS/D-Bus, both of which are well-documented and intended for public consumption, as opposed to Apple's MediaRemote), I have absolutely no experience working with WinRT or D-Bus. So although I'm interested in adding support, I don't currently actually have plans to do it.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Glowroot Caves

价格:0 墨喵币
下载量:0

查看详情
Model Accurate Hitbox Pack

价格:0 墨喵币
下载量:0

查看详情
1.16 Panorama with Shaders

价格:0 墨喵币
下载量:0

查看详情
Noita's Tool Tinkers

价格:0 墨喵币
下载量:0

查看详情