Pausing and resuming mp3 with WMPLib and C#

后端 未结 2 2012
伪装坚强ぢ
伪装坚强ぢ 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:38

    You can get currentposition by converting it to string for example:
    label1.text = convert.tostring(Player.controls.currentPosition);

    I've used a label to show you the exactly currentPosition value.

    Regards

    0 讨论(0)
  • 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();
    
    0 讨论(0)
提交回复
热议问题