This project is read-only.

Subtitle tracks / caption support?

Topics: Windows 8 Xaml
Jan 17, 2013 at 5:16 AM


Our app is written using XAML/C# and the Player Framework.

We would like to display subtitles when our users ask us to play media with subtitle streams.  These subtitles may be embedded in the files themselves, or available as srt/vobsub/ssa/ttxt/smi or other formats.

From what I've seen, there's a TimedTextPlugin in the PF box that supports TTML from a URL.  So we could convert our subtitles to TTML, then provide a proxy URL to an endpoint that would serve up the TTML to the MediaPlayer.

Is there a simpler or better way to do this?


Jan 21, 2013 at 10:16 PM

Here are some ways I can think of to accomplish this:

  1. As you mention: convert to TTML on the server.
  2. Convert ahead of time on the client-side and assign Caption.Payload to a TTML string instead of setting Caption.Source
  3. Create custom plugin(s) to support the other types of caption formats you need.