Sascha-L / WPF-MediaKit

Microsoft Public License
366 stars 116 forks source link

URIs should be encoded for FileSource on MediaUriPlayer #70

Open Kornelis opened 6 years ago

Kornelis commented 6 years ago

When passing URIs to the MediaUriPlayer which contain whitespaces or special Charaters the Video Playback fails as the URIs does not get encoded.

DirectShow/MediaPlayers/MediaUriPlayer.cs:108

return m_sourceUri.ToString();

should be changed to:

return Uri.EscapeUriString(m_sourceUri.ToString());