Control the chunk requests url on smooth streaming

Jul 19, 2010 at 11:09 AM
Edited Jul 19, 2010 at 12:41 PM

Is it possible to Control the chunk requests URL?

I need to add custom parameters to each chunk request.- is it even possible to do it ?

As i see from the source code the chunks are been downloaded via the Microsoft.Web.Media.SmoothStreaming.TrackInfo.BeginGetChunk function which i can not change.
Is there any other entry point that i can control the get chunks URL requests ?

This is a very important feature that we need in order to support  chunk protection.

Jul 20, 2010 at 10:26 PM

Hi Shrik, I believe this is possible using the ISmoothStreamingCache which is part of the SmoothStreamingMediaElement API.  Fortunately, SMF provides support for loading an implementation of this interface as a plugin and sets it as the SmoothStreamingCache on the SSME for you.  What would be required, is for you to implement the interface and add the [ExportAdaptiveCacheProvider] attribute to your class.  This attribute is what enables SMF to recognize it as a plugin.

May 17, 2011 at 3:32 PM
Edited May 17, 2011 at 3:34 PM

I see that you had some success using ExportAdaptiveCacheProvider.  What plugin interface type did you use?  I've tried IPlugin and IGenericPlugin to no avail...

May 17, 2011 at 6:30 PM

Please disregard.  Not sure why I thought implementing one of the plugin interfaces is required.

Jun 10, 2011 at 10:00 AM

Hi ibennett

Can you post an example of how you got this to work?