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