feat: add fine subtitle timing shift
This commit is contained in:
1 parent
b66034c8a9
commit
93e06ca40a
3 files changed
+18
-2
No files matched your search
@@ -51,6 +51,11 @@ assert.equal(
|
||||
"00:00:04.500 --> 00:00:08.500",
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
shiftCueTimeRange("00:00:04.000 --> 00:00:08.000", 0.2),
|
||||
"00:00:04.200 --> 00:00:08.200",
|
||||
);
|
||||
|
||||
const shifted = shiftSubtitleCues([
|
||||
{ timeRange: "00:00:04.000 --> 00:00:08.000", text: "Second line" },
|
||||
], 1.25);
|
||||
|
||||
Reference in new issue
Block a user