@zync/zync-screnplay-player 0.1.219 → 0.1.220
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 +820 -0
- package/dist/screenplay/RemotionRenderer/development.js +6 -19
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/HookVideoLayout.js +42 -0
- package/dist/screenplay/RemotionRenderer/main/lib/layouts/LayoutFactory.js +5 -0
- package/dist/screenplay/RemotionRenderer/registeredComponents.js +2 -0
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ var renderer = new RemotionRenderer({
|
|
|
18
18
|
segments: [{
|
|
19
19
|
recordingIndex: 0,
|
|
20
20
|
layout: {
|
|
21
|
-
type: "
|
|
21
|
+
type: "hook_video",
|
|
22
22
|
data: {
|
|
23
23
|
noBackgroundVideoEffects: {
|
|
24
24
|
facePop: false,
|
|
@@ -35,6 +35,10 @@ var renderer = new RemotionRenderer({
|
|
|
35
35
|
duration: 6.75,
|
|
36
36
|
logoUrl: "https://cdn.solorecording.studio/media/brand-kit/8X8Vximr/1773429932296-mjhyogatransparent.png",
|
|
37
37
|
frameColor: "#C5B4E3",
|
|
38
|
+
hookText: "When systems stop working, attention spikes.",
|
|
39
|
+
hookAccentText: "attention spikes",
|
|
40
|
+
hookStyle: "mono_shock",
|
|
41
|
+
hookDurationSeconds: 2.6,
|
|
38
42
|
disableTransitionSounds: true,
|
|
39
43
|
paddingLeft: 1.1999999,
|
|
40
44
|
paddingRight: 2.7166330999999992
|
|
@@ -3514,24 +3518,7 @@ var renderer = new RemotionRenderer({
|
|
|
3514
3518
|
}]
|
|
3515
3519
|
}, {
|
|
3516
3520
|
type: "effect",
|
|
3517
|
-
segments: [
|
|
3518
|
-
type: "title",
|
|
3519
|
-
theme: "glitch",
|
|
3520
|
-
data: {
|
|
3521
|
-
text: "When Systems Stop Working as Promised",
|
|
3522
|
-
offset: 1,
|
|
3523
|
-
duration: 5
|
|
3524
|
-
}
|
|
3525
|
-
}, {
|
|
3526
|
-
type: "nametag",
|
|
3527
|
-
theme: "glitch",
|
|
3528
|
-
data: {
|
|
3529
|
-
name: "Michael Joel Hall",
|
|
3530
|
-
title: "Yoga Teacher, Business Builder, Community Creator, Coach",
|
|
3531
|
-
offset: 6,
|
|
3532
|
-
duration: 5
|
|
3533
|
-
}
|
|
3534
|
-
}]
|
|
3521
|
+
segments: []
|
|
3535
3522
|
}, {
|
|
3536
3523
|
type: "caption",
|
|
3537
3524
|
segments: []
|
|
@@ -0,0 +1,42 @@
|
|
|
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
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); }
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
9
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
12
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
13
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
14
|
+
import { Layout } from "./DefaultLayout.js";
|
|
15
|
+
export var HookVideoLayout = /*#__PURE__*/function (_Layout) {
|
|
16
|
+
function HookVideoLayout(props) {
|
|
17
|
+
var _this;
|
|
18
|
+
_classCallCheck(this, HookVideoLayout);
|
|
19
|
+
_this = _callSuper(this, HookVideoLayout, [props]);
|
|
20
|
+
_this.getVideoProps(props);
|
|
21
|
+
return _this;
|
|
22
|
+
}
|
|
23
|
+
_inherits(HookVideoLayout, _Layout);
|
|
24
|
+
return _createClass(HookVideoLayout, [{
|
|
25
|
+
key: "getVideoProps",
|
|
26
|
+
value: function getVideoProps(props) {
|
|
27
|
+
var _props$data$sourceVid, _props$data$sourceVid2, _props$data, _props$data2, _props$data3, _props$data4, _props$data$hookDurat, _props$data5, _props$data6, _props$data7, _props$data8;
|
|
28
|
+
this.props = {
|
|
29
|
+
videoUrl: (_props$data$sourceVid = props.data.sourceVideo) === null || _props$data$sourceVid === void 0 ? void 0 : _props$data$sourceVid.videoUrl,
|
|
30
|
+
videoZoom: ((_props$data$sourceVid2 = props.data.sourceVideo) === null || _props$data$sourceVid2 === void 0 ? void 0 : _props$data$sourceVid2.zoom) || 1,
|
|
31
|
+
disableTransitionSounds: (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.disableTransitionSounds,
|
|
32
|
+
useSquareInLandscape: ((_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.useSquareInLandscape) || false,
|
|
33
|
+
hookText: (_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.hookText,
|
|
34
|
+
hookStyle: ((_props$data4 = props.data) === null || _props$data4 === void 0 ? void 0 : _props$data4.hookStyle) || "punch_zoom",
|
|
35
|
+
hookDurationSeconds: (_props$data$hookDurat = (_props$data5 = props.data) === null || _props$data5 === void 0 ? void 0 : _props$data5.hookDurationSeconds) !== null && _props$data$hookDurat !== void 0 ? _props$data$hookDurat : 1.6,
|
|
36
|
+
hookAccentText: (_props$data6 = props.data) === null || _props$data6 === void 0 ? void 0 : _props$data6.hookAccentText,
|
|
37
|
+
hookSubtext: (_props$data7 = props.data) === null || _props$data7 === void 0 ? void 0 : _props$data7.hookSubtext,
|
|
38
|
+
disableHookSounds: ((_props$data8 = props.data) === null || _props$data8 === void 0 ? void 0 : _props$data8.disableHookSounds) || false
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}]);
|
|
42
|
+
}(Layout);
|
|
@@ -18,6 +18,7 @@ import { MotionStillLayout } from "./MotionStillLayout.js";
|
|
|
18
18
|
import { KeywordLayout } from "./KeywordLayout.js";
|
|
19
19
|
import { IntroVideoLayout } from "./IntroVideoLayout";
|
|
20
20
|
import { DynamicTriangleLayout } from "./DynamicTriangleLayout.js";
|
|
21
|
+
import { HookVideoLayout } from "./HookVideoLayout.js";
|
|
21
22
|
export var LayoutFactory = /*#__PURE__*/function () {
|
|
22
23
|
function LayoutFactory() {
|
|
23
24
|
_classCallCheck(this, LayoutFactory);
|
|
@@ -88,6 +89,10 @@ export var LayoutFactory = /*#__PURE__*/function () {
|
|
|
88
89
|
{
|
|
89
90
|
return new DynamicTriangleLayout(props).flatten();
|
|
90
91
|
}
|
|
92
|
+
case "hook_video":
|
|
93
|
+
{
|
|
94
|
+
return new HookVideoLayout(props).flatten();
|
|
95
|
+
}
|
|
91
96
|
default:
|
|
92
97
|
{
|
|
93
98
|
return new Layout(props).flatten();
|
|
@@ -43,6 +43,7 @@ import { MotionStillGreenScreen } from "./components/layouts/MotionStillGreenScr
|
|
|
43
43
|
import { DynamicTriangle } from "./components/layouts/DynamicTriangle";
|
|
44
44
|
import { KeywordStudioBackdrop } from "./components/layouts/KeywordStudioBackdrop";
|
|
45
45
|
import { MotionStillGreenScreenV2 } from "./components/layouts/MotionStillGreenScreenV2";
|
|
46
|
+
import { HookVideo } from "./components/layouts/HookVideo";
|
|
46
47
|
|
|
47
48
|
/** Update this so that Remotion knows which component to render when it is passed via screenplay. Ex. "title" will have rendered "Title" component
|
|
48
49
|
* Here we are mapping directly types and component names. Types are snake_case and components PascalCase.
|
|
@@ -74,6 +75,7 @@ export var RegisteredComponents = {
|
|
|
74
75
|
StretchTextDemo: StretchTextDemo,
|
|
75
76
|
KeyPointOverlayDepth: KeyPointOverlayDepth,
|
|
76
77
|
DynamicTriangle: DynamicTriangle,
|
|
78
|
+
HookVideo: HookVideo,
|
|
77
79
|
//effects
|
|
78
80
|
BrollFullscreen: BrollFullscreen,
|
|
79
81
|
PhraseRainbowEffect: PhraseRainbowEffect,
|