In order to play an audio or video file in a MediaElement
, you must first load the file. Therefore, as you access to the file, you can just read the name of the file at that stage.
Also, if you use a MediaPlayer
object instead, you should be able to use the MediaPlayer.Position
property to show the current playing position of the file.