@zync/zync-screnplay-player 0.1.187
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/ZyncScreenplayPlayer.js +35 -0
- package/dist/bundle.js +2 -0
- package/dist/bundle.js.LICENSE.txt +54 -0
- package/dist/index.js +4 -0
- package/dist/screenplay/RemotionRenderer/RemotionRenderer.js +281 -0
- package/dist/screenplay/RemotionRenderer/Root.js +22 -0
- package/dist/screenplay/RemotionRenderer/components/LottieAnimationGlobal.js +116 -0
- package/dist/screenplay/RemotionRenderer/components/backgrounds/VirtualBackground.js +26 -0
- package/dist/screenplay/RemotionRenderer/components/backgrounds/VirtualBackgroundUnderlay.js +41 -0
- package/dist/screenplay/RemotionRenderer/components/captions/CaptionSimple.js +12 -0
- package/dist/screenplay/RemotionRenderer/components/effects/BrollFullscreen.js +27 -0
- package/dist/screenplay/RemotionRenderer/components/effects/GlitchText.js +22 -0
- package/dist/screenplay/RemotionRenderer/components/effects/HandoffNametag.js +7 -0
- package/dist/screenplay/RemotionRenderer/components/effects/LottieAnimation.js +64 -0
- package/dist/screenplay/RemotionRenderer/components/effects/Nametag.js +9 -0
- package/dist/screenplay/RemotionRenderer/components/effects/PhraseRainbowEffect.js +34 -0
- package/dist/screenplay/RemotionRenderer/components/effects/Sentence.js +50 -0
- package/dist/screenplay/RemotionRenderer/components/effects/Title.js +12 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/BrollGreenScreen.js +742 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/BrollSplitScreen.js +714 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/BrollStudioBackdrop.js +620 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/DynamicTriangle.js +618 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/Handoff.js +161 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/IntroVideo.js +1330 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/KeyPointOverlayDepth.js +397 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/Keyword.js +539 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/KeywordStudioBackdrop.js +714 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/MotionStill.js +381 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/MotionStillFullScreen.js +178 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/MotionStillGreenScreen.js +568 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/MotionStillGreenScreenV2.js +731 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/MotionStillStudioBackdrop.js +588 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/SimpleFrame.js +183 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/SimpleFrameBroll.js +181 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/SimpleFrameSentence.js +17 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/SimpleFrameZoomCut.js +13 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/TextWithVideo.js +373 -0
- package/dist/screenplay/RemotionRenderer/components/layouts/quote-bubble-animation.json +1 -0
- package/dist/screenplay/RemotionRenderer/components/utils/BlurOverlay.js +19 -0
- package/dist/screenplay/RemotionRenderer/components/utils/ChromaKeyedVideo.js +59 -0
- package/dist/screenplay/RemotionRenderer/components/utils/FaceCenteredVideo.js +562 -0
- package/dist/screenplay/RemotionRenderer/components/utils/PausableImg.js +124 -0
- package/dist/screenplay/RemotionRenderer/components/utils/README.md +80 -0
- package/dist/screenplay/RemotionRenderer/components/utils/SafeZones.js +69 -0
- package/dist/screenplay/RemotionRenderer/components/utils/StretchText.js +124 -0
- package/dist/screenplay/RemotionRenderer/components/utils/StretchTextDemo.js +66 -0
- package/dist/screenplay/RemotionRenderer/config.js +8 -0
- package/dist/screenplay/RemotionRenderer/development.js +1370 -0
- package/dist/screenplay/RemotionRenderer/helpers/cleanFacemetadata.js +29 -0
- package/dist/screenplay/RemotionRenderer/helpers/convertToSeconds.js +14 -0
- package/dist/screenplay/RemotionRenderer/helpers/faceBasedVideoStyles.js +212 -0
- package/dist/screenplay/RemotionRenderer/helpers/faceCenteredVideoTransforms.js +468 -0
- package/dist/screenplay/RemotionRenderer/helpers/getContrastColor.js +15 -0
- package/dist/screenplay/RemotionRenderer/helpers/getVideoOrientation.js +21 -0
- package/dist/screenplay/RemotionRenderer/helpers/hexToRgb.js +48 -0
- package/dist/screenplay/RemotionRenderer/hooks/useLottieReplaceColor.js +45 -0
- package/dist/screenplay/RemotionRenderer/hooks/useOrientationBased.js +29 -0
- package/dist/screenplay/RemotionRenderer/hooks/useTimeInterpolate.js +54 -0
- package/dist/screenplay/RemotionRenderer/hooks/useVirtualBackground.js +38 -0
- package/dist/screenplay/RemotionRenderer/index.js +3 -0
- package/dist/screenplay/RemotionRenderer/main/lib/Sequence.js +76 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/DefaultLayout.js +72 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/DynamicTriangleLayout.js +54 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/HandoffLayout.js +50 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/IntroVideoLayout.js +33 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/KeywordLayout.js +36 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/LayoutFactory.js +68 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/MotionStillLayout.js +36 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/SimpleFrameLayout.js +43 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/TextWithVideoLayout.js +52 -0
- package/dist/screenplay/RemotionRenderer/main/screenplaySchema.js +92 -0
- package/dist/screenplay/RemotionRenderer/registeredComponents.js +91 -0
- package/dist/screenplay/RemotionRenderer/theme/config.js +8 -0
- package/dist/screenplay/RemotionRenderer/theme/hooks/useTheme.js +24 -0
- package/dist/screenplay/RemotionRenderer/theme/hooks/useThemedComponents.js +101 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/bigbold/BigBoldNameTag.js +147 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/bigbold/BigBoldSentence.js +138 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/bigbold/BigBoldTitle.js +136 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionColor.js +67 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionColorInverse.js +67 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionColorShadow.js +66 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionElegant.js +134 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionEmphasis.js +122 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionPunctuated.js +84 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionWordBoom.js +88 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionWordBubble.js +91 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionWordPopup.js +118 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/DefaultCaption.js +62 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/HandoffNametag/handoffNametagConfig.js +59 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/HandoffNametag.js +173 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/Nametag.js +129 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/Sentence/AnimatedSentence.js +20 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/Sentence/AnimatedSentenceDefault.js +29 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/Sentence/SentenceSimple.helpers.js +61 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/Sentence.js +86 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/Title.js +112 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/default/constants.js +1 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glassmorphism/Nametag.js +134 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glassmorphism/Sentence.js +49 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glassmorphism/Title.js +108 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glassmorphism/animations.js +30 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glassmorphism/config.js +9 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glitch/GlitchNametag.js +252 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glitch/GlitchSentence.js +156 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glitch/GlitchTitle.js +142 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glitch/components/DisplacedText.js +66 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glitch/components/GlitchAnimatedLine.js +38 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glitch/components/SplitSentence.js +80 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/glitch/helpers.js +32 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/none/Nametag.js +3 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/none/Title.js +3 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/pushpull/PushPullNametag.js +165 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/pushpull/PushPullSentence.js +94 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/pushpull/PushPullTitle.js +98 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/pushpull/designs/sentence.js +92 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/pushpull/designs/title.js +119 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/sports/Nametag.js +122 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/sports/SportsCaption.js +93 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/sports/SportsSentence.js +76 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/sports/Title.js +90 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/sports/shared.js +62 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/sportsbounce/Nametag.js +145 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/sportsbounce/SportsBounceSentence.js +148 -0
- package/dist/screenplay/RemotionRenderer/theme/themes/sportsbounce/Title.js +160 -0
- package/dist/screenplay/RemotionRenderer/tracks/AudioTrack.js +23 -0
- package/dist/screenplay/RemotionRenderer/tracks/CaptionsVideoTrack.js +23 -0
- package/dist/screenplay/RemotionRenderer/tracks/DynamicVideoComposition.js +31 -0
- package/dist/screenplay/RemotionRenderer/tracks/EffectsVideoTrack.js +23 -0
- package/dist/screenplay/RemotionRenderer/tracks/LayoutVideoTrack.js +141 -0
- package/dist/screenplay/RemotionRenderer/tracks/Soundtrack.js +16 -0
- package/dist/screenplay/RemotionRenderer/tracks/Watermark.js +23 -0
- package/dist/screenplay/RemotionRenderer/tracks/transitions/GlitchOne.js +92 -0
- package/package.json +45 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
import { AbsoluteFill, Audio, Easing, Img, interpolate, OffthreadVideo, useCurrentFrame, useVideoConfig } from "remotion";
|
|
9
|
+
import { loadFont } from "@remotion/google-fonts/Poppins";
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { useOrientationBased } from "../../hooks/useOrientationBased.js";
|
|
12
|
+
import { useTheme } from "../../theme/hooks/useTheme.js";
|
|
13
|
+
import { CHROME_PADDING } from "../../config.js";
|
|
14
|
+
import { useTimeInterpolate } from "../../hooks/useTimeInterpolate.js";
|
|
15
|
+
import { variants } from "../../main/lib/layouts/TextWithVideoLayout.js";
|
|
16
|
+
import FaceCenteredVideo from "../utils/FaceCenteredVideo";
|
|
17
|
+
import PausableImg from "../utils/PausableImg";
|
|
18
|
+
import { BlurOverlay } from "../utils/BlurOverlay";
|
|
19
|
+
import { useVirtualBackground } from "../../hooks/useVirtualBackground";
|
|
20
|
+
import { VirtualBackground } from "../backgrounds/VirtualBackground";
|
|
21
|
+
import { VirtualBackgroundUnderlay } from "../backgrounds/VirtualBackgroundUnderlay";
|
|
22
|
+
var _loadFont = loadFont(),
|
|
23
|
+
fontFamily = _loadFont.fontFamily;
|
|
24
|
+
var landscapeClipPath = "polygon(100% 0%, 100% 100%, 7% 100%, 0 20%, 7% 0)";
|
|
25
|
+
var portraitClipPath = "polygon(100% 0, 100% 95%, 10% 100%, 0 95%, 0% 0%)";
|
|
26
|
+
var squareClipPath = "polygon(94% 0, 100% 14%, 89% 100%, 0% 100%, 0% 0%)";
|
|
27
|
+
var Logo = function Logo(_ref) {
|
|
28
|
+
var logoUrl = _ref.logoUrl,
|
|
29
|
+
top = _ref.top,
|
|
30
|
+
left = _ref.left,
|
|
31
|
+
right = _ref.right;
|
|
32
|
+
return logoUrl ? /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
style: {
|
|
34
|
+
position: "fixed",
|
|
35
|
+
zIndex: 1,
|
|
36
|
+
top: top,
|
|
37
|
+
left: left,
|
|
38
|
+
right: right
|
|
39
|
+
}
|
|
40
|
+
}, /*#__PURE__*/React.createElement(PausableImg, {
|
|
41
|
+
style: {
|
|
42
|
+
width: "225px",
|
|
43
|
+
maxHeight: "auto",
|
|
44
|
+
objectFit: "contain"
|
|
45
|
+
},
|
|
46
|
+
delayRenderTimeoutInMilliseconds: 60000,
|
|
47
|
+
src: logoUrl
|
|
48
|
+
})) : null;
|
|
49
|
+
};
|
|
50
|
+
export var PanningImage = function PanningImage(_ref2) {
|
|
51
|
+
var imageUrl = _ref2.imageUrl,
|
|
52
|
+
_ref2$style = _ref2.style,
|
|
53
|
+
style = _ref2$style === void 0 ? {} : _ref2$style;
|
|
54
|
+
var frame = useCurrentFrame();
|
|
55
|
+
var inputRange = [0, 100];
|
|
56
|
+
var scale = interpolate(frame, inputRange, [1.25, 1.55], {
|
|
57
|
+
extrapolateLeft: "clamp"
|
|
58
|
+
});
|
|
59
|
+
var rotate = interpolate(frame, inputRange, [0, 5], {
|
|
60
|
+
extrapolateLeft: "clamp"
|
|
61
|
+
});
|
|
62
|
+
if (!imageUrl) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
style: {
|
|
67
|
+
width: "100%",
|
|
68
|
+
height: "100%"
|
|
69
|
+
}
|
|
70
|
+
}, /*#__PURE__*/React.createElement(PausableImg, {
|
|
71
|
+
src: imageUrl,
|
|
72
|
+
delayRenderTimeoutInMilliseconds: 60000,
|
|
73
|
+
style: _objectSpread({
|
|
74
|
+
objectFit: "cover",
|
|
75
|
+
width: "100%",
|
|
76
|
+
height: "100%",
|
|
77
|
+
transform: "rotate(".concat(rotate, "deg) scale(").concat(scale, ")"),
|
|
78
|
+
willChange: "transform"
|
|
79
|
+
}, style)
|
|
80
|
+
}));
|
|
81
|
+
};
|
|
82
|
+
var MotionStillComponent = function MotionStillComponent(_ref3) {
|
|
83
|
+
var startVideoFrom = _ref3.startVideoFrom,
|
|
84
|
+
videoUrl = _ref3.videoUrl,
|
|
85
|
+
logoUrl = _ref3.logoUrl,
|
|
86
|
+
children = _ref3.children,
|
|
87
|
+
textColor = _ref3.textColor,
|
|
88
|
+
textBackgroundColor = _ref3.textBackgroundColor,
|
|
89
|
+
accentColor = _ref3.accentColor,
|
|
90
|
+
_ref3$variant = _ref3.variant,
|
|
91
|
+
variant = _ref3$variant === void 0 ? variants.LEFT_TO_RIGHT : _ref3$variant,
|
|
92
|
+
imageUrl = _ref3.imageUrl,
|
|
93
|
+
durationInFrames = _ref3.durationInFrames,
|
|
94
|
+
faceMetadata = _ref3.faceMetadata,
|
|
95
|
+
muted = _ref3.muted,
|
|
96
|
+
noBackgroundVideoEffects = _ref3.noBackgroundVideoEffects,
|
|
97
|
+
noBackgroundVideoUrl = _ref3.noBackgroundVideoUrl;
|
|
98
|
+
var _useVideoConfig = useVideoConfig(),
|
|
99
|
+
width = _useVideoConfig.width,
|
|
100
|
+
height = _useVideoConfig.height,
|
|
101
|
+
fps = _useVideoConfig.fps;
|
|
102
|
+
var frame = useCurrentFrame();
|
|
103
|
+
var _useVirtualBackground = useVirtualBackground(),
|
|
104
|
+
isVirtual = _useVirtualBackground.isVirtual,
|
|
105
|
+
virtualBgUrl = _useVirtualBackground.url;
|
|
106
|
+
var showVirtual = isVirtual && !!noBackgroundVideoUrl;
|
|
107
|
+
var stylesByVariant = _defineProperty(_defineProperty({}, variants.RIGHT_TO_LEFT, {
|
|
108
|
+
flowDirection: "row-reverse",
|
|
109
|
+
logoLeft: CHROME_PADDING * 2,
|
|
110
|
+
logoRight: undefined
|
|
111
|
+
}), variants.LEFT_TO_RIGHT, {
|
|
112
|
+
flowDirection: "row",
|
|
113
|
+
logoLeft: undefined,
|
|
114
|
+
logoRight: CHROME_PADDING * 2
|
|
115
|
+
});
|
|
116
|
+
var _useOrientationBased = useOrientationBased({
|
|
117
|
+
portrait: {
|
|
118
|
+
imageContainerOutputRange: [-height, -height * 0.35],
|
|
119
|
+
targetVideoWidth: width - 2 * CHROME_PADDING,
|
|
120
|
+
targetVideoHeight: height * 0.4,
|
|
121
|
+
clipPath: portraitClipPath,
|
|
122
|
+
logoTop: CHROME_PADDING * 2,
|
|
123
|
+
logoLeft: CHROME_PADDING * 2 - 5,
|
|
124
|
+
logoRight: undefined,
|
|
125
|
+
flowDirection: "column-reverse"
|
|
126
|
+
},
|
|
127
|
+
landscape: {
|
|
128
|
+
imageContainerOutputRange: [width, width * 0.35],
|
|
129
|
+
targetVideoWidth: width * 0.45,
|
|
130
|
+
targetVideoHeight: height,
|
|
131
|
+
clipPath: landscapeClipPath,
|
|
132
|
+
logoTop: CHROME_PADDING * 2,
|
|
133
|
+
logoLeft: stylesByVariant[variant].logoLeft,
|
|
134
|
+
logoRight: stylesByVariant[variant].logoRight,
|
|
135
|
+
flowDirection: "row"
|
|
136
|
+
},
|
|
137
|
+
square: {
|
|
138
|
+
imageContainerOutputRange: [-width, -width * 0.45],
|
|
139
|
+
targetVideoWidth: width * 0.6,
|
|
140
|
+
targetVideoHeight: height,
|
|
141
|
+
clipPath: squareClipPath,
|
|
142
|
+
logoTop: CHROME_PADDING * 2,
|
|
143
|
+
logoLeft: stylesByVariant[variant].logoLeft,
|
|
144
|
+
logoRight: stylesByVariant[variant].logoRight,
|
|
145
|
+
flowDirection: "row-reverse"
|
|
146
|
+
}
|
|
147
|
+
}),
|
|
148
|
+
imageContainerOutputRange = _useOrientationBased.imageContainerOutputRange,
|
|
149
|
+
targetVideoWidth = _useOrientationBased.targetVideoWidth,
|
|
150
|
+
targetVideoHeight = _useOrientationBased.targetVideoHeight,
|
|
151
|
+
clipPath = _useOrientationBased.clipPath,
|
|
152
|
+
logoTop = _useOrientationBased.logoTop,
|
|
153
|
+
logoLeft = _useOrientationBased.logoLeft,
|
|
154
|
+
logoRight = _useOrientationBased.logoRight,
|
|
155
|
+
flowDirection = _useOrientationBased.flowDirection,
|
|
156
|
+
orientation = _useOrientationBased.orientation;
|
|
157
|
+
var isPortrait = orientation === "portrait";
|
|
158
|
+
|
|
159
|
+
// Animation timing configuration
|
|
160
|
+
var entranceEndTime = 0.5; // 0.5 seconds for entrance
|
|
161
|
+
var exitStartTime = durationInFrames ? durationInFrames / fps - 0.5 : null; // 0.5 seconds before end for exit
|
|
162
|
+
var currentTime = frame / fps;
|
|
163
|
+
var animationProgress = 0;
|
|
164
|
+
if (durationInFrames && exitStartTime && currentTime >= exitStartTime) {
|
|
165
|
+
// Exit animation - reverse the progress
|
|
166
|
+
var exitProgress = (currentTime - exitStartTime) / 0.5;
|
|
167
|
+
animationProgress = Math.max(0, 1 - exitProgress);
|
|
168
|
+
} else if (currentTime <= entranceEndTime) {
|
|
169
|
+
// Entrance animation
|
|
170
|
+
animationProgress = Math.min(1, currentTime / entranceEndTime);
|
|
171
|
+
} else {
|
|
172
|
+
// Middle section - fully animated
|
|
173
|
+
animationProgress = 1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Apply easing to the progress
|
|
177
|
+
var easedProgress = Easing["in"](Easing.quad)(animationProgress);
|
|
178
|
+
|
|
179
|
+
// Calculate animated values based on progress
|
|
180
|
+
var imageContainerTranslate = imageContainerOutputRange[0] + (imageContainerOutputRange[1] - imageContainerOutputRange[0]) * easedProgress;
|
|
181
|
+
var videoWidth = width + (targetVideoWidth - width) * easedProgress;
|
|
182
|
+
var videoHeight = height + (targetVideoHeight - height) * easedProgress;
|
|
183
|
+
return /*#__PURE__*/React.createElement(AbsoluteFill, null, /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
184
|
+
style: {
|
|
185
|
+
width: width,
|
|
186
|
+
height: height,
|
|
187
|
+
padding: CHROME_PADDING,
|
|
188
|
+
backgroundColor: accentColor,
|
|
189
|
+
overflow: "hidden",
|
|
190
|
+
isolation: "isolate"
|
|
191
|
+
}
|
|
192
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
193
|
+
style: {
|
|
194
|
+
position: "fixed",
|
|
195
|
+
zIndex: 999,
|
|
196
|
+
height: CHROME_PADDING,
|
|
197
|
+
width: width,
|
|
198
|
+
top: 0,
|
|
199
|
+
backgroundColor: accentColor
|
|
200
|
+
}
|
|
201
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
202
|
+
style: {
|
|
203
|
+
position: "fixed",
|
|
204
|
+
zIndex: 999,
|
|
205
|
+
width: CHROME_PADDING,
|
|
206
|
+
height: height,
|
|
207
|
+
right: 0,
|
|
208
|
+
backgroundColor: accentColor
|
|
209
|
+
}
|
|
210
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
211
|
+
style: {
|
|
212
|
+
position: "fixed",
|
|
213
|
+
zIndex: 999,
|
|
214
|
+
width: CHROME_PADDING,
|
|
215
|
+
height: height,
|
|
216
|
+
left: 0,
|
|
217
|
+
backgroundColor: accentColor
|
|
218
|
+
}
|
|
219
|
+
}), /*#__PURE__*/React.createElement(Logo, {
|
|
220
|
+
logoUrl: logoUrl,
|
|
221
|
+
top: logoTop,
|
|
222
|
+
left: logoLeft,
|
|
223
|
+
right: logoRight
|
|
224
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
225
|
+
style: {
|
|
226
|
+
display: "flex",
|
|
227
|
+
flexDirection: flowDirection,
|
|
228
|
+
width: "100%",
|
|
229
|
+
height: "100%",
|
|
230
|
+
overflow: "hidden"
|
|
231
|
+
}
|
|
232
|
+
}, faceMetadata ? /*#__PURE__*/React.createElement(FaceCenteredVideo, {
|
|
233
|
+
startFrom: startVideoFrom,
|
|
234
|
+
src: videoUrl,
|
|
235
|
+
transparent: false,
|
|
236
|
+
muted: muted,
|
|
237
|
+
faceMetadata: faceMetadata,
|
|
238
|
+
containerWidth: videoWidth,
|
|
239
|
+
containerHeight: isPortrait ? videoHeight : height - CHROME_PADDING * 2,
|
|
240
|
+
containerStyle: {
|
|
241
|
+
display: "flex",
|
|
242
|
+
justifyContent: orientation === "landscape" ? "start" : "end",
|
|
243
|
+
alignItems: "end",
|
|
244
|
+
filter: !showVirtual && noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.backgroundDim && noBackgroundVideoUrl ? "brightness(0.7)" : undefined
|
|
245
|
+
}
|
|
246
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
247
|
+
style: {
|
|
248
|
+
width: videoWidth,
|
|
249
|
+
height: isPortrait ? videoHeight : height - CHROME_PADDING * 2,
|
|
250
|
+
overflow: "hidden",
|
|
251
|
+
filter: !showVirtual && noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.backgroundDim && noBackgroundVideoUrl ? "brightness(0.7)" : undefined
|
|
252
|
+
}
|
|
253
|
+
}, /*#__PURE__*/React.createElement(OffthreadVideo, {
|
|
254
|
+
startFrom: startVideoFrom,
|
|
255
|
+
src: videoUrl,
|
|
256
|
+
muted: muted,
|
|
257
|
+
style: {
|
|
258
|
+
height: "100%",
|
|
259
|
+
objectFit: "cover",
|
|
260
|
+
width: videoWidth
|
|
261
|
+
}
|
|
262
|
+
})), showVirtual && virtualBgUrl ? /*#__PURE__*/React.createElement(VirtualBackgroundUnderlay, {
|
|
263
|
+
url: virtualBgUrl,
|
|
264
|
+
top: CHROME_PADDING,
|
|
265
|
+
left: CHROME_PADDING,
|
|
266
|
+
width: width - CHROME_PADDING * 2,
|
|
267
|
+
height: height - CHROME_PADDING * 2,
|
|
268
|
+
borderRadius: "0px",
|
|
269
|
+
zIndex: 1
|
|
270
|
+
}) : null, /*#__PURE__*/React.createElement(BlurOverlay, {
|
|
271
|
+
show: !showVirtual && (noBackgroundVideoEffects === null || noBackgroundVideoEffects === void 0 ? void 0 : noBackgroundVideoEffects.backgroundBlur) && noBackgroundVideoUrl,
|
|
272
|
+
width: width,
|
|
273
|
+
height: height,
|
|
274
|
+
zIndex: 0
|
|
275
|
+
}), noBackgroundVideoUrl && (showVirtual || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.facePop || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.backgroundDim || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.backgroundBlur) && faceMetadata ? /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
276
|
+
style: {
|
|
277
|
+
padding: CHROME_PADDING,
|
|
278
|
+
isolation: "isolate",
|
|
279
|
+
width: width,
|
|
280
|
+
height: height,
|
|
281
|
+
zIndex: 9
|
|
282
|
+
}
|
|
283
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
284
|
+
style: {
|
|
285
|
+
display: "flex",
|
|
286
|
+
flexDirection: flowDirection,
|
|
287
|
+
width: "100%",
|
|
288
|
+
height: "100%",
|
|
289
|
+
overflow: "hidden"
|
|
290
|
+
}
|
|
291
|
+
}, /*#__PURE__*/React.createElement(FaceCenteredVideo, {
|
|
292
|
+
startFrom: startVideoFrom,
|
|
293
|
+
src: noBackgroundVideoUrl,
|
|
294
|
+
transparent: true,
|
|
295
|
+
muted: true,
|
|
296
|
+
faceMetadata: faceMetadata,
|
|
297
|
+
containerWidth: videoWidth,
|
|
298
|
+
containerHeight: isPortrait ? videoHeight : height - CHROME_PADDING * 2,
|
|
299
|
+
containerStyle: {
|
|
300
|
+
display: "flex",
|
|
301
|
+
justifyContent: orientation === "landscape" ? "start" : "end",
|
|
302
|
+
alignItems: "end"
|
|
303
|
+
},
|
|
304
|
+
noBackgroundVideoEffects: noBackgroundVideoEffects
|
|
305
|
+
}))) : null, noBackgroundVideoUrl && (showVirtual || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.facePop || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.backgroundDim || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.backgroundBlur) && !faceMetadata ? /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
306
|
+
style: {
|
|
307
|
+
backgroundColor: "transparent",
|
|
308
|
+
padding: CHROME_PADDING,
|
|
309
|
+
isolation: "isolate",
|
|
310
|
+
width: width,
|
|
311
|
+
height: height,
|
|
312
|
+
zIndex: 9
|
|
313
|
+
}
|
|
314
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
315
|
+
style: {
|
|
316
|
+
display: "flex",
|
|
317
|
+
flexDirection: flowDirection,
|
|
318
|
+
width: "100%",
|
|
319
|
+
height: "100%",
|
|
320
|
+
overflow: "hidden"
|
|
321
|
+
}
|
|
322
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
323
|
+
style: {
|
|
324
|
+
width: videoWidth,
|
|
325
|
+
height: isPortrait ? videoHeight : height - CHROME_PADDING * 2,
|
|
326
|
+
overflow: "hidden"
|
|
327
|
+
}
|
|
328
|
+
}, /*#__PURE__*/React.createElement(OffthreadVideo, {
|
|
329
|
+
startFrom: startVideoFrom,
|
|
330
|
+
src: noBackgroundVideoUrl,
|
|
331
|
+
muted: true,
|
|
332
|
+
transparent: true,
|
|
333
|
+
style: {
|
|
334
|
+
height: "100%",
|
|
335
|
+
objectFit: "cover",
|
|
336
|
+
width: videoWidth,
|
|
337
|
+
filter: noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.facePop ? "brightness(1.1) contrast(1.15) saturate(1.05)" : undefined
|
|
338
|
+
}
|
|
339
|
+
})))) : null, /*#__PURE__*/React.createElement("div", {
|
|
340
|
+
style: {
|
|
341
|
+
position: "absolute",
|
|
342
|
+
backgroundColor: textBackgroundColor,
|
|
343
|
+
color: textColor,
|
|
344
|
+
fontFamily: fontFamily,
|
|
345
|
+
display: "flex",
|
|
346
|
+
alignItems: "center",
|
|
347
|
+
justifyContent: "center",
|
|
348
|
+
textAlign: "center",
|
|
349
|
+
clipPath: clipPath,
|
|
350
|
+
width: "100%",
|
|
351
|
+
transform: "translateX(".concat(isPortrait ? 0 : imageContainerTranslate, "px) translateY(").concat(isPortrait ? imageContainerTranslate : 0, "px)"),
|
|
352
|
+
height: height - CHROME_PADDING * 2,
|
|
353
|
+
zIndex: 9
|
|
354
|
+
}
|
|
355
|
+
}, /*#__PURE__*/React.createElement(PanningImage, {
|
|
356
|
+
imageUrl: imageUrl
|
|
357
|
+
})))), /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
358
|
+
style: {
|
|
359
|
+
zIndex: 20
|
|
360
|
+
}
|
|
361
|
+
}, children));
|
|
362
|
+
};
|
|
363
|
+
export var MotionStill = function MotionStill(props) {
|
|
364
|
+
var _useTheme = useTheme(),
|
|
365
|
+
primaryColor = _useTheme.primaryColor,
|
|
366
|
+
primaryContrast = _useTheme.primaryContrast,
|
|
367
|
+
accentColor = _useTheme.accentColor;
|
|
368
|
+
var _ref4 = props || {},
|
|
369
|
+
_ref4$disableTransiti = _ref4.disableTransitionSounds,
|
|
370
|
+
disableTransitionSounds = _ref4$disableTransiti === void 0 ? false : _ref4$disableTransiti;
|
|
371
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !disableTransitionSounds && /*#__PURE__*/React.createElement(Audio, {
|
|
372
|
+
src: "https://cdn.zync.ai/assets/static/swoosh.mp3",
|
|
373
|
+
volume: 0.25
|
|
374
|
+
}), /*#__PURE__*/React.createElement(MotionStillComponent, _extends({}, props, {
|
|
375
|
+
textBackgroundColor: primaryContrast,
|
|
376
|
+
textColor: primaryColor,
|
|
377
|
+
accentColor: accentColor,
|
|
378
|
+
variant: props.variant,
|
|
379
|
+
durationInFrames: props.durationInFrames
|
|
380
|
+
})));
|
|
381
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AbsoluteFill, Img, OffthreadVideo, Audio, Easing, Sequence, useVideoConfig } from "remotion";
|
|
3
|
+
import { CHROME_PADDING } from "../../config.js";
|
|
4
|
+
import { useTimeInterpolate } from "../../hooks/useTimeInterpolate.js";
|
|
5
|
+
import { PanningImage } from "./MotionStill";
|
|
6
|
+
import FaceCenteredVideo from "../utils/FaceCenteredVideo";
|
|
7
|
+
import PausableImg from "../utils/PausableImg";
|
|
8
|
+
import { BlurOverlay } from "../utils/BlurOverlay";
|
|
9
|
+
import { useVirtualBackground } from "../../hooks/useVirtualBackground";
|
|
10
|
+
import { VirtualBackgroundUnderlay } from "../backgrounds/VirtualBackgroundUnderlay";
|
|
11
|
+
var BROLL_TIME_IN_FRAMES = 180;
|
|
12
|
+
export var MotionStillFullScreen = function MotionStillFullScreen(_ref) {
|
|
13
|
+
var videoUrl = _ref.videoUrl,
|
|
14
|
+
startVideoFrom = _ref.startVideoFrom,
|
|
15
|
+
durationInFrames = _ref.durationInFrames,
|
|
16
|
+
muted = _ref.muted,
|
|
17
|
+
frameColor = _ref.frameColor,
|
|
18
|
+
logoUrl = _ref.logoUrl,
|
|
19
|
+
videoZoom = _ref.videoZoom,
|
|
20
|
+
imageUrl = _ref.imageUrl,
|
|
21
|
+
children = _ref.children,
|
|
22
|
+
sourceVideoOrientation = _ref.sourceVideoOrientation,
|
|
23
|
+
_ref$disableTransitio = _ref.disableTransitionSounds,
|
|
24
|
+
disableTransitionSounds = _ref$disableTransitio === void 0 ? false : _ref$disableTransitio,
|
|
25
|
+
faceMetadata = _ref.faceMetadata,
|
|
26
|
+
noBackgroundVideoEffects = _ref.noBackgroundVideoEffects,
|
|
27
|
+
noBackgroundVideoUrl = _ref.noBackgroundVideoUrl;
|
|
28
|
+
var _useVideoConfig = useVideoConfig(),
|
|
29
|
+
width = _useVideoConfig.width,
|
|
30
|
+
height = _useVideoConfig.height;
|
|
31
|
+
var _useVirtualBackground = useVirtualBackground(),
|
|
32
|
+
isVirtual = _useVirtualBackground.isVirtual,
|
|
33
|
+
virtualBgUrl = _useVirtualBackground.url;
|
|
34
|
+
var showVirtual = isVirtual && !!noBackgroundVideoUrl;
|
|
35
|
+
var videoZoomInterpolated = useTimeInterpolate([0, 0.5], [1, videoZoom || 1], {
|
|
36
|
+
extrapolateRight: "clamp",
|
|
37
|
+
extrapolateLeft: "clamp",
|
|
38
|
+
easing: Easing["in"](Easing.quad)
|
|
39
|
+
});
|
|
40
|
+
var startFrame = durationInFrames / 2 - BROLL_TIME_IN_FRAMES / 2;
|
|
41
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !disableTransitionSounds && /*#__PURE__*/React.createElement(Audio, {
|
|
42
|
+
src: "https://cdn.zync.ai/assets/static/swoosh.mp3",
|
|
43
|
+
volume: 0.25
|
|
44
|
+
}), /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
45
|
+
style: {
|
|
46
|
+
backgroundColor: frameColor || "transparent",
|
|
47
|
+
padding: frameColor ? CHROME_PADDING : 0,
|
|
48
|
+
isolation: "isolate"
|
|
49
|
+
}
|
|
50
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
style: {
|
|
52
|
+
overflow: "hidden",
|
|
53
|
+
borderRadius: "30px",
|
|
54
|
+
width: "100%",
|
|
55
|
+
height: "100%",
|
|
56
|
+
filter: !showVirtual && noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.backgroundDim && noBackgroundVideoUrl ? "brightness(0.7)" : undefined
|
|
57
|
+
}
|
|
58
|
+
}, showVirtual && virtualBgUrl ? /*#__PURE__*/React.createElement(VirtualBackgroundUnderlay, {
|
|
59
|
+
url: virtualBgUrl,
|
|
60
|
+
top: CHROME_PADDING,
|
|
61
|
+
left: CHROME_PADDING,
|
|
62
|
+
width: width - CHROME_PADDING * 2,
|
|
63
|
+
height: height - CHROME_PADDING * 2,
|
|
64
|
+
borderRadius: "30px",
|
|
65
|
+
zIndex: 1
|
|
66
|
+
}) : null, faceMetadata ? /*#__PURE__*/React.createElement(FaceCenteredVideo, {
|
|
67
|
+
startFrom: startVideoFrom,
|
|
68
|
+
muted: muted,
|
|
69
|
+
src: videoUrl,
|
|
70
|
+
faceMetadata: faceMetadata,
|
|
71
|
+
containerWidth: width,
|
|
72
|
+
containerHeight: height,
|
|
73
|
+
useAveragePosition: true,
|
|
74
|
+
centerHorizontally: false
|
|
75
|
+
}) : /*#__PURE__*/React.createElement(OffthreadVideo, {
|
|
76
|
+
startFrom: startVideoFrom,
|
|
77
|
+
src: videoUrl,
|
|
78
|
+
muted: muted,
|
|
79
|
+
style: {
|
|
80
|
+
height: "100%",
|
|
81
|
+
objectFit: "cover",
|
|
82
|
+
width: "100%",
|
|
83
|
+
borderRadius: "30px",
|
|
84
|
+
objectPosition: sourceVideoOrientation === "portrait" ? "0% 30%" : undefined,
|
|
85
|
+
transform: videoZoom ? "scale(".concat(videoZoomInterpolated, ")") : undefined
|
|
86
|
+
}
|
|
87
|
+
})), noBackgroundVideoUrl && (showVirtual || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.facePop || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.backgroundDim || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.backgroundBlur) && faceMetadata ? /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
88
|
+
style: {
|
|
89
|
+
padding: frameColor ? CHROME_PADDING : 0,
|
|
90
|
+
isolation: "isolate",
|
|
91
|
+
width: width,
|
|
92
|
+
height: height,
|
|
93
|
+
zIndex: 9
|
|
94
|
+
}
|
|
95
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
96
|
+
style: {
|
|
97
|
+
overflow: "hidden",
|
|
98
|
+
borderRadius: "30px",
|
|
99
|
+
width: "100%",
|
|
100
|
+
height: "100%"
|
|
101
|
+
}
|
|
102
|
+
}, /*#__PURE__*/React.createElement(FaceCenteredVideo, {
|
|
103
|
+
startFrom: startVideoFrom,
|
|
104
|
+
muted: true,
|
|
105
|
+
transparent: true,
|
|
106
|
+
src: noBackgroundVideoUrl,
|
|
107
|
+
faceMetadata: faceMetadata,
|
|
108
|
+
containerWidth: width,
|
|
109
|
+
containerHeight: height,
|
|
110
|
+
useAveragePosition: true,
|
|
111
|
+
centerHorizontally: false,
|
|
112
|
+
noBackgroundVideoEffects: noBackgroundVideoEffects
|
|
113
|
+
}))) : null, noBackgroundVideoUrl && (showVirtual || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.facePop || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.backgroundDim || noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.backgroundBlur) && !faceMetadata ? /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
114
|
+
style: {
|
|
115
|
+
backgroundColor: "transparent",
|
|
116
|
+
padding: frameColor ? CHROME_PADDING : 0,
|
|
117
|
+
isolation: "isolate",
|
|
118
|
+
width: width,
|
|
119
|
+
height: height,
|
|
120
|
+
zIndex: 9
|
|
121
|
+
}
|
|
122
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
123
|
+
style: {
|
|
124
|
+
overflow: "hidden",
|
|
125
|
+
borderRadius: "30px",
|
|
126
|
+
width: "100%",
|
|
127
|
+
height: "100%"
|
|
128
|
+
}
|
|
129
|
+
}, /*#__PURE__*/React.createElement(OffthreadVideo, {
|
|
130
|
+
startFrom: startVideoFrom,
|
|
131
|
+
src: noBackgroundVideoUrl,
|
|
132
|
+
muted: true,
|
|
133
|
+
transparent: true,
|
|
134
|
+
style: {
|
|
135
|
+
height: "100%",
|
|
136
|
+
objectFit: "cover",
|
|
137
|
+
width: "100%",
|
|
138
|
+
borderRadius: "30px",
|
|
139
|
+
filter: noBackgroundVideoEffects !== null && noBackgroundVideoEffects !== void 0 && noBackgroundVideoEffects.facePop ? "brightness(1.1) contrast(1.15) saturate(1.05)" : undefined,
|
|
140
|
+
objectPosition: sourceVideoOrientation === "portrait" ? "0% 30%" : undefined,
|
|
141
|
+
transform: videoZoom ? "scale(".concat(videoZoomInterpolated, ")") : undefined
|
|
142
|
+
}
|
|
143
|
+
}))) : null, /*#__PURE__*/React.createElement(BlurOverlay, {
|
|
144
|
+
show: !showVirtual && (noBackgroundVideoEffects === null || noBackgroundVideoEffects === void 0 ? void 0 : noBackgroundVideoEffects.backgroundBlur) && noBackgroundVideoUrl,
|
|
145
|
+
width: width,
|
|
146
|
+
height: height,
|
|
147
|
+
zIndex: 1
|
|
148
|
+
}), /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
149
|
+
style: {
|
|
150
|
+
zIndex: 8
|
|
151
|
+
}
|
|
152
|
+
}, /*#__PURE__*/React.createElement(Sequence, {
|
|
153
|
+
from: startFrame,
|
|
154
|
+
durationInFrames: BROLL_TIME_IN_FRAMES
|
|
155
|
+
}, /*#__PURE__*/React.createElement(PanningImage, {
|
|
156
|
+
imageUrl: imageUrl
|
|
157
|
+
}))), /*#__PURE__*/React.createElement(AbsoluteFill, {
|
|
158
|
+
style: {
|
|
159
|
+
zIndex: 10
|
|
160
|
+
}
|
|
161
|
+
}, children), logoUrl ? /*#__PURE__*/React.createElement("div", {
|
|
162
|
+
style: {
|
|
163
|
+
position: "fixed",
|
|
164
|
+
left: frameColor ? CHROME_PADDING : 25,
|
|
165
|
+
top: frameColor ? CHROME_PADDING : 25,
|
|
166
|
+
padding: 20,
|
|
167
|
+
zIndex: 9
|
|
168
|
+
}
|
|
169
|
+
}, /*#__PURE__*/React.createElement(PausableImg, {
|
|
170
|
+
delayRenderTimeoutInMilliseconds: 61000,
|
|
171
|
+
style: {
|
|
172
|
+
width: "225px",
|
|
173
|
+
maxHeight: "auto",
|
|
174
|
+
objectFit: "contain"
|
|
175
|
+
},
|
|
176
|
+
src: logoUrl
|
|
177
|
+
})) : null));
|
|
178
|
+
};
|