C#中的MP3媒体播放器 [英] MP3 Media Player in C#

查看:168
本文介绍了C#中的MP3媒体播放器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好.

我看了这个网站上的低级音频播放器....我想知道是否有任何方法可以使它播放mp3或wma文件格式.应该在C#中完成

真诚的感谢您.

Good day.

I have taken a look at the low level audio player on this site....I was wondering if there is any way of making it play mp3''s or wma file formats. It should be done in C#

Thank you sincerely

推荐答案

第一个也是最直接的考虑方法:您可以使用可用的System.Windows.Media.MediaPlayer组件,并将其用于WPF应用程序中.

它播放的内容取决于已安装的codecs.

对于wma,您需要Windows Media(您应该已经拥有): http://windows. microsoft.com/zh-CN/windows/products/windows-media [ http://en.wikipedia.org/wiki/K-Lite_Codec_Pack [ http://codecguide.com/ [ ^ ].

—SA
First and most straightforward way to consider: you can use available System.Windows.Media.MediaPlayer component and use it in your WPF application.

What it plays depends on installed codecs.

For wma you need Windows Media (which you should already have): http://windows.microsoft.com/en-US/windows/products/windows-media[^].

For most versatile support of audio/video media containers and codecs I would recommend Open Source K-Lite Codec Pack, see:
http://en.wikipedia.org/wiki/K-Lite_Codec_Pack[^],
http://codecguide.com/[^].

—SA


这篇关于C#中的MP3媒体播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆