本文利用C# 调用Windows自带的Windows Media Player 打造一款属于自己的音乐播放器,以供学习分享使用,如有不足之处,还请指正. 概述 Windows Media Player是微软公司出品的一款免费的播放器,属于Microsoft Windows的一个组件,通常简称"WMP",支持通过插件增强功能.版本Windows Media Player 12 随 Windows 7及以上提供.可以播放MP3,WMA,WAV等音频文件.本文音乐播放器,主要是MP3文件.
一.新建windows应用程序项目,添加vedioForm窗体 二.在com组件中找到windows media player,添加引用 三.代码如下: public partial class VedioForm : Form { private AxWMPLib.AxWindowsMediaPlayer axWindowsMediaPlayer1; public VedioForm() { InitializeComponent(); InitVedio(); } private void
代码如下: using System; using System.Runtime.InteropServices; using System.Text; using System.IO ; using System.Windows.Forms; namespace WindowsApplication7 { /// <summary> /// clsMci 的摘要说明. /// </summary> public class clsMCI { public clsMCI() { /
vlcPlayer是一款免费开源的播放器项目,可以播放几乎所有的视频格式. 第一步:获取dll 安装vlcplayer视频播放器,在安装目录下面获取所需的dll. dll文件夹:plugins 还有2个dll:libvlc.dll,libvlccore.dll 第二步:获取播放器对象基类VlcPlayerBase using System; using System.Runtime.InteropServices; using System.Security; using System.Text
http://developer.android.com/guide/topics/media/exoplayer.html 前言: Playing videos and music is a popular activity on Android devices. The Android framework provides MediaPlayer as a quick solution for playing media with minimal code, and the MediaC