Is it possible to save fully buffered content to a file?

Topics: Windows 8 Xaml
Jul 2, 2013 at 3:43 PM
This might be an enhancement request or something I've just not spotted in the docs.

Is there a mechanism (callback?) that can alert me when a piece of content has finished buffering and pass me the StorageFile for the temporary version such that I can then copy that StorageFile into the users content library for later use (so it doesn't have to re-buffer each time)?
Coordinator
Jul 18, 2013 at 9:39 PM
One way that you might be able to accomplish this is to create a custom implementation of the IRandomAccessStream interface that you pass to player.SetSource(stream). This implementation would download the data and provide the bits for playback. At the same time, it could also save the bits to disk for later playback.

As you already guessed, this feature is not built into the player framework, nor the underlying MediaElement used internally to play the video.

Hope this helps, Tim