# 使用 Homebrew 安装 media-control

查看 media-control 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:media-control
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install media-control
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:media-control
- **软件包管理器:** Homebrew
- **版本:** 0.7.6
- **来源摘要:** Control and observe media playback from the command-line
- **主页:** <https://github.com/ungive/media-control>
- **仓库:** <https://github.com/ungive/media-control>
- **最后更新:** 2026-05-11T16:09:36Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- media-control (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.7.6
## 项目历史与用法

media-control is a macOS command-line utility for observing and controlling media playback. Its README describes one-shot now-playing queries, real-time streams, and playback actions such as toggling play and pause.

### 项目历史

The official repository is a compact CMake-based project with a `mediaremote-adapter` submodule. Public tags and releases show active versioned releases from at least v0.5.1 in July 2025 through v0.7.6 in May 2026.

The README states that the tool is available for all macOS versions, including macOS Tahoe, and centers the project around scriptable access to now-playing state, artwork, playback position, and transport controls.

### 采用历史

The README's primary installation path is Homebrew, using `brew install media-control`. It also includes advanced examples such as xbar menu-bar integration and shell pipelines for saving cover artwork, which is a strong signal that the project is meant for everyday automation rather than only library embedding.

### 使用方式

Common commands include `media-control get` for one-time now-playing information, `media-control get -h` for human-readable output, `media-control stream` for real-time updates, and `media-control toggle-play-pause` for playback control. Examples also cover extracting artwork data, watching song changes, tracking timeline position, and pausing when a track ends.

### 为什么软件包爱好者会关心

For package-manager users, media-control is a tidy macOS automation bridge: a single CLI wraps media playback state that would otherwise require private frameworks or app-specific scripting. That makes it useful in status bars, shell scripts, and lightweight desktop automation.

### 时间线

- 2025: v0.5.1 tag appears in the official repository.
- 2025: v0.7.0 tag starts the 0.7 release line.
- 2026: v0.7.6 is released with streamed artwork MIME type support.

### Related projects

- mediaremote-adapter, xbar, Spotify, jq, macOS MediaRemote.

### 来源

- <https://github.com/ungive/media-control#readme>
- <https://github.com/ungive/media-control/releases>
- <https://github.com/ungive/media-control/tags>


## 安全说明

没有找到 media-control 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Combined YAML source

View the package source record on GitHub. [combined/media-control.yml](https://github.com/mxcl/pkgdb/blob/main/combined/media-control.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
