I have video files with the custom extension. They are correctly encoded MP4-files. When I try to play such file using the MediaElement
, nothing happened:
<MediaElement x:Name="UxVideo" Source="D:\111.xyz" />
However, it works fine when I rename the file extension:
<MediaElement x:Name="UxVideo" Source="D:\111.mp4" />
It seems like MediaElement
uses the file extension to figure out the video format. Are there any workarounds to make MediaElement
play files with custom extensions? Maybe any other controls to achieve what I need?
It's not suitable for me to rename file at runtime, because other applications may use it. And I can't make a copy of file, because it may have a large size.
UPDATE
I have associated my file extension with the Windows Media Player, and MediaElement
started to work correctly o_O
OK, but it's my machine. What to do with the client's PC?