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
+2-11Lines changed: 2 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,10 @@
1
1
# 💐 Add support for SRT subtitles in HTML5 video elements
2
2
3
+
> ✅ This package uses **0** external dependencies!
4
+
3
5
Officially only VTT files are supported by the HTML5 track element.
4
6
This package will convert your SRT subtitles on the fly to VTT subtitles.
5
7
6
-
### 👉 What's new in v2?
7
-
- Updated code base to modern JavaScript
8
-
- Added [TextDecoder](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder?retiredLocale=nl) to support all kinds of encodings
9
-
- 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.
10
-
- Does not break the TextTrack selection in video elements
11
-
- The previous version broke the TextTrack selection in the captions' menu. So when you had multiple captions you could not switch between them.
12
-
- Is available as a package (ES module) or as a ready to use script
13
-
- No external dependencies
14
-
- More functionality included
15
-
- TypeScript support
16
-
17
8
### Installation
18
9
19
10
As a NPM package, works both in the browser and NodeJS
0 commit comments