Skip to content

Commit

Permalink
fix(HLS): Fix labelling of captions in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Apr 10, 2024
1 parent d01bef3 commit 0eeac90
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/util/stream_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1397,8 +1397,6 @@ shaka.util.StreamUtils = class {
* @return {shaka.extern.Track}
*/
static html5TextTrackToTrack(textTrack) {
const CLOSED_CAPTION_MIMETYPE =
shaka.util.MimeUtils.CEA608_CLOSED_CAPTION_MIMETYPE;
const StreamUtils = shaka.util.StreamUtils;

/** @type {shaka.extern.Track} */
Expand All @@ -1407,7 +1405,7 @@ shaka.util.StreamUtils = class {
track.type = 'text';
track.originalTextId = textTrack.id;
if (textTrack.kind == 'captions') {
track.mimeType = CLOSED_CAPTION_MIMETYPE;
track.mimeType = 'unknown';
}
if (textTrack.kind == 'subtitles') {
track.mimeType = 'text/vtt';
Expand Down

0 comments on commit 0eeac90

Please sign in to comment.