saltfish 0.2.63 → 0.2.65
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/dist/core/services/StateMachineActionHandler.d.ts +1 -1
- package/dist/managers/TranscriptManager.d.ts.map +1 -1
- package/dist/player.js +2 -2
- package/dist/player.min.js +2 -2
- package/dist/saltfish-playlist-player.es.js +7 -4
- package/dist/saltfish-playlist-player.umd.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2809,7 +2809,7 @@ class StateMachineActionHandler {
|
|
|
2809
2809
|
});
|
|
2810
2810
|
}
|
|
2811
2811
|
/**
|
|
2812
|
-
* Gets the appropriate video URL for a step, preferring
|
|
2812
|
+
* Gets the appropriate video URL for a step, preferring compressedUrl if available
|
|
2813
2813
|
* Also checks for translations if a language is configured
|
|
2814
2814
|
* Falls back to audioUrl if video URL is empty/missing
|
|
2815
2815
|
*/
|
|
@@ -2822,7 +2822,7 @@ class StateMachineActionHandler {
|
|
|
2822
2822
|
const translation = step.translations[language];
|
|
2823
2823
|
videoUrl = translation.videoUrl;
|
|
2824
2824
|
} else {
|
|
2825
|
-
videoUrl = step.
|
|
2825
|
+
videoUrl = step.compressedUrl || step.videoUrl;
|
|
2826
2826
|
}
|
|
2827
2827
|
if (!videoUrl || videoUrl.trim() === "") {
|
|
2828
2828
|
if (step.audioUrl && step.audioUrl.trim() !== "") {
|
|
@@ -2843,7 +2843,7 @@ class StateMachineActionHandler {
|
|
|
2843
2843
|
if (language && step.translations && step.translations[language]) {
|
|
2844
2844
|
videoUrl = step.translations[language].videoUrl;
|
|
2845
2845
|
} else {
|
|
2846
|
-
videoUrl = step.
|
|
2846
|
+
videoUrl = step.compressedUrl || step.videoUrl;
|
|
2847
2847
|
}
|
|
2848
2848
|
return (!videoUrl || videoUrl.trim() === "") && !!(step.audioUrl && step.audioUrl.trim() !== "");
|
|
2849
2849
|
}
|
|
@@ -4170,6 +4170,9 @@ const _TranscriptManager = class _TranscriptManager {
|
|
|
4170
4170
|
if (currentIndex >= this.chunks.length - 1) {
|
|
4171
4171
|
return false;
|
|
4172
4172
|
}
|
|
4173
|
+
if (text.length > 10) {
|
|
4174
|
+
return false;
|
|
4175
|
+
}
|
|
4173
4176
|
return true;
|
|
4174
4177
|
}
|
|
4175
4178
|
/**
|
|
@@ -10611,7 +10614,7 @@ const SaltfishPlayer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
10611
10614
|
__proto__: null,
|
|
10612
10615
|
SaltfishPlayer
|
|
10613
10616
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10614
|
-
const version = "0.2.
|
|
10617
|
+
const version = "0.2.65";
|
|
10615
10618
|
const packageJson = {
|
|
10616
10619
|
version
|
|
10617
10620
|
};
|