Subtitles
Subtitles enhance the viewing experience by providing text-based translations or transcriptions for audio content. When you use this feature of the Wowza Flowplayer Android SDK, you can manage subtitles within your video playback experience while providing multilingual support and accessibility options to users.
Our Android SDK supports the WebVTT (Web Video Text Tracks), TTML/SMPTE-TT, SubRip, and SubStationAlpha (SSA/ASS) subtitle formats. The subtitle approach you pick depends on the type of media you're integrating into your application. For information related to listening to subtitle events and managing subtitles, see these pages:
Configure subtitles
If your media doesn't contain any subtitles, you can add your own using the Wowza Flowplayer Android SDK. Use the Subtitle
class to create an array defining the subtitle track label and the URL for the path to your subtitle file. You can then pass these settings to the subtitles
property of your ExternalMedia
instance, as demonstrated in the following example:
val subtitlesList = arrayListOf(Subtitle("English", "https://link.to.a.subtitle.file"))
val externalMedia = ExternalMedia("https://url.to.a.media.file", subtitles = subtitlesList)