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!

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top