0
Answer

Media Element source property in code behind

pavani pavani

pavani pavani

15y
8.3k
1
Hi,

I am developing one application in that I have more than 5 media elements.
I want to assign path to media element source from database.For that I have created one silverlight application and there is a ClientBin in silverlight website, I have saved my uploaded videos in clientbin and that path in database.
But from code behind if i assign the path its not showing anything.
my sample code is
mplayer.Source = new System.Uri(@"D:\sample\sample.Web\ClientBin\Lake.wmv", UriKind.Absolute);
Can you please tell me is there any other way to assign path to source property or what is the mistake I have done in that code.


Thanks in Advance
Pavani