![]() ![]() Instead of making a call to the IIS Server, BeginRetrieve will process, and EndRetrieve will return, a SmoothStreamingAsyncResult that contains a non-null CacheResponse object to be played back by the application instance of SmoothStreamingMediaElement.Īs demonstrated in the sample, EndRetrieve must wait for BeginRetrieve to complete by using the ar.AsyncWaitHandle.WaitOne method, and, similarly, EndPersist should wait for BeginPersist to complete. On the first pass, before the cache has any data, the calls to BeginRetrieve and EndRetrieve return a null CascheResponse object. If BeginPersist and EndPersist have previously run successfully, the cache will already have the required data on a new data request. When an ISmoothStreamingCache object is engaged and a request for data is issued, the Silverlight Smooth Streaming Client will call each of the methods in order: BeginRetrieve, EndRetrieve, BeginPersist, EndPesist. When the data has been successfully parsed and persisted, EndPersist returns true. ![]() If there is enough available storage, the data is stored in IsolatedStorage. The BeginPersist method parses the data returned from the server. The application will then call BeginPersist to cache the data for future use as needed for the off-line scenario. ![]() To locate this file on your local drive browse to C:\Program Files (x86)\Microsoft SDKs\IIS Smooth Streaming Client\v1.5\Silverlight on 64 bit machine. When an ISmoothStreamingCache object is engaged and a request for data is issued, the Silverlight Smooth Streaming Client will call each of the methods in order: BeginRetrieve, EndRetrieve, BeginPersist, EndPesist. Right click on Silverlight project and add reference of .dll. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |