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

[Feature] add subtitle support #8

Open
medarob opened this issue Mar 10, 2020 · 0 comments
Open

[Feature] add subtitle support #8

medarob opened this issue Mar 10, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@medarob
Copy link

medarob commented Mar 10, 2020

Hi,

it seems that webm does not support embeded subtitles into a webm file. Therefor you have to use external subtitles which can be added to a <video>-tag with a <track>-tag.

Is it possible to add subtitle support for videos?
Info: https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/Adding_captions_and_subtitles_to_HTML5_video

For example, save the subtitle in the same folder (or a subfolder which has to be configured) and load it into the code. The same function you use to add other video formats like webm, ogg.

Only questions remain:

How do you add multiple subtitles for different languages?

This would be a solution:
clip-name.en.vtt
clip-name.de.vtt
clip-name.fr.vtt

How to define the default subtitle?
There exists a default attribut which indicats to the browser that this is the default subtitle file definition. How to define that so that it works for multilanguage?

I thought about adding the default option to the filename to indicate that this is the default subtitle, like this clip-name.de.default.vtt. Problem: Does this work when the CE was translated into another language? On a French website the default subtitle schould be in French as well. (Of course the user can change the subtitle in the frontend, so maybe that would be a minor issue.)

A better way would be to list all available subtitles for a videofile in the backend and the editor can choose the default subtitle. But not sure if that is possible?

@Teisi Teisi added the enhancement New feature or request label Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants