I'm writing a WPF application and I have a MediaElement-Property called VideoPlayer in a class called ViewmodelVideos.
When I say
ViewModelVideos.VideosPlayer.Source = new Uri(text);
I get an exception:
Exception thrown: 'System.InvalidOperationException' in WindowsBase.dll
I can't figure out why thats not working. Any ideas?
Edit:
"text" is a valid url which I can put into my browser and it works. No https, simple http://...