Skip to content

Commit

Permalink
Add pgssub to ExoPlayer subtitle codecs
Browse files Browse the repository at this point in the history
ExoPlayer supports decoding embedded pgssub subtitles, so they should be enabled.
  • Loading branch information
Maxr1998 authored and nielsvanvelzen committed May 13, 2023
1 parent cf52144 commit 8b6e2ae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,11 @@ class DeviceProfileBuilder(
*/
private val FORCED_AUDIO_CODECS = arrayOf(*PCM_CODECS, "alac", "aac", "ac3", "eac3", "dts", "mlp", "truehd")

private val EXO_EMBEDDED_SUBTITLES = arrayOf("srt", "subrip", "ttml")
private val EXO_EMBEDDED_SUBTITLES = arrayOf("pgssub", "srt", "subrip", "ttml")
private val EXO_EXTERNAL_SUBTITLES = arrayOf("srt", "subrip", "ttml", "vtt", "webvtt")
private val SUBTITLES_SSA = arrayOf("ssa", "ass")
private val EXTERNAL_PLAYER_SUBTITLES = arrayOf(
"ssa", "ass", "srt", "subrip", "idx", "sub", "vtt", "webvtt", "ttml", "pgs", "pgssub", "smi", "smil",
"ass", "idx", "pgssub", "smi", "smil", "srt", "ssa", "sub", "subrip", "ttml", "vtt", "webvtt",
)

/**
Expand Down

0 comments on commit 8b6e2ae

Please sign in to comment.