This question is locked. New answers and comments are not allowed.
Hi.
I'm developing an application in Silverlight 4 with a very large database connected with Ria Services.
My customer asked me for putting all the images and videos on the main database.
No problem for images but now I don't know how to play and bind MediaPlayer with Video stored as byte[] in a table and use the ISM Smooth Streaming.
I think also I need a ValueConverter like the ones I've written for images shown below
What could be the converter for a wmv or mp4 video?
Plaese, can you help me?
Thanks a lot and regards
Andrea Ferrari
I'm developing an application in Silverlight 4 with a very large database connected with Ria Services.
My customer asked me for putting all the images and videos on the main database.
No problem for images but now I don't know how to play and bind MediaPlayer with Video stored as byte[] in a table and use the ISM Smooth Streaming.
I think also I need a ValueConverter like the ones I've written for images shown below
| public class ImageConverter : IValueConverter |
| { |
| public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
| { |
| BitmapImage bi = new BitmapImage(); |
| if (value != null) |
| bi.SetSource(new MemoryStream((Byte[])value)); |
| return bi; |
| } |
| public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
| { |
| throw new NotImplementedException();//image is readonly(view only) |
| } |
| } |
What could be the converter for a wmv or mp4 video?
Plaese, can you help me?
Thanks a lot and regards
Andrea Ferrari