Solved

Best way to stream a large WMV to Silverlight client

Posted on 2011-03-15
5
378 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…

733 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