I'm using ExoPlayer to play audio from a URL. I have subtitles in XML format that look like this:
[
{
"id": 1,
"startTime": "00:00:00",
"endTime": "00:00:05",
"textEn": "towns, in late 15th-century England.",
"textRu": null
},
{
"id": 2,
"startTime": "00:00:05",
"endTime": "00:00:10",
"textEn": "the first thing to note is that in stark contrast to today, England was an overwhelmingly rural country.",
"textRu": null
}
]
I know there is a way to show subtitles while playing using ExoPlayer. However, I scanned everything in developer's guide: ExoPlayer Developer's guide , but did not find how to, because the documentation is really poor. Also, is the XML format of subtitles is suitable for ExoPlayer and if now, how should I convert them and to what format. ExoPlayer ninjas please help me)