From 0eeac908e2a18a91a92888afa480d1b54b9838c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=81lvaro=20Velad=20Galva=CC=81n?= Date: Wed, 10 Apr 2024 10:10:03 +0200 Subject: [PATCH] fix(HLS): Fix labelling of captions in Safari --- lib/util/stream_utils.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/util/stream_utils.js b/lib/util/stream_utils.js index 010e015c692..63a74ea1dff 100644 --- a/lib/util/stream_utils.js +++ b/lib/util/stream_utils.js @@ -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} */ @@ -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';