I wanna play the video I tried the mediaplayer control but it not able to play the direct links(like youtube),It need to store the xxx.wmv extensions files in solution and just showing in browser,other than this wmv extension no other extensions like avi was not working.
And I also tried the media element, Im directly giving youtube link to source but its not displaying the video.
I'm working on silverlight application, I tried on silverlight no use, and I tried in web then I not able to upload the direct links. So my requirmnet is when user gives any link, any video with any extensions need to play with in that same page.
In XAML
private void StopMedia(object sender, RoutedEventArgs e)
{
MediaElement media = new MediaElement();
Uri address = new Uri("https://www.youtube.com/watch?v=3AYoipyqOkQ");
media.Source =address;
media.Play();
}
In aspx
<form id="form1" runat="server">
<asp:ScriptManager ID="jl" runat="server"></asp:ScriptManager>
<div>
<asp:MediaPlayer ID="MediaPlayer1" runat="server" Height="240px" Width="320px" MediaSkinSource="~/Simple.xaml" mediasource="~/NewFolder1/Butterfly.wmv"></asp:MediaPlayer>
</div>
</form>
In aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
MediaPlayer1.MediaSource = "~/NewFolder1/Butterfly.wmv"
MediaPlayer1.MediaSource ="youtubelink";
}