Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chapters support to Invidious #4109

Closed
wants to merge 67 commits into from
Closed

Conversation

syeopite
Copy link
Member

@syeopite syeopite commented Sep 19, 2023

This PR adds a chapters menu to the player control bar and a separate widget within the description to select chapters along with their thumbnail similar to what's on YouTube. See screenshots below.

Unfortunately, we can't segment the progress bar into multiple chunks like what YouTube does yet. VideoJS doesn't support this natively and it doesn't look like there are any extensions that does this.

Related: videojs/video.js#8235

chapters
chapters widget

Closes chapters component of #2395

@syeopite syeopite requested review from SamantazFox and a team as code owners September 19, 2023 20:02
@syeopite
Copy link
Member Author

VideoJS renders all text as lowercase by default (see captions menu, or the new chapters button in this PR). We may want to override this with something like:

videojs/video.js#3015 (comment)

.vjs-menu li {
  text-transform: initial;
}

Overplant Poster and others added 28 commits September 19, 2023 13:33
An upstream problem with videojs-vtt-thumbnails means that URLs gets
joined incorrectly on any instance where `domain`, `external_port` and
`https_only` aren't set.

This commit adds some logic with the 404 handler to mitigate this
problem. This is however only a workaround.

See:
iv-org#3117
chrisboustead/videojs-vtt-thumbnails#31
PR iv-org#4037 introduced a workaround around YouTube's new integrity checks
on streaming URLs. However, the usage of this workaround prevents
storyboard data from being returned by InnerTube.

This commit fixes that by only using the workaround when calling try_fetch_streaming_data
@syeopite syeopite closed this Sep 19, 2023
@syeopite
Copy link
Member Author

syeopite commented Sep 19, 2023

Apologies everyone. I completely butchered the rebase 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.