Table of contents
In order to show subtitles you have three options:
- Use an HLS stream with embedded subtitles
- Use an HLS stream as
FPExternalMediaand configure the URL to subtitles
- Upload the VTT files to Flowplayer Platform and use
If you HLS stream contains subtitles you are all set.
FPFlowplayer will detect them and load them when loading the provided media.
You can upload subtitles as VTT files for a video in the Flowplayer Platform UI from the "Files" view. The labels and languages configured will show up in the player.
If you are using
FPExternalMedia, you can configure the subtitles by hand:
let track = FPTrack( lang: "en", src: "https://mycdn.example.com/subs.vtt", label: "English subs", kind: "" ) let externalMedia = FPExternalMedia( mediaUrl: "https://mycdn.example.com/video.m3u8", adSchedule: nil, metadata: nil, subtitles: [track] )
Please note that subtitles only work with HLS streams, also when using