Media player causes shipped game to still run in task background after exiting

This problem only applies to packaged for shipping games and this has been an ongoing issue for me. But it’s preventing me from putting videos in a game.

Steam will keep saying the game is still running as long as the media player still runs in the background after the game is closed.

closing the media player manually through blueprint is not a good solution because if someone presses alt+f4 or closes the windows close button the blueprint logic just won’t run.

I’ve tried using event shutdown but it doesn’t work 100% of the time and I’ve figured that the game closes too fast before the node can even close the media player.

There should be a way to tell the media player to close automatically even if the person presses alt+f4 right?