diff options
Diffstat (limited to 'web/script/player')
-rw-r--r-- | web/script/player/mediacaps.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/web/script/player/mediacaps.ts b/web/script/player/mediacaps.ts index 1fec967..7b57302 100644 --- a/web/script/player/mediacaps.ts +++ b/web/script/player/mediacaps.ts @@ -67,7 +67,14 @@ export function profile_to_partial_track(profile: EncodingProfile): SourceTrack language: "en", name: "test video" } - } else throw new Error("todo: subtitles"); + } else if (profile.subtitles) { + return { + codec: FFMPEG_ENCODER_CODEC_MAP[profile.subtitles.codec], + kind: { subtitles: true }, + language: "en", + name: "test subtitle" + } + } else throw new Error("unreachable"); } const MASTROSKA_CODEC_MAP: { [key: string]: string } = { |