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. If BeginPersist and EndPersist have previously run successfully, the cache will already have the required data on a new data request. When the data has been successfully parsed and persisted, EndPersist returns true. Microsoft Silverlight bao gm framework thuyt trình, có th x lý hình nh, ch, hình ha, âm thanh, hình nh cùng lúc, ng thi thit k giao din ngi dùng bng ngôn ng ánh du. If there is enough available storage, the data is stored in IsolatedStorage. Là mt plug-in ca trình duyt, Microsoft Silverlight 8.0 mang sc mnh âm thanh và video ci tin n vi các ng dng Web. ![]() 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. On the first pass, before the cache has any data, the calls to BeginRetrieve and EndRetrieve return a null CascheResponse object. 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.
0 Comments
Leave a Reply. |