使用itunes SDK播放音频文件

发布于 2024-12-21 11:56:54 字数 192 浏览 2 评论 0原文

我正在开发一个 Windows 窗体 C# 应用程序,它应该能够与 iTunes 交互。基本上,我现在可以使用iTunes COM来播放音乐了。然而,当我这样做时,iTunes 应该正在运行,因为音乐是通过 iTunes 播放的。我想知道是否有一种方法可以在不运行 iTunes 的情况下播放音乐。是否可以只使用 iTunes SDK 来播放音乐而不启动 iTunes?

I am developing a windows form C# application that should be able to interface with iTunes. Basically, I now am able to use the iTunes COM to play music. However, when I do this, iTunes should be running since the music plays through iTunes. I was wondering if there is a way I can play music without iTunes running. Is it possible to just use the iTunes SDK to play music without starting iTunes?

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

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

发布评论

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

评论(1

醉生梦死 2024-12-28 11:56:54

不,你不能。 iTunesLib COM 对象只是控制 iTunes 应用程序中实现的播放器引擎并管理媒体库的一种方法。

即使您想实现自己的播放器,也无法避免 iTunes 的出现,因为它是在实例化 iTunes 对象时出现的。

唯一的方法是实现您自己的(后台)播放器并使用一些 XML 过程解析 iTunes 媒体库文件。

No you can't. iTunesLib COM Object is just a way to control the player engine implemented in the iTunes application, and to manage the media library.

Even if you would like to implement your own player, you couldn't avoid iTunes showing up, because it's showing up when iTunes object is instanciated.

The only way is to implement your own (background) player and to parse the iTunes media library file with some XML process.

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