Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Best way to stream a large WMV to Silverlight client

Posted on 2011-03-15
5
Medium Priority
?
383 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

609 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