Skip to content

Commit

Permalink
fix: add MIME type for HTML5 tracks (shaka-project#5452)
Browse files Browse the repository at this point in the history
  • Loading branch information
tykus160 committed Aug 15, 2023
1 parent 845649b commit 4f1a119
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/util/stream_utils.js
Expand Up @@ -1375,6 +1375,9 @@ shaka.util.StreamUtils = class {
if (textTrack.kind == 'captions') {
track.mimeType = CLOSED_CAPTION_MIMETYPE;
}
if (textTrack.kind == 'subtitles') {
track.mimeType = 'text/vtt';
}
if (textTrack.kind) {
track.roles = [textTrack.kind];
}
Expand Down

0 comments on commit 4f1a119

Please sign in to comment.