Subtitle Resync
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
...
compile 'com.github.bachors:SubtitleResync:1.0'
}
String srt = "your subtitle";
new SubtitleResync()
.subtitle(srt) // subtitle String
.delay(SubtitleResync.ADD) // or SubtitleResync.REMOVE
.millisecond(1500) // milliseconds
.resync(new SubtitleResync.Listener() {
@Override
public void onResponse(String srt) {
// output
...
}
});