My F:\
drive is a mapped network drive.
I have two videos on it:
F:\Video1.mp4
F:\Video#1.mp4
I'd like to use a MediaElement
to play them.
<MediaElement Source="F:\Video1.mp4" /> <!-- works -->
<MediaElement Source="F:\Video#1.mp4" /> <!-- doesn't work -->
It seems the #
is being treated as %23
when it is a network path. This works fine if F:\
is a local drive.
How can I make F:\Video#1.mp4
work? It is a legitimate path.
Try creating a URI with file:///
prepended:
mediaElement.Source = new Uri( "file:///" + @"F:\Video#1.mp4" );
This Social post says that worked for them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With