Aug 21, 2012 at 6:16 PM
Edited Aug 21, 2012 at 6:17 PM
I can't seem to successfully do this in visual basic:
Private Sub UserControl_Loaded(sender As System.Object, e As System.Windows.RoutedEventArgs)
Dim aaa As New PlaylistItem()
aaa.MediaSource = New Uri("http://manaspatnaik.com/blog/downloads/Demolishor_WMV_HD.wmv", UriKind.Absolute)
aaa.ThumbSource = New Uri("http://manaspatnaik.com/blog/downloads/demolishor.jpg")
aaa.DeliveryMethod = Microsoft.SilverlightMediaFramework.Plugins.Primitives.DeliveryMethods.ProgressiveDownload
While I have no problem in c# doing same:
private void UserControl_Loaded(object sender, RoutedEventArgs e)
//'aaa.MediaSource = New Uri(App.ApplicationHostHttp, New Uri("/ClientBin/PreviewVideos/" & ggg.SampleVideo & ".wmv", UriKind.Relative))
PlaylistItem item = new PlaylistItem();
item.MediaSource = new Uri("http://manaspatnaik.com/blog/downloads/Demolishor_WMV_HD.wmv");
item.ThumbSource = new Uri("http://manaspatnaik.com/blog/downloads/demolishor.jpg");
item.DeliveryMethod = Microsoft.SilverlightMediaFramework.Plugins.Primitives.DeliveryMethods.Streaming; //Add PlaylistItem to the Media
In the VB case, the jpg thumb loads into the playlist, but no video plays. In the C# case, same except the video plays.
I believe I have loaded same References in each project. I created the C# from the project template. Since one was not provided for Silverlight in vb, I started from a straight SL5 project and added references.
Sooo, I suspect I am missing SOMETHING that the template in c# takes care of. Can anyone help me find this, or are there known VB-related shortcomings and that's why there is no project template? I have indeed loaded the Expression preview for SL5.