Default captions to enabled

pull/8/head
Charlotte Som 2022-04-29 23:50:35 +01:00
parent 0fc8953a69
commit 61c456eceb
1 changed files with 1 additions and 1 deletions

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;
}