Set cover image to MediaPlayerElement in C# uwp for audio files

Tamás Bitó 20 Reputation points
2024-06-14T13:43:15.85+00:00

In my C# uwp project, i want to set a cover image to my MediaPlayerElement object, when an mp3 (or other audio file) loaded. I have tried the PosterSource property, but after i have been loaded a file in my mediaplayer, the postersource disappeared.

I don't want to overlay an image with the mediaplayer element, because the transportcontrols panel covers part of the image.

Do you have any suggestion to solve this?

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,555 questions
{count} votes