@playkit-js/transcript 2.1.5-canary.21-e28422e → 2.1.5-canary.25-bb0ecfe
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
|
@@ -70,6 +70,10 @@ export class TranscriptPlugin extends KalturaPlayer.core.BasePlugin {
|
|
|
70
70
|
this.logger.warn("kalturaCuepoints or sidePanelsManager haven't registered");
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
+
if (this.player.isLive()) {
|
|
74
|
+
// transcript plugin is not supported for live entries
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
73
77
|
this._initListeners();
|
|
74
78
|
this.cuePointManager.registerTypes([this.cuePointManager.CuepointType.CAPTION]);
|
|
75
79
|
}
|
|
@@ -136,11 +140,11 @@ export class TranscriptPlugin extends KalturaPlayer.core.BasePlugin {
|
|
|
136
140
|
private _getCaptionMapId = (): string => {
|
|
137
141
|
const allTextTracks = this.player.getTracks(this.player.Track.TEXT) || [];
|
|
138
142
|
const activeTextTrack = allTextTracks.find(track => track.active);
|
|
139
|
-
if (activeTextTrack) {
|
|
140
|
-
|
|
141
|
-
return
|
|
143
|
+
if (activeTextTrack?.language === 'off') {
|
|
144
|
+
// use 1st captions from text-track list
|
|
145
|
+
return `${allTextTracks[0]?.language}-${allTextTracks[0]?.label}`;
|
|
142
146
|
}
|
|
143
|
-
return
|
|
147
|
+
return `${activeTextTrack?.language}-${activeTextTrack?.label}`;
|
|
144
148
|
};
|
|
145
149
|
|
|
146
150
|
private _handleCloseClick = () => {
|