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
feat(player): add dual subtitle support for language learning (desktop only)
Adds a "Secondary Subtitle" section to the player subtitles menu,
allowing users to select a second subtitle track that renders
simultaneously with the primary one. Gated to desktop only via
platform.shell.active since it relies on mpv's secondary-sid.
- Add setSecondarySubtitlesTrack to useVideo hook
- Add selectSecondaryTrack callback and menuProps in useSubtitles
- Build secondary subtitle section in SubtitlesMenu (appears when
primary selected + desktop shell active)
- Secondary section has own language list, click handlers, OFF button
- Hollow circle indicator for secondary vs filled for primary
- All existing subtitle selection behavior preserved (no interference)
- Platform guard: invisible on web, mobile, and TV platforms
- Translation: PLAYER_SUBTITLES_SECONDARY key with defaultValue fallback
0 commit comments