2
votes

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 :)

2
Yes, this is same project that I have tried for external CC (above 'VideoPlayback project in windows-universal-samples'), but thank you for your kindness :)Hyundo Moon

2 Answers

1
votes

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

1
votes

You can use TimedTextSource to support closed-captioning. See Scenario 4 in Microsoft's VideoPlayback sample. You have to set the TimedTextSource as an ExternalTimedTextSources in the MediaSource.