0
我使用ExoPlayer可以播放来自URL的音频。我有看起来像这样的XML格式的字幕:ExoPlayer:显示字幕
[
{
"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
}
]
我知道有一种方法可以在使用ExoPlayer播放时显示字幕。但是,我在开发人员指南中扫描了一切:ExoPlayer Developer's guide,但没有找到如何操作,因为文档非常差。 另外,字幕的XML格式是否适合ExoPlayer,如果现在,我应该如何将它们转换为什么格式。 ExoPlayer忍者请帮助我)