Export (0) Print
Expand All

CacheResponse Class

The object describing the response from the cache.

System..::..Object
  Microsoft.Web.Media.SmoothStreaming..::..CacheResponse

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)

public class CacheResponse

The CacheResponse type exposes the following members.

  NameDescription
Public methodSupported by Silverlight for Windows PhoneCacheResponse(Stream)Initializes a new instance of the CacheResponse class from a Stream object.
Public methodSupported by Silverlight for Windows PhoneCacheResponse(Int64, String, WebHeaderCollection, Stream, HttpStatusCode, String, DateTime)Initializes a new instance of the CacheResponse class from the parameters.
Top

  NameDescription
Public propertySupported by Silverlight for Windows PhoneContentLengthThe length in bytes.
Public propertySupported by Silverlight for Windows PhoneContentTypeA string object that identifies the content type
Public propertySupported by Silverlight for Windows PhoneExpiryTimeA DateTime object that contains the time of response expiration.
Public propertySupported by Silverlight for Windows PhoneHeadersMetadata collection of response.
Public propertySupported by Silverlight for Windows PhoneResponseA Stream object that contains the response.
Public propertySupported by Silverlight for Windows PhoneStatusCodeAn HTTPStatusCode enumeration object.
Public propertySupported by Silverlight for Windows PhoneStatusDescriptionA string that contains the status description.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneEquals (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneFinalize (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetHashCode (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetType (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneMemberwiseClone (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneReadFromReads 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.
Public methodSupported by Silverlight for Windows PhoneToString (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneWriteToWrites the response to a Stream object.
Top

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.

Silverlight

Supported in: 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft