天黑天明都似梦 2013-10-15 12:18
浏览 844

一个低级播放器的制作代码。。新新新新新手求各位指教。感激不尽。

如题。。。希望大家能够帮我度过漫长煎熬的起步时期。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args);

        private void ButPlay_Click(object sender,EventArgs e)
        {
            this.axWindowsMediaPlayer1.URL=this.optFileName;
        }
    private void ButStop_Click(object sender,EventArgs e)
    {
        this.axWindousMediaPlayer1.Ctlcontrol.stop();
    }
    private void ButPause_Click(object sender,EventArgs e)
    {
        if(this.ButPause_Click.Text="暂停(&A)")
        {
            this.axWindowsMediaPlayer1.Culcontrols.pause();
            this.ButPause_Click.Text="继续(&A)";
        }
        else
        {
            this.axWindowsMediaPlayer1.Ctlcontrols.play();
            this.ButPause_Click.Text="暂停(&A)";
        }
    }
    private WMPLib.WindowsMediaPlayerClass c;
    private WMPLib.IWMPMedia m;
    private void ButInfo_Click(object sender,EventArgs e)
    {
        if(this.optFile.FileName!="optFile")
        {
            c=new WMPLib.WindowsMediaPlayerClass();
            m=c.newMedia(this.optfile.FileName);
            MessageBox.Show("歌手名:"+m.getItemInfo("Author")+"\r\n"+"歌名:"+m.getItemInfo("Title"));
        }
    }
    }
}
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器