I have made a mp3 player (just for fun), but has problems with making it show the right position.
To begin with i create the MediaElement, then i insert the URI with my mp3 destination.. all good.
Call .Play() on my MediaPlayer, and the Console writes the right position out from my MediaElement... all good
Then i give it a new position, jumps 30 secs into the song, and plays it from there.. all good, but now the problems show themselves.
I Play it for some secs, and pauses it for some secs. When i play it again, the console prints out the old value i gave it, and then shows the right position.
The only way i could prevent this, was to assign MediaElement.Position = MediaElement.Position when i called the .Pause() method. Thereby giving it the new position manually. That fixed the problem.
But there must be an easier way, is there not?
View Complete Post