@zync/zync-screnplay-player 0.1.223 → 0.1.224
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/bundle.js +1 -1
- package/dist/screenplay/RemotionRenderer/components/layouts/HookVideo.js +13 -5
- package/dist/screenplay/RemotionRenderer/development.js +1933 -1549
- package/dist/screenplay/RemotionRenderer/helpers/normalizeDisabledTranscripts.js +1 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/DefaultLayout.js +2 -1
- package/package.json +1 -1
|
@@ -430,7 +430,11 @@ export var HookVideo = function HookVideo(_ref5) {
|
|
|
430
430
|
hookDurationSeconds = _ref5$hookDurationSec === void 0 ? 1.6 : _ref5$hookDurationSec,
|
|
431
431
|
hookAccentText = _ref5.hookAccentText,
|
|
432
432
|
_ref5$disableHookSoun = _ref5.disableHookSounds,
|
|
433
|
-
disableHookSounds = _ref5$disableHookSoun === void 0 ? false : _ref5$disableHookSoun
|
|
433
|
+
disableHookSounds = _ref5$disableHookSoun === void 0 ? false : _ref5$disableHookSoun,
|
|
434
|
+
_ref5$trimLeft = _ref5.trimLeft,
|
|
435
|
+
trimLeft = _ref5$trimLeft === void 0 ? 0 : _ref5$trimLeft,
|
|
436
|
+
_ref5$baseTrimLeft = _ref5.baseTrimLeft,
|
|
437
|
+
baseTrimLeft = _ref5$baseTrimLeft === void 0 ? 0 : _ref5$baseTrimLeft;
|
|
434
438
|
var frame = useCurrentFrame();
|
|
435
439
|
var _useVideoConfig = useVideoConfig(),
|
|
436
440
|
outputWidth = _useVideoConfig.width,
|
|
@@ -465,6 +469,10 @@ export var HookVideo = function HookVideo(_ref5) {
|
|
|
465
469
|
effectiveHookFrames = _getHookTiming.effectiveHookFrames,
|
|
466
470
|
settleFrames = _getHookTiming.settleFrames,
|
|
467
471
|
shortSegment = _getHookTiming.shortSegment;
|
|
472
|
+
var hookAnimationOffsetFrames = Math.max(0, Math.round((trimLeft - baseTrimLeft) * fps));
|
|
473
|
+
var hookAnimationFrame = frame + hookAnimationOffsetFrames;
|
|
474
|
+
var hookOverlayFrame = hookAnimationFrame;
|
|
475
|
+
var isContinuationChunk = hookAnimationOffsetFrames > 0;
|
|
468
476
|
var preset = useOrientationBased({
|
|
469
477
|
landscape: {
|
|
470
478
|
textBoxWidth: style === HOOK_STYLE_PRESETS.split_reveal ? width * 0.38 : style === HOOK_STYLE_PRESETS.mono_shock ? width * 0.46 : width * 0.58,
|
|
@@ -494,7 +502,7 @@ export var HookVideo = function HookVideo(_ref5) {
|
|
|
494
502
|
var monoOverlayHoldFrames = style === HOOK_STYLE_PRESETS.mono_shock ? Math.round(fps * 0.55) : 0;
|
|
495
503
|
var overlayFadeFrames = style === HOOK_STYLE_PRESETS.mono_shock ? 12 : 6;
|
|
496
504
|
var overlayEndFrame = shortSegment ? durationInFrames : Math.min(durationInFrames, effectiveHookFrames + monoOverlayHoldFrames);
|
|
497
|
-
var hookOverlayOpacity = shortSegment ? 1 : interpolate(
|
|
505
|
+
var hookOverlayOpacity = shortSegment && !isContinuationChunk ? 1 : interpolate(hookOverlayFrame, [Math.max(overlayEndFrame - overlayFadeFrames, 0), overlayEndFrame], [1, 0], {
|
|
498
506
|
extrapolateLeft: "clamp",
|
|
499
507
|
extrapolateRight: "clamp"
|
|
500
508
|
});
|
|
@@ -516,7 +524,7 @@ export var HookVideo = function HookVideo(_ref5) {
|
|
|
516
524
|
extrapolateLeft: "clamp",
|
|
517
525
|
extrapolateRight: "clamp"
|
|
518
526
|
})), HOOK_STYLE_PRESETS.border_alarm, 0), HOOK_STYLE_PRESETS.split_reveal, 0)[style];
|
|
519
|
-
var letterboxHeight = style === HOOK_STYLE_PRESETS.mono_shock ? interpolate(
|
|
527
|
+
var letterboxHeight = style === HOOK_STYLE_PRESETS.mono_shock ? interpolate(hookOverlayFrame, [0, effectiveHookFrames, Math.max(effectiveHookFrames + 1, overlayEndFrame)], [0, height * 0.11, height * 0.11], {
|
|
520
528
|
extrapolateLeft: "clamp",
|
|
521
529
|
extrapolateRight: "clamp"
|
|
522
530
|
}) * hookOverlayOpacity : 0;
|
|
@@ -533,7 +541,7 @@ export var HookVideo = function HookVideo(_ref5) {
|
|
|
533
541
|
extrapolateRight: "clamp"
|
|
534
542
|
}) : 0;
|
|
535
543
|
var _getVideoTreatment = getVideoTreatment({
|
|
536
|
-
frame:
|
|
544
|
+
frame: hookOverlayFrame,
|
|
537
545
|
style: style,
|
|
538
546
|
hookFrames: effectiveHookFrames,
|
|
539
547
|
settleFrames: settleFrames,
|
|
@@ -805,7 +813,7 @@ export var HookVideo = function HookVideo(_ref5) {
|
|
|
805
813
|
accentContrast: accentContrast,
|
|
806
814
|
primaryContrast: primaryContrast,
|
|
807
815
|
style: style,
|
|
808
|
-
frame:
|
|
816
|
+
frame: hookAnimationFrame,
|
|
809
817
|
fps: fps,
|
|
810
818
|
hookFrames: effectiveHookFrames
|
|
811
819
|
}))), /*#__PURE__*/React.createElement(AbsoluteFill, {
|