Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
12.89k stars 1.48k forks source link

Multi-lingual support for chapter titles #6082

Open BjornW opened 9 months ago

BjornW commented 9 months ago

Describe the problem to be solved

In PeerTube v6 the chapters feature has been enabled (awesome!).

As a video creator I'd like to add chapter titles in multiple languages so that viewers may select a particular point in time using a chapter title in a language they understand.

Describe the solution you would like

To solve this we need a method to add chapter titles in different languages and a way to display the requested chapter title in the player interface. The current interface for adding chapter titles could be expanded to allow multiple titles for the same time-code grouped by language.

As for displaying the chapter titles in the chosen language...Afaik there is no UI element yet to switch the player interface language. Perhaps an UI element could be added to set the language for the whole video player & let the chapter titles use this setting as well? And default to a set language (English?) if the requested chapter title language is not found?

EricGuic commented 9 months ago

Hi, nice idea. I'm wondering how to extend this multi-lingual support to all the metadata attached to a video ? We could specify the title, description, tags, etc. in multiple language too, and let the visitor choose in his preferences. Maybe a lot of work to make it work through the fediverse too... But a good step for accessibility. :-)

Chocobozzz commented 9 months ago

If anyone knows how other software architectures this use case, especially in the database I'd be very interested!