Question

When using wpf's media element to play a video; is it possible to get the name (metadata) of the video that was loaded? I now know it's not possible get the frame number of the video, I just want to know if the same is true for the filename. I am trying to save (in the database) the video name together with the processed frame for trace-ability and i'm stuck here.

Thanks!

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top