Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Object.keys(foundSubtitles).forEach((langCode) => {
const sub = foundSubtitles[langCode]
subs.push({
title : sub.lang,
language: sub.langcode,
type : TextTrackType.VTT, // "text/vtt"
uri : sub.vtt,
})
})
it("must has values", () => {
(TextTrackType.SRT: "application/x-subrip");
(TextTrackType.TTML: "application/ttml+xml");
(TextTrackType.VTT: "text/vtt");
});
});
it('should has values', () => {
(TextTrackType.SRT: 'application/x-subrip');
(TextTrackType.TTML: 'application/ttml+xml');
(TextTrackType.VTT: 'text/vtt');
});