SOLUTION So it's very simple, the MediaElement nuget to listen to music opens a media session and you can't have two listens in the same application on the same media. So I loaded the code of the MediaElement Nuget and I modified the code to create an event that passes the MediaButton code. And it works perfectly. So be careful to develop on the MediaElement code you have to load the workload which is far from negligible. I'm going to try to do without the Nuget to just listen to music.