"Offline" video and subtitles with TimedText

Topics: Windows 8 Xaml
Jul 20, 2012 at 9:50 AM
Edited Jul 20, 2012 at 9:57 AM

I need to play a video stored locally (most likely LocalFolder), with captions ALSO stored locally (possibly without internet connection). How do I do that, if everything wants an URI from me?

Jul 20, 2012 at 9:56 AM
Edited Jul 20, 2012 at 10:09 AM

I think I might have found it: ms-appdata:///local/myFile.mp4 and myFile.ttml

is that supported?

 EDIT: obviously not. :( So what else can I do?

Jul 24, 2012 at 3:00 PM

You can play a local video via the SetSource method (takes an IRandomAccessStream which you can get from a file).

Captions assume the url is remote and uses HttpClient to download it. However, you should be able to easily copy CaptionsPlugin.cs from the source, modify it to support local files, add it to your project and add it instead to your plugins collection. Note: I'll also add this as a feature suggestion to our backlog for a future release.

Thanks for the feedback, Tim