Search code examples
c#win-universal-appmediaelement

UWP MediaElement Closed Caption Support


I'm writing an Windows 10 UWP app (NOT WPF or Sliverlight) which can play media files.

To do so, I am using MediaElement Class to implement a player.

The problem is that I cannot find what kinds of caption are supported by MediaElement(ME). I could not find any website that explains it.

Is there any web page that has information about exact scope of internal/external captions that ME supports?


My Attempts

To know internal closed caption support, I tried playing some .mkv files that include various closed captions. The result is here:

  1. Works well: UTF-8 Plain Text, ASS Format
  2. Doesn't work: VobSub, Timed Text(Codec ID:tx3g), PGS

Also, for external closed caption files (.srt, .ass, .smi for example), I could check that .srt files are supported by using TimedTextSource but .smi files are not. (From VideoPlayback project in windows-universal-samples)


I wish there exists a page about this information.

Thanks in advance :)


Solution

  • you can use Microsoft Media Player Framework I think is the most complete media player for UWP apps supports advanced scenarios and obviously supports closed captions and the best thing is open source.

    https://playerframework.codeplex.com