CacheResponse Class
IIS 7.0
The object describing the response from the cache.
Namespace: Microsoft.Web.Media.SmoothStreaming
Assembly: Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
The CacheResponse type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | CacheResponse(Stream) | Initializes a new instance of the CacheResponse class from a Stream object. |
![]() ![]() | CacheResponse(Int64, String, WebHeaderCollection, Stream, HttpStatusCode, String, DateTime) | Initializes a new instance of the CacheResponse class from the parameters. |
| Name | Description | |
|---|---|---|
![]() ![]() | ContentLength | The length in bytes. |
![]() ![]() | ContentType | A string object that identifies the content type |
![]() ![]() | ExpiryTime | A DateTime object that contains the time of response expiration. |
![]() ![]() | Headers | Metadata collection of response. |
![]() ![]() | Response | A Stream object that contains the response. |
![]() ![]() | StatusCode | An HTTPStatusCode enumeration object. |
![]() ![]() | StatusDescription | A string that contains the status description. |
| Name | Description | |
|---|---|---|
![]() ![]() | Equals | (Inherited from Object.) |
![]() ![]() | Finalize | (Inherited from Object.) |
![]() ![]() | GetHashCode | (Inherited from Object.) |
![]() ![]() | GetType | (Inherited from Object.) |
![]() ![]() | MemberwiseClone | (Inherited from Object.) |
![]() ![]() | ReadFrom | Reads the response from a Stream object. There is no default implementation for this method. Calling the method without implementing an override will result in a NotSupportedException. |
![]() ![]() | ToString | (Inherited from Object.) |
![]() ![]() | WriteTo | Writes the response to a Stream object. |
The CacheResponse class supports offline playback scenarios. When the SmoothStreamingMediaElement needs a chunk or manifest, it first checks with the registered cache plug-in. If the plug-in has it, the chunk is used. Otherwise, SSME downloads it by HTTP. After the download, SmoothStreamingMediaElement provides an option for the plug-in to persist the downloaded chunk.
A template example for implementation of the cache plug-in ships with Microsoft Expression Encoder 4.
