You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-13Lines changed: 0 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,9 @@
4
4
5
5
**Why is zero external dependencies important?**
6
6
7
-
Using external dependencies not only make you code base very large, but can and will pose a security risks over time.
8
-
9
7
Officially only VTT files are supported by the HTML5 track element.
10
8
This package will convert your SRT subtitles on the fly to VTT subtitles.
11
9
12
-
### 👉 What's new in v2?
13
-
- Updated code base to modern JavaScript
14
-
- Added [TextDecoder](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder?retiredLocale=nl) to support all kinds of encodings
15
-
- SRT can be encoded in [multiple formats](https://en.wikipedia.org/wiki/SubRip#Text_encoding), while WebVTT should only be [encoded in UTF-8](https://www.w3.org/TR/webvtt1/#file-structure) format.
16
-
- Does not break the TextTrack selection in video elements
17
-
- The previous version broke the TextTrack selection in the captions' menu. So when you had multiple captions you could not switch between them.
18
-
- Is available as a package (ES module) or as a ready to use script
19
-
- No external dependencies
20
-
- More functionality included
21
-
- TypeScript support
22
-
23
10
### Installation
24
11
25
12
As a NPM package, works both in the browser and NodeJS
0 commit comments