请教 MediaPlayer1 的 如何设置 filename ?
假设 C盘下 111文件夹 有 m1.mp3 m2.mp3 m3.mp3
form1 上 画 3个按钮 Button1 Button2 Button3 (依次 对应m1.mp3 m2.mp3 m3.mp3)
按任何一个button 播放该文件 devicetype 为autoselect filename 为空
我在 Button1 的代码中写下(Button2 .3 类似):
MediaPlayer1.filename := ‘ c:\111\m1.mp3 ’ ;
运行 后便报错 说无法通过给定的扩展名确定的设备类型。请教大家该怎么修改啊!