使用itunes SDK播放音频文件
我正在开发一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,你不能。 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.