문제

I have the Window Media Player control (axWindowsMediaPlayer) embedded in a forms application to play mp3 files.

When I try to unload the media, hoping it will disable the play button and not allow further playing of the music it refuses to do so. The last played track remains loaded and can be played.

The code I've tried so far to no effect is:

mediaPlayerObj.newMedia("");
mediaPlayerObj.currentMedia = null;
mediaPlayerObj.URL = "";
mediaPlayerObj.URL = null;
mediaPlayerObj.close();

Surely I'm missing something here? Any help would be gratefully received!

도움이 되었습니까?

해결책

I've managed to resolve this now and the resolution was this:

mediaPlayerObj.currentPlaylist.clear();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top