Sascha-L / WPF-MediaKit

Microsoft Public License
363 stars 115 forks source link

Fix MediaUriPlayer Uri to string conversion #13

Closed xmedeko closed 7 years ago

xmedeko commented 8 years ago

When a Source Uri is constructed from the local path with a space like:

  1. new Uri("file:///C:/video space.mp4");
  2. new Uri("file:///C:/video%20space.mp4");

Then the MediaUriPlayer.OpenSource() fails. (In case of 1. the oldOpenSource() works, but it fails for 2. as well.) I have added a private FileSource to convert local file to the absolute file always.