@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.
@@ -458,6 +458,7 @@ var normalizeSegmentTrack = function normalizeSegmentTrack(segmentTrack, globalC
458
458
  var clonedChunk = cloneValue(segment);
459
459
  clonedChunk.layout.data.trimLeft = keptRange.start;
460
460
  clonedChunk.layout.data.trimRight = Math.max(0, duration - keptRange.end);
461
+ clonedChunk.layout.data.__baseTrimLeft = timing.playableStart;
461
462
  clonedChunk.__transitionAfter = chunkIndex === keptRanges.length - 1;
462
463
  clonedChunk.__originSegmentIndex = segmentIndex;
463
464
  if (Array.isArray(clonedChunk.effects)) {
@@ -32,7 +32,7 @@ export var Layout = /*#__PURE__*/function (_Sequence) {
32
32
  return _createClass(Layout, [{
33
33
  key: "getLayoutProps",
34
34
  value: function getLayoutProps(props) {
35
- var _props$data, _props$data2, _props$data$sourceVid, _props$data3, _props$data4, _props$data$noBackgro, _props$data$noBackgro2;
35
+ var _props$data, _props$data2, _props$data$sourceVid, _props$data3, _props$data4, _props$data$__baseTri, _props$data5, _props$data$noBackgro, _props$data$noBackgro2;
36
36
  var sourceVideoOrientation = getVideoOrientation(props.data.sourceVideo.aspectRatio);
37
37
  var trimLeft = ((_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.trimLeft) || 0;
38
38
  var trimRight = ((_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.trimRight) || 0;
@@ -62,6 +62,7 @@ export var Layout = /*#__PURE__*/function (_Sequence) {
62
62
  disableTransitionSounds: (_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.disableTransitionSounds,
63
63
  useSquareInLandscape: ((_props$data4 = props.data) === null || _props$data4 === void 0 ? void 0 : _props$data4.useSquareInLandscape) || false,
64
64
  trimLeft: trimLeft,
65
+ baseTrimLeft: (_props$data$__baseTri = (_props$data5 = props.data) === null || _props$data5 === void 0 ? void 0 : _props$data5.__baseTrimLeft) !== null && _props$data$__baseTri !== void 0 ? _props$data$__baseTri : trimLeft,
65
66
  trimRight: trimRight,
66
67
  words: props.data.words,
67
68
  noBackgroundVideoUrl: (_props$data$noBackgro = props.data.noBackgroundVideo) === null || _props$data$noBackgro === void 0 ? void 0 : _props$data$noBackgro.videoUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zync/zync-screnplay-player",
3
- "version": "0.1.223",
3
+ "version": "0.1.224",
4
4
  "files": [
5
5
  "dist"
6
6
  ],