Saturday, March 31, 2012 9:57 AM
The Media Server sample demonstrates how to programmatically browse a Digital Media Server on local network and display all of its video files.
This sample could run normally .
But I want it to display all of the image files of digital media server on my local network.
So I modified the code of LoadMediaFiles() function in file "Media Server client\C#\ScenarioInput1.xaml.cs":
videofolder.DisplayName == "Videos" ===> videofolder.DisplayName == "Pictures"
allVideosFolder.DisplayName == "All Videos" ===> allVideosFolder.DisplayName == "All Pictures"
The list of the image files display properly. But when I click one file in the list, the image file can't display. It shows "Error loading from server".
Video files and music files could play normally but image files. Why?
- Edited by smilefishcc Sunday, April 01, 2012 7:11 AM
Sunday, April 01, 2012 7:13 AMWho can give me some help?
Tuesday, May 01, 2012 6:29 PMvideo tag does not support image files. You need to add image tag and re-assign images to it.
Wednesday, May 09, 2012 7:24 AM
Hi, rk8dev. Thanks for your reply. I add image tag and re-assign image to it. No errors. But the image doesn't show.
var stream = await imageFile.OpenAsync(FileAccessMode.Read);
BitmapImage bitmap = new BitmapImage();
PictureElement.Source = bitmap;
I debug it. It's the values of stream.
If the imageFile is a file in my computer, it can be displayed.