Solved

Best way to stream a large WMV to Silverlight client

Posted on 2011-03-15
5
372 Views
Last Modified: 2012-08-14
I've been asked to add a large WMV file (180MB), as part of a presentation display, using Silverlight.

Due to the size of the file, I'm trying to lighten the load as best I can, to prevent excess memory usage and CPU load.

The idea of I've had so far are:

1) Download the file form the server on first load, then either save to IsolatedStorage, or save to file, as I'm always running OOB.

2) Somehow stream the file from the server, so I don't have to donlaod it, or load it into memory. I already have a large set of images making up a slide show, so I'm trying to keep memory usage down.

Can anyone give my any advice on the best way to tackle this.

Thanks
0
Comment
Question by:wint100
  • 4
5 Comments
 
LVL 4

Expert Comment

by:Adam (CodeTwo Software)
ID: 35136099
If you want to downalod a file which is that big to isolate storage, you will need to do two things:

1.Make sure your users will allow you to increase isolate storage to that size (by deafult it's only 1mb for silverlight) - user's will have to manually confirm this.

2.Use fast streaming up e.g. send your file through sockets so it won't lag on the users' side. Once its download it can be displayed without any lags on the users side pretty much the same way it is done in flash.

You can also run the film online in silverlight. You have to have this file on a server. Create an plugin in the clinet which will connect with servers through sockets and then upload the file to the buffer and display it. But this does not seem to be the best idea. The first option seems to be the smartest one.
0
 
LVL 1

Author Comment

by:wint100
ID: 35136143
I'm trying to avoid user intervention as it is an unattended display.

I guess the bets option here is to save the Movie to the HDD, as I'm running in full trust OOB at all times, so it wouldn't need an increase in IS usage.

Will loading the 180MB WMV into a media element use 180MB of memory, or is WMV compressed, meaning it will bloat up when loaded into memory.
0
 
LVL 1

Author Comment

by:wint100
ID: 35180655
Another option I thought of, it to use the WebBroswer control and set the source to a html page on the server, that has some sort of mediaplayer embedded (Flash or Silverlight), the client can then stream this using the media player server side.

Any thoughts?
0
 
LVL 1

Accepted Solution

by:
wint100 earned 0 total points
ID: 36978553
I ended up using IIS Smooth Streaming, which gave the desired results.
0
 
LVL 1

Author Closing Comment

by:wint100
ID: 37010484
Solution found elsewhere
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now