没人会吗?真的很急!
MediaPlayer怎么就CD放不出来?

解决方案 »

  1.   

    假设光盘为E
    MediaPlayer1.FileName="E:\Track03.cda"
      

  2.   

    光驱有问题吧!?
    不然用 MediaPlayer1.Device = "CDAudio"
      

  3.   

    MediaPlay哪来的Device!又不是MCI
      

  4.   

    MMControl1.DeviceType = "CDAudio"
        MMControl1.Command = "open"然后点击播放就可以了
      

  5.   

    MMControl1就是我的程序中的Media Player控件的名称
      

  6.   

    老大:Microsoft MultiMedia Controls于Windows MediaPlayer不是一个东西
    再说,Windows Mediaplayer根本没有DeviceType。
      

  7.   

    你说的到底是MultiMedia Control还是MediaPlayer库
      

  8.   

    Sorry,有一个这样的控件
    网上关于MediaPlayer控件的代码很多,给你一个完整的代码范例先:
    http://www.ryerson.ca/~sgray/vbamp.htm
      

  9.   

    这个问题其实很简单的.我给你大致的代码:
    在新建form中加入commondialog,command,mediaplayer
    private command1_click()
    commondialog1.showopen
    mediaplayer1.filename=commondialog1.filename
    mediaplayer1.autoplay=true
    end sub
      

  10.   

    这段代码的效果应该与:
    mediaplayer1.filename="e:\track03.cda"
    mediaplayer1.autoplay=true
    相同呀!
    好像不行。
      

  11.   

    http://megatops.digitalrice.com/Download/MDGo!_Setup.zip
    我就是急需在里面加入CD支持。我不想混用MCI控件,因为会增大安装体积。
    紧迫紧迫!!各位大哥赶紧帮忙,救救我这个菜鸟!!!!
      

  12.   

    不好统一控制,最好是Windows Media Player的。
      

  13.   

    API不能统一控制?而且api也简单也就几条语句就可以搞定了。
    你要使用windowsmidiaplayer 你会更惨,因为7.0的mdeiaplay才支持CD
    用98的人不可能去装的。它占用资源太大。如果你的用户对象是Windows Me那用它吧
      

  14.   

    我是说在我的软件中API和MediaPlayer不好统一控制。我的用户对象是XP和Me用户。
      

  15.   

    摘自Windows Media Player SDK我也看不太懂,你看看吧,不行我再帮你找
    还有,Windows Media Player6.4已经支持CDAudio,Windows Media Player6.4在Win98se中内置
    Player6.FileName
    This property specifies or retrieves the name of the clip to play.SyntaxMediaPlayer.FileNamePossible ValuesThis property is a read/write String with a default value of "" (the empty string).ResIf the value of the AutoStart property is true, file playback begins automatically whenever you set the FileName property. If you set both AutoStart and FileName at design time, the Windows Media Player control begins playing the file when it is loaded.Setting this property is a synchronous operation; control does not return to the application until after the file has completed the open process. The Open method performs the same operation asynchronously. To use compact disc audio with your CD-ROM drive as input to the Windows Media Player control, set this property to cdaudio: (with the trailing ":"). For more information, see Compact Disc Audio Playback. To use digital video disc (DVD) as input, set this property to dvd: (with the trailing ":"). For more information, see Viewing DVD in a Web Page.