Music re-starts automatically when the window looses focus?

Hi There,

I’ve a strange problem and wanted to ask whether anybody came across with it.

Basically I’m playing background music using MediaPlayer and if the window looses focus, the music resets itself and start playing from the beginning. Even weirder, after the music is played/completed or stopped, think it as an intor music, and the game window looses focus at some later point in the game, let’s say in the menu, it again starts playing that stopped intro music. Is this a known issue or am I the only one experiencing it? By the way, I use the directx version and this happens on Win32 and UWP atleast.

Thanks,

Özden