Sachin Kadam

Sachin Kadam

  • NA
  • 11
  • 37.6k

How to display video file to Media element from web server

Sep 5 2011 6:31 AM
Hi,

here i m using follwoing code for play video :

string strFileName = m.VideName;
Uri VideoUri = new Uri(App.Current.Host.Source, strFileName);
meVideo.Source = VideoUri;
meVideo.AutoPlay = true;

above file is present on ClientBin folder, and path is display with browser "url/ClientBin/fileName.mp4" but its can't Play.


Can anyone tell me how this is done?



Answers (2)