@playkit-js/transcript 3.5.23 → 3.5.24-canary.0-8f1b713
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -174,6 +174,10 @@ export class TranscriptPlugin extends KalturaPlayer.core.BasePlugin {
|
|
|
174
174
|
const allTextTracks = this._getTextTracks();
|
|
175
175
|
const activeTextTrack = allTextTracks.find(track => track.active);
|
|
176
176
|
if (activeTextTrack?.language === 'off') {
|
|
177
|
+
if (this._activeCaptionMapId) {
|
|
178
|
+
// use current captions language
|
|
179
|
+
return this._activeCaptionMapId;
|
|
180
|
+
}
|
|
177
181
|
// use 1st captions from text-track list
|
|
178
182
|
return this._makeCaptionKey(allTextTracks[0]?.language, allTextTracks[0]?.label);
|
|
179
183
|
}
|