Default captions to enabled

This commit is contained in:
videogame hacker 2022-04-29 23:50:35 +01:00
parent 0fc8953a69
commit 61c456eceb

View file

@ -79,7 +79,7 @@ const createVideoElement = (videoUrl, subtitles) => {
track.src = url;
track.kind = "captions";
if (id == storedTrack) {
if (id == storedTrack || storedTrack == -1) {
track.default = true;
}