如何将音轨添加到我的“播放到”曲目中在 Windows 7 中使用 C# 列出?
我在 Google 和 Windows Media Player 上搜索了一段时间,寻找一种方法来做到这一点,但我不能,而且我认为我应该能够,所以我向 StackOverflow 的优秀人员询问。
我希望能够编写一些代码来执行以下操作之一:
- 将音频文件从 WMP 媒体库添加到当前的“播放到”播放列表。
- 将文件系统中的音频文件添加到当前的“播放到”播放列表。
对于我来说,使用其中哪一个方法并不重要。有人能给我一些指导吗?我猜我将不得不深入研究 Windows Media Player DLL,但是一个起点确实会很有帮助。
I poked around for a while on Google and Windows Media player looking for a way to do this, but I can't and I think I should be able to, so I'm asking the fine people of StackOverflow.
I'd like to be able to write some code to do one of the following:
- Add an audio file from my WMP media library to the current "Play To" playlist.
- Add an audio file from the file system to the current "Play To" playlist.
It doesn't really matter to me which of these I use for my approach. Can anyone give me some direction? I'm guessing I'm going to have to dig into the Windows Media Player DLLs, but a starting point would be really helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,没有简单的方法可以做到这一点。我想你可以尝试在 C# 中包装 this ,但没有记录下来。
As far as I know, there is no easy way to do this. I guess you could try wrapping this in C#, but it isn't that documented.