CacheRequest Class
The object describing the request being made.
Inheritance Hierarchy
System.Object
Microsoft.Web.Media.SmoothStreaming.CacheRequest
Microsoft.Web.Media.SmoothStreaming.CacheRequest2
Namespace: Microsoft.Web.Media.SmoothStreaming
Assembly: Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
Syntax
'Declaration
Public Class CacheRequest
'Usage
Dim instance As CacheRequest
public class CacheRequest
public ref class CacheRequest
type CacheRequest = class end
public class CacheRequest
The CacheRequest type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CacheRequest(Stream) | Initializes a new instance of the CacheRequest class from a Stream object. | |
CacheRequest(Uri) | Initializes a new instance of the CacheRequest class from a Uri object. |
Top
Properties
Name | Description | |
---|---|---|
CanonicalUri | The Uri of the request. |
Top
Methods
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 request 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 request to a Stream object. |
Top
Remarks
The CacheRequest 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.
Version Information
Silverlight
Supported in: 5
Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.