有没有办法使用 Java 找出 iTunes 中当前正在播放的歌曲?

发布于 2025-01-05 23:28:43 字数 118 浏览 6 评论 0原文

有没有办法(也许通过 RAM 分析)来找出当前是什么歌曲 在 iTunes 或 Windows Media Player 等程序中播放?

我不要求任何具体的代码,只是感兴趣是否有可能在 Java 中这样做。

Is there a way (maybe though RAM analysis) to figure out what song is currently
playing in programs such as iTunes or Windows Media Player?

I'm not asking for any specific code, just interested if there is a possibility to do so, in Java.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

坏尐絯 2025-01-12 23:28:43

我认为 JACOB 与 iTunes COM 接口可以工作。

I would think JACOB with the iTunes COM interface would work.

橘虞初梦 2025-01-12 23:28:43

分析应用程序的内存即使不是不可能,听起来也过于复杂。正确的方法是与程序向外界公开的接口进行通信。

如果您使用的是 Mac,则可以运行 AppleScript 来查询 iTunes 正在播放什么歌曲。我确信在 Windows 中也可以通过某种方式实现这一点。

Analyzing the memory of an application sound overly complicated, if not impossible. The correct way to do this would be to talk with an interface the program exposes to the outside world.

If you're working on a Mac, you have the possibility to run an AppleScript to query iTunes what song is playing. I'm certain that there is possible to achieve this in some manner in Windows as well.

假面具 2025-01-12 23:28:43

iTunes使用数字音频控制协议(DACP)导出功能来远程控制iTunes,这也是一个不错的选择服务,意味着您可以通过 零配置联网并使用DACP协议访问和控制iTunes。幸运的是,有一些用 Java 编写的开源项目实现了 DACP 协议,请查看 tunesremote-se

Windows Media Player 使用类似的技术:UPnP 用于零配置网络和简单的远程控制。

iTunes use Digital Audio Control Protocol (DACP) export functions for remote control iTunes, which is also a bonjour service, means you can pair your client application with iTune server by zero configuration networking and use DACP protocol access and control iTunes. Fortunately, there are some open source projects written in Java out there implementing DACP protocol, check out tunesremote-se.

Windows Media Player use similar technology: UPnP for zero configuration networking and simple remote control.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文