"Embed" an external video clip
-
Hi all, I am trying to show a video clip after the user clicks on a thumbnail image. I tried 3 ways already, without joy :(( 1) I included the video as a resource in the project – but it took too long to load, obviously :( 2) I tried the following line, which opens the video nicely :thumbsup:, but in another browser window :thumbsdown: System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("http://youtu.be/code\_for\_video"), "", "toolbar=1,menubar=1,resizable=1,scrollbars=1,top=0,left=0"); 3) I tried the following line, which doesn’t work :~ htmlHost.SourceUri = new Uri("http://youtu.be/code\_for\_video"); I am doing something wrong? Am I missing something essential? Should I try something else? I want to show the video in something like an iframe, but I can’t get anything worthwhile after numerous Google searches. I am using Silverlight 3, and Microsoft Visual Web Developer 2010 Express. Any advise, guidance and suggestions are welcome.:cool: Thanks.
-
Hi all, I am trying to show a video clip after the user clicks on a thumbnail image. I tried 3 ways already, without joy :(( 1) I included the video as a resource in the project – but it took too long to load, obviously :( 2) I tried the following line, which opens the video nicely :thumbsup:, but in another browser window :thumbsdown: System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("http://youtu.be/code\_for\_video"), "", "toolbar=1,menubar=1,resizable=1,scrollbars=1,top=0,left=0"); 3) I tried the following line, which doesn’t work :~ htmlHost.SourceUri = new Uri("http://youtu.be/code\_for\_video"); I am doing something wrong? Am I missing something essential? Should I try something else? I want to show the video in something like an iframe, but I can’t get anything worthwhile after numerous Google searches. I am using Silverlight 3, and Microsoft Visual Web Developer 2010 Express. Any advise, guidance and suggestions are welcome.:cool: Thanks.
-
-
Hey Navin, Thanks for the prompt reply :cool: I do, however, want to embed the video into my SILVERLIGHT app, and not on the apsx page.
Hi Mc, Why you are not trying for YoueTube API? Bcz. if u want to show youtube video, then it will embed that video frame into your page. If you are using silverlight control, then just pass the video url to your media control. Hope it work. Best of luck!
-
Hi all, I am trying to show a video clip after the user clicks on a thumbnail image. I tried 3 ways already, without joy :(( 1) I included the video as a resource in the project – but it took too long to load, obviously :( 2) I tried the following line, which opens the video nicely :thumbsup:, but in another browser window :thumbsdown: System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("http://youtu.be/code\_for\_video"), "", "toolbar=1,menubar=1,resizable=1,scrollbars=1,top=0,left=0"); 3) I tried the following line, which doesn’t work :~ htmlHost.SourceUri = new Uri("http://youtu.be/code\_for\_video"); I am doing something wrong? Am I missing something essential? Should I try something else? I want to show the video in something like an iframe, but I can’t get anything worthwhile after numerous Google searches. I am using Silverlight 3, and Microsoft Visual Web Developer 2010 Express. Any advise, guidance and suggestions are welcome.:cool: Thanks.
I have even tried the VideoBrush today, with no success :( See code below. On page Player:
…
…
…Then from the xaml page where the user clicks on the image to see video clip:
…
player.mediaPlayer.Source = new Uri("http://youtu.be/code\_of\_video");
player.rect.Fill = player.brush;
…Please help me! :cool: