213k views
2 votes
Provide the code to insert a subtitle track named "Spanish Version" using the track text in the spanish.vtt file and the Spanish source language. Make this the active track in the video clip.

1 Answer

3 votes

Answer:

See explaination

Step-by-step explanation:

<video id="video" controls preload="metadata"> <source src="video/sintel-short.mp4" type="video/mp4"> <source src="video/sintel-short.webm" type="video/webm"> <track label="English" kind="subtitles" srclang="en" src="captions/vtt/sintel-en.vtt" default> <track label="Deutsch" kind="subtitles" srclang="de" src="captions/vtt/sintel-de.vtt"> <track label="Español" kind="subtitles" srclang="es" src="captions/vtt/sintel-es.vtt"> </video>

User Enoah Netzach
by
4.4k points