Link to home
Start Free TrialLog in
Avatar of Max Destiny
Max Destiny

asked on

Video Player 2017

string URL="https://www.youtube.com/watch?v=foE1mO2yM04";

MediaElement el = new MediaElement();

el.source = URL;

el.LoadedBehaviour = MediaState.Manual;

MediaPlayer play = new MediaPlayer();

el.source = play.source;

play.Play();


where I am wrong?(Visual Studio-Experimental Instane of 2017)

trying to debug this for 3 h
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

I see that you have posted at least 2 other questions for exactly the same issue on which experts have commented/asked to specify some aspects and you very often just ignore them. Since we don't have access to your project, you need to help us help you!

What kind of application is that? WPF? Windows Forms? Other?
Avatar of Max Destiny
Max Destiny

ASKER

WPF
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yeah and no!

el.source is a Uri so this doesn't work

we want URL!
this is easy:
el.Source = new Uri(URL);

Open in new window