From 9a8135659b6e58a57c7d0db6fbcdca85e9073c6f Mon Sep 17 00:00:00 2001 From: mukulmishra18 Date: Fri, 3 May 2024 13:45:22 +0530 Subject: [PATCH] Do no clear subtitle label component on SubtitleEnabled event --- src/ts/components/subtitleoverlay.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ts/components/subtitleoverlay.ts b/src/ts/components/subtitleoverlay.ts index ba5b93124..743486a7f 100644 --- a/src/ts/components/subtitleoverlay.ts +++ b/src/ts/components/subtitleoverlay.ts @@ -129,7 +129,6 @@ export class SubtitleOverlay extends Container { }; player.on(player.exports.PlayerEvent.AudioChanged, subtitleClearHandler); - player.on(player.exports.PlayerEvent.SubtitleEnabled, subtitleClearHandler); player.on(player.exports.PlayerEvent.SubtitleDisabled, subtitleClearHandler); player.on(player.exports.PlayerEvent.Seeked, clearInactiveCues); player.on(player.exports.PlayerEvent.TimeShifted, clearInactiveCues);