feat: add multilingual subtitle tracks

This commit is contained in:
Nice Try
2026-06-26 14:34:10 +00:00
parent 7ce7941712
commit 22871f6679
13 changed files with 486 additions and 89 deletions
+26
View File
@@ -445,6 +445,9 @@ My_Courses/
│ └── 01 - Welcome.mp4
├── 02 - Core Concepts/
│ ├── 01 - Lesson One.mp4
│ ├── 01 - Lesson One.en.vtt
│ ├── 01 - Lesson One.es.vtt
│ ├── 01 - Lesson One.ja.vtt
│ └── 02 - Lesson Two.mp4
└── 03 - Practice/
└── 01 - Lab Walkthrough.mp4
@@ -452,6 +455,29 @@ My_Courses/
Supported video extensions include common browser-playable formats such as `.mp4`, plus additional local media formats depending on browser support.
### Subtitles
OfflineAcademy supports subtitle files stored beside the matching video. Use `.vtt` for the best browser compatibility; `.srt` files are detected as best-effort tracks.
Single subtitle track:
```text
01 - Lesson.mp4
01 - Lesson.vtt
```
Multiple language tracks:
```text
01 - Lesson.mp4
01 - Lesson.en.vtt
01 - Lesson.es.vtt
01 - Lesson.ja.vtt
01 - Lesson.fil.vtt
```
Language suffixes become selectable tracks in the video player settings menu. Examples: `en`, `es`, `fr`, `ja`, `fil`, `zh-CN`, `pt-BR`.
---
## Data & Persistence