Solved

Best way to stream a large WMV to Silverlight client

Posted on 2011-03-15
5
380 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

695 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