Home > Back-end > TMediaPlayer play songs pop-up warning No MCI device open (turn)
TMediaPlayer play songs pop-up warning No MCI device open (turn)
Time:10-19
As title, the following is a list the double-click songs after the ListBox code: Void __fastcall TForm1: : ListBox1DblClick (TObject * Sender)/song/double file list a line {
MediaPlayer1 - & gt; FileName=ListBox1 - & gt; The Items - & gt; Strings [ListBox1 - & gt; ItemIndex]; //send the selected songs file path to player TMediaPlayer Label1 - & gt; Caption=MediaPlayer1 - & gt; The FileName.//Label1 show the path of the song files MediaPlayer1 - & gt; DeviceType=dtAutoSelect;//TMediaPlayer automatically choose MediaPlayer1 - & gt; The Open ();//open players MediaPlayer1 - & gt; Play ();//play songs N=ListBox1 - & gt; ItemIndex;//song number Timer2 - & gt; Enabled=true;//open the control Label1 timer, lateral movement made the file path }
Song path error: F: \ \ music heaven and earth SogouMusic \ C? Be mua?? Ng - Th? Y Tien -?? Ng Kh? I.m p3
Many songs can normal play, it is to jump a few songs will appear after the above error, warning window kept To play out, shut were shut out, according to the error of songs path can be seen, is probably the most songs filename TMediaPlayer Can't identify? That song I convert into other name can be played normally,,, I am a novice, excuse me each Is there a way to deal with this situation? I tried try/catch statements, seemingly no change,,,
CodePudding user response:
According to the code of what is this song name?
CodePudding user response:
Ha, ha, that's a song of Vietnam, the estimate is a player can't identify it, and some other file name is irregular who also can't let, I don't know what to do,,,