@bendyline/squisq-react 2.12.0 → 2.12.1
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/{chunk-PBVIXOWS.js → chunk-NZMF2G7M.js} +3 -2
- package/dist/index.js +1 -1
- package/dist/player/index.js +1 -1
- package/dist/squisq-player.full.global.js +322 -322
- package/dist/squisq-player.global.js +68 -68
- package/dist/standalone-player-full.js +1 -1
- package/dist/standalone-source.js +1 -1
- package/package.json +1 -1
|
@@ -3342,6 +3342,7 @@ function DocPlayerContent({
|
|
|
3342
3342
|
setCaptionMode(defaultMode);
|
|
3343
3343
|
}, [defaultMode]);
|
|
3344
3344
|
const captionsEnabled = captionMode !== "off";
|
|
3345
|
+
const captionClockRunning = renderMode || isPlaying || !isSlideshowMode && currentTime > 0;
|
|
3345
3346
|
const activeCaptionStyle = captionMode === "social" ? "social" : "standard";
|
|
3346
3347
|
const setCaptionsEnabled = useCallback6(
|
|
3347
3348
|
(enabled) => {
|
|
@@ -3934,7 +3935,7 @@ function DocPlayerContent({
|
|
|
3934
3935
|
{
|
|
3935
3936
|
captions: doc.captions,
|
|
3936
3937
|
currentTime,
|
|
3937
|
-
enabled: captionsEnabled &&
|
|
3938
|
+
enabled: captionsEnabled && captionClockRunning,
|
|
3938
3939
|
fontSize: Math.min(34, Math.max(16, Math.round(captionViewport.height * 0.026))),
|
|
3939
3940
|
captionStyle: activeCaptionStyle,
|
|
3940
3941
|
captionPosition,
|
|
@@ -4040,7 +4041,7 @@ function DocPlayerContent({
|
|
|
4040
4041
|
] }),
|
|
4041
4042
|
hasCaptions && (() => {
|
|
4042
4043
|
const debugPhrase = getCaptionAtTime2(doc.captions, currentTime);
|
|
4043
|
-
const debugEnabled = captionsEnabled &&
|
|
4044
|
+
const debugEnabled = captionsEnabled && captionClockRunning;
|
|
4044
4045
|
return /* @__PURE__ */ jsxs7(Fragment5, { children: [
|
|
4045
4046
|
/* @__PURE__ */ jsxs7("div", { children: [
|
|
4046
4047
|
/* @__PURE__ */ jsx10("span", { style: { color: "#888" }, children: "captions:" }),
|
package/dist/index.js
CHANGED
package/dist/player/index.js
CHANGED