futo-org / grayjay-android

Read-only mirror of Grayjay repo for issue tracking
https://gitlab.futo.org/videostreaming/grayjay
Other
793 stars 49 forks source link

Chapters #14

Open McIrco95 opened 1 year ago

McIrco95 commented 1 year ago

Can you add timestamps/chapter

Kelvin-FUTO commented 1 year ago

Plugin support for video chapters was introduced in version 190, no documentation exists yet. It is just implemented for standard Youtube chapters. It has no fancy UI yet, but does support all functional parts offering 3 chapter types (normal, manual skip, auto skip). Better UI is to follow.

Bluscream commented 1 year ago

Plugin support for video chapters was introduced in version 190, no documentation exists yet. It is just implemented for standard Youtube chapters. It has no fancy UI yet, but does support all functional parts offering 3 chapter types (normal, manual skip, auto skip). Better UI is to follow.

Can you explain how it works? Then i can finally finish my integration it in the Youtube plugin

Kelvin-FUTO commented 1 year ago

@Bluscream You can check the Youtube plugin for an example (getContentChapters). if this is related to SponsorBlock, check #17

Bluscream commented 1 year ago

@Bluscream You can check the Youtube plugin for an example (getContentChapters). if this is related to SponsorBlock, check #17

Thanks a lot, didn't know the base app is gonna have simple chapters to skip for example

Kelvin-FUTO commented 1 year ago

Re-opening as Chapter visualization on timebar is still todo

paaspaas00 commented 8 months ago

Done some research, for YT chapters info are in var ytInitialData image of https://www.youtube.com/watch?v=<ID> (or of https://www.youtube.com/watch?v=<ID>&list=<PL_ID>&index=<index> if the video is played as part of a playlist)

Hope it helps!

Kelvin-FUTO commented 8 months ago

Done some research, for YT chapters info are in var ytInitialData image of https://www.youtube.com/watch?v=<ID> (or of https://www.youtube.com/watch?v=<ID>&list=<PL_ID>&index=<index> if the video is played as part of a playlist)

Hope it helps!

We already parse all that data. You can already see this data when you scrub a video. When I talk about visualization, I mean Android UI to visualize it better. (Showing seperators in the timeline for example)