Pausing and resuming mp3 with WMPLib and C#

后端 未结 2 2056
伪装坚强ぢ
伪装坚强ぢ 2021-01-15 18:00

I\'m working on a simple mp3 player project with C# and the WMPLib library. The idea is to make it controllable with a PIC component, to control media playing in the PC from

2条回答
  •  忘掉有多难
    2021-01-15 18:53

    ...
    double time = Player.controls.currentPosition; //return always 0 for you, because you pause first and after get the value
    Player.controls.pause();
    
    Player.controls.currentPosition = time;
    Player.controls.play();
    

提交回复
热议问题