Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

[FEATURE] Closed caption / subtitle support #470

Open
voxelvortex opened this issue Aug 7, 2022 · 0 comments
Open

[FEATURE] Closed caption / subtitle support #470

voxelvortex opened this issue Aug 7, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@voxelvortex
Copy link

Request

It would be great if CC support could be integrated into the player and forwarded to external players such as VLC/MPV

Possible solution

  • Open a stream on the F1TV website in chrome, and enable subtitles.
  • Right click, inspect, navigate to the Network tab
  • You should be able to see occasional Fetch/XHR requests for .vtt files.

These files contain subtitles and the timestamps for when to display those subtitles. Chrome gives you the option to copy the request into different formats such as a JavaScript fetch function or a curl request. These seem to work for me, and could potentially be implemented in C# to grab the subtitle data.

Once the data is received it's forwarded to the internal player or an external player such as VLC or MPV (It seems that VLC and MPV already support VTT subtitles).

Why this is important:

  • Increases accessibility for deaf, hard of hearing, and those in areas with noise pollution
  • Would allow individuals more control over their audio settings without missing information from commentators (FX audio only with CC or French audio with English CC)
  • Aids concentration
@voxelvortex voxelvortex added the enhancement New feature or request label Aug 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants