1
Hi, I’m creating a movie system and I wanted to put subtitles on English movies but for some reason they don’t show up and when I turn them on and click the button it disappears and subtitles don’t appear. I have a file . vtt with the same:
1
00:00:26,460 --> 00:00:30,434
Boa noite, senhoras e senhores.
Estamos prestes a aterrar em Seattle.
2
00:00:30,464 --> 00:00:33,270
Está bom tempo, com vento de leste.
3
00:00:33,300 --> 00:00:36,440
A temperatura no solo é de 20 graus
4
00:00:36,470 --> 00:00:39,347
Em nome da tripulação,
na cabina e no cockpit,
Html code:
<video width="1020" height="640" controls>
<source src="Rings.mp4" type="video/mp4">
<track label="Português" kind="subtitles" srclang="pt" src="Rings.vtt">
Your browser does not support the video tag.
</video>
Does anyone know what the problem is?
Which browser you are using ?
– Otávio Reis Perkles
Google Chrome Updated
– IMM
I imagine they are not shown initially (not even set as
default
), the user has to activate them. See that link of documentation.– gcpdev
Even if they don’t show up, I don’t know why
– IMM
Look in the second block that part, from line 16. The implementation shows that vc can define the attribute
mode
asshowing
anddata-state
asactive
. Other than that, if there is no msg on the console, I don’t know what can happen.– gcpdev
@IMM I believe you have already managed to solve the problem, if not, take a look at my answer.
– Leandro Angelo