Skip to content

Commit ae94a3b

Browse files
authored
fix: remove text tracks notifications (#910)
* fix: remove text tracks notifications
1 parent 91e4b2a commit ae94a3b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/plugins/text-tracks-manager/index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getCloudinaryUrlPrefix } from '../cloudinary/common';
33
import { transcriptParser } from './parsers/transcriptParser';
44
import { srtParser } from './parsers/srtParser';
55
import { vttParser } from './parsers/vttParser';
6-
import { addNotificationCue, addTextTrackCues, fetchFileContent, refreshTextTrack, removeAllTextTrackCues } from './utils';
6+
import { addTextTrackCues, fetchFileContent, refreshTextTrack, removeAllTextTrackCues } from './utils';
77

88
const getTranscriptionFileUrl = (urlPrefix, deliveryType, publicId, languageCode = null) =>
99
`${urlPrefix}/_applet_/video_service/transcription/${deliveryType}/${languageCode ? `${languageCode}/` : ''}${utf8ToBase64(publicId)}.transcript`;
@@ -114,13 +114,9 @@ function textTracksManager() {
114114
onSuccess: () => updateTextTrackStatusToSuccess(track),
115115
onError: (error) => {
116116
updateTextTrackStatusToError(track, error);
117-
addNotificationCue(player.duration(), track, 'Text track could not be loaded');
117+
console.warn(`[${track.label}] Text track could not be loaded`);
118118
},
119-
onAttempt: type === 'transcript' ? (count) => {
120-
if (count === 2) {
121-
addNotificationCue(player.duration(), track, 'Loading text track...');
122-
}
123-
} : undefined,
119+
124120
}
125121
);
126122

0 commit comments

Comments
 (0)