Skip to content

bachors/SubtitleResync

Repository files navigation

SubtitleResync

Release

Subtitle Resync

Gradle

allprojects {
   repositories {
      ...
      maven { url 'https://jitpack.io' }
   }
}
dependencies {
    ...
    compile 'com.github.bachors:SubtitleResync:1.0'
}

Usage

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
            ...
        }
    });

DEMO