日期:2014-05-17  浏览次数:20888 次

怎样做一个音乐播放器呢?
用C#怎样做一个像QQ音乐一样的播放器呢,不需要那么多功能,只要能实现简单的搜歌,播放本地音乐功能即可,请高手指教..

------解决方案--------------------
JS,下插件。
------解决方案--------------------
http://download.csdn.net/source/480218
------解决方案--------------------
http://51aspx.com/S/%E9%9F%B3%E4%B9%90%E6%92%AD%E6%94%BE%E5%99%A8.html
------解决方案--------------------
你要学点软件设计,如果想做功能简单一点的可以用Flash做个播放器也可
,不过要用到Flash中的编程,不过简单多了,
优酷、酷六网上有相关视频可以看着学学
------解决方案--------------------
自己做的MP3怎么给他编一个播放软件呀??

------解决方案--------------------
namespace ShockwaveFlashPlayer
{
public partial class SWFPlayer : Form
{
public SWFPlayer()
{
InitializeComponent();

axShockwaveFlash1.Size = new Size(this.Width, this.Height - 130);
axShockwaveFlash1.Movie = "";

lblReadyState.Location = new Point(0, this.Height - 125);
lblScale.Location = new Point(this.Width - lblScale.Width - 10, this.Height - 125);
trackBar1.Location = new Point(0, this.Height - 100);
}

private void SWFPlayer_Load(object sender, EventArgs e)
{
if (axShockwaveFlash1.ReadyState == 4)
{
lblReadyState.Text = "完成";
lblScale.Text = "0/" + axShockwaveFlash1.TotalFrames.ToString();
btnPlay.Enabled = true;
trackBar1.Enabled = true;
}
}

#region ShockwaveFlash 控件加载文件信息
private void axShockwaveFlash1_OnReadyStateChange(object sender, AxShockwaveFlashObjects._IShockwaveFlashEvents_OnReadyStateChangeEvent e)
{
switch (axShockwaveFlash1.ReadyState)
{
case 0:
lblReadyState.Text = "正在载入......";
break;
case 1:
lblReadyState.Text = "未初始化";
break;
case 2:
lblReadyState.Text = "已载入";
break;
case 3:
lblReadyState.Text = "正在交互......";
break;
case 4:
lblReadyState.Text = "完成";
lblScale.Text = axShockwaveFlash1.FrameNum + "/" + axShockwaveFlash1.TotalFrames.ToString();
trackBar1.Maximum = axShockwaveFlash1.TotalFrames;
btnPlay.Enabled = true;
btnBack.Enabled = true;
btnForward.Enabled = true;
trackBar1.Enabled = true;
break;
}
}

private void axShockwaveFlash1_OnProgress(object sender, AxShockwaveFlashObjects._IShockwaveFlashEvents_OnProgressEvent e)
{
lblReadyState.Text = "已下载 " + axShockwaveFlash1.PercentLoaded() + "%......";
}
#endregion

#region 功能键(播放、后退、前进)
//播放
private void btnPlay_Click(object sender, EventArgs e)
{
if (axShockwaveFlash1.Playing)
{
axShockwaveFlash1.Stop();
btnPlay.Text = "?";
lblReadyState.Text = "暂停";
timer1.Stop();
}
else
{
axShockwaveFlash1.Play();
btnPlay.Text = "■";