Search Wiki:
Resource Description
Sample code for Smooth Streaming Client 1.0 RTW for Silverlight 4.
Last edited Jun 10 2010 at 8:08 PM  by MikeDodaro, version 8
Comments
MikeDodaro wrote  Feb 13 2010 at 2:12 PM  
The new Calculator solution will be useful if you want to create composite manifests for rough cut editing scenarios. More documentation coming in the last week of February 2010. For now, see http://blogs.iis.net/vsood/archive/2010/01/22/composite-manifest-support-for-rough-cut-editing-scenarios-in-ssme.aspx .
I'll add a more documentation to this location next week. There is a sample composite manifest file in the project:

Replace @"Big Buck Bunny.ismc" in the following line of code with the client manifest from which you want to extract t values for a composite manifest.

XElement cElementsFromFile = XElement.Load(@"Big Buck Bunny.ismc");

MikeDodaro wrote  Feb 15 2010 at 7:21 PM  
Updated calculator to download manifest from server. Replace serverName and the example manifest with your source and manifest file.

MikeDodaro wrote  Mar 3 2010 at 5:54 PM  
There is a new article by Jit Ghosh with code samples in the current issue of MSDN magazine. The piece is titled: Enhancing Silverlight Video Experiences with Contextual Data. http://msdn.microsoft.com/en-us/magazine/ee336025.aspx

MikeDodaro wrote  Sep 7 2010 at 2:27 PM  
See the documentation:
IIS Smooth Streaming Client 1.0 RTW at http://msdn.microsoft.com/en-us/library/ee958035(VS.90).aspx
API reference at: http://msdn.microsoft.com/en-us/library/microsoft.web.media.smoothstreaming(v=VS.90).aspx

MikeDodaro wrote  Sep 29 2010 at 12:09 AM  
The new documentation downloads apply to the sample:
Silverlight IIS Smooth Streaming Offline Cache
1. Silverlight IIS Smooth Streaming Cache Documentation
2. Debugging Silverlight IIS Smooth Streaming Cache Applications

MikeDodaro wrote  Sep 30 2010 at 1:11 AM  
Got some feedback from the guys who invented this idea, so the cache plug-in will be changed tomorrow per the following:
1) It probably is not necessary to read from IsolatedFileStorageStream to MemoryStream before passing to new CacheResponse(Stream). Should be able to pass in the IsolatedFileStorageStream directly.
2) Ditto for opposite direction. Call CacheResponse.WriteTo(IsolatedFileStorageStream) instead of writing to MemoryStream and then to IsolatedFileStorageStream.
3) Should do the work in EndRetrieve/EndPersist. Suppose that Isolated File I/O is really expensive. Prefer to call BeginRetrieve/BeginPersist and have the work done in callback. In this particular case the work would have already been done by the time callback was called. It’s not a big deal here because we always call the callback synchronously, but it would have been better practice.
4) Using SmoothStreamingAsyncResult, but in fact this is no longer public. It is currently public in SSME v2.0 beta DLL, but we haven’t decided if we will ship that way. May need to create custom implementation.

MikeDodaro wrote  Oct 1 2010 at 1:07 AM  
I've put version 2 of the cache plug-in on the downloads page:
http://code.msdn.microsoft.com/SmoothStreaming/Release/ProjectReleases.aspx?ReleaseId=3867
As recommended in previous comment, this version skips intermediate reading and writing of streams and does the work in the EndPersist and EndRetrieve methods instead of BeginPersist and BeginRead.

MikeDodaro wrote  Oct 12 2010 at 6:33 PM  
IIS Smooth Streaming Windows Phone 7 Sample Application is now available on downloads page.

Updating...
Page view tracker