?
Solved

Best way to stream a large WMV to Silverlight client

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

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
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…
Integration Management Part 2

864 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