i am working on a project where i should play .srt files along with video in android. I was working through the samples of Exoplayer but cant able to play .srt files with vi
Aside from the merged media source I created a Listener for the Text Rendered as an Interface as in the Demo
private final class ComponentListener implements TextRenderer.Output{
@Override
public void onCues(List cues) {
if (subtitleView != null) {
subtitleView.onCues(cues);
}
}
}
player.setTextOutput(componentListener);
I created an object and set the TextOutput as this