How to detect when a mp3 file has finished playing

前端 未结 4 860
旧时难觅i
旧时难觅i 2020-12-10 13:34

My c# windows form is enable to play an mp3 file.I did this using this code

    WMPLib.WindowsMediaPlayer wplayer;
    wplayer = new WMPLib.WindowsMediaPlaye         


        
4条回答
  •  心在旅途
    2020-12-10 13:49

    If you don't necessarily need to know when the file has completed for any other purposes than looping, you may consider the setMode method to turn track looping on.

    http://msdn.microsoft.com/en-us/library/windows/desktop/dd564867(v=vs.85).aspx

提交回复
热议问题