'Why WindowsMediaPlayer control no longer playing in VS2022?

I used to use WindowsMediaPlayer in VS 2019 (c#) to play sound files. It was quite easy. You just have to check up the component, drag the control from toolbox to the form, and set the URL property to a sound file path. The wmp will automatically play after running. Recently, however, When I tried to use the same control in VS 2022 to play sound files, the player won't play anymore. There is even no any response when I click the play button of the UI. I tried to open the same project saved in VS2022 using VS2019, the URL I entered in VS2022 just disappear. Is this a bug or is there anything I have missed?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source