@desynova-digital/player 4.0.20 → 4.0.22

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.
@@ -36,7 +36,7 @@ var defaultProps = {
36
36
  actions: {},
37
37
  player: {}
38
38
  };
39
- var PlayButton = (0, _styledComponents["default"])(_components.Button)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n width: 100px;\n height: 100px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: none;\n z-index:1;\n &:hover,\n &:focus {\n background: ", ";\n }\n"])), function (props) {
39
+ var PlayButton = (0, _styledComponents["default"])(_components.Button)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n width: 100px;\n height: 100px;\n position: absolute;\n opacity: 0.5;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: none;\n z-index:1;\n &:hover,\n &:focus {\n background: ", ";\n }\n"])), function (props) {
40
40
  return _colors["default"].common.video[props.assetType].buttonGradient;
41
41
  }, function (props) {
42
42
  return _colors["default"].common.video[props.assetType].buttonGradient;
@@ -289,6 +289,7 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
289
289
  key: "shortcut",
290
290
  order: 99.0
291
291
  }, props, {
292
+ pauseOnOutMarkerSelect: fullProps.pauseOnOutMarkerSelect,
292
293
  frameRate: fullProps.frameRate
293
294
  }))];
294
295
  }
@@ -353,7 +354,8 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
353
354
  key: "shortcut",
354
355
  order: 99.0
355
356
  }, props, {
356
- frameRate: fullProps.frameRate
357
+ frameRate: fullProps.frameRate,
358
+ pauseOnOutMarkerSelect: fullProps.pauseOnOutMarkerSelect
357
359
  }))];
358
360
  }
359
361
  }, {
@@ -359,10 +359,18 @@ var Shortcut = exports["default"] = /*#__PURE__*/function (_Component) {
359
359
  playerReadOnlyMode = _this$props5.playerReadOnlyMode,
360
360
  disablePlayerActions = _this$props5.disablePlayerActions,
361
361
  playerSelectedMarker = _this$props5.playerSelectedMarker,
362
- frameRate = _this$props5.frameRate;
362
+ frameRate = _this$props5.frameRate,
363
+ pauseOnOutMarkerSelect = _this$props5.pauseOnOutMarkerSelect;
363
364
  if (playerReadOnlyMode || disablePlayerActions.includes('marking_controls')) {
364
365
  return;
365
366
  }
367
+ if (pauseOnOutMarkerSelect && !player.paused) {
368
+ actions.pause({
369
+ action: 'pause',
370
+ source: 'shortcut'
371
+ });
372
+ actions.seek(player.currentTime);
373
+ }
366
374
  var currentAdjustedTime = (0, _utils.handleAdjustingVideoAsPerFrame)(player.currentTime, frameRate);
367
375
  for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
368
376
  args[_key2 - 2] = arguments[_key2];
@@ -115,7 +115,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
115
115
  'font-family': 'SFUIText-Regular',
116
116
  'text-shadow': '0 0 4px rgb(0 0 0 / 50%)',
117
117
  'font-size': '12px',
118
- opacity: '0.6',
118
+ opacity: '0.4',
119
119
  display: 'block',
120
120
  top: '0px',
121
121
  left: '0px'
@@ -182,7 +182,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
182
182
  this.video.src = src;
183
183
  }
184
184
  this.forceUpdate(); // make sure the children can get the video property
185
- var watermarkInterval = setInterval(this.checkWatermark, 20000);
185
+ var watermarkInterval = setInterval(this.checkWatermark, 40000);
186
186
  this.setState({
187
187
  watermarkInterval: watermarkInterval
188
188
  });
@@ -222,7 +222,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
222
222
  video_player = document.querySelector('.video-react-player-block').getBoundingClientRect();
223
223
  watermark_dimension = watermark_text.getBoundingClientRect();
224
224
  text_css = watermark_text.style;
225
- bool_text = text_css.position !== 'absolute' || text_css.opacity !== '0.6' || text_css['font-family'] !== 'SFUIText-Regular' && text_css['font-family'] !== '"SFUIText-Regular"';
225
+ bool_text = text_css.position !== 'absolute' || text_css.opacity !== '0.4' || text_css['font-family'] !== 'SFUIText-Regular' && text_css['font-family'] !== '"SFUIText-Regular"';
226
226
  bool_text = bool_text || text_css.display !== 'block';
227
227
  bool_text = bool_text || text_css.top !== watermark.top;
228
228
  bool_text = bool_text || text_css.left !== watermark.left;
@@ -50,19 +50,22 @@ var ProgressControlBlock = _styledComponents["default"].div(_templateObject || (
50
50
  var markers = _ref.markers;
51
51
  return markers.length > 3 ? '40px' : '23px';
52
52
  });
53
- var SeekControlBar = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n position: relative;\n cursor: pointer;\n overflow: hidden;\n z-index: ", ";\n .timeline-content {\n overflow-x: auto;\n white-space: nowrap;\n }\n .hide-scrollbar {\n /* Hide scrollbar for Webkit-based browsers (Chrome, Safari, Edge) */\n scrollbar-width: none; /* Hides scrollbar in Firefox */\n -ms-overflow-style: none; /* Hides scrollbar in IE 10+ */\n }\n\n .hide-scrollbar::-webkit-scrollbar {\n width: 0; /* Removes the scrollbar for Webkit browsers */\n }\n"])), function (props) {
53
+ var SeekControlBar = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n position: relative;\n cursor: pointer;\n overflow: hidden;\n z-index: ", ";\n .timeline-content {\n overflow-x: ", ";\n white-space: nowrap;\n }\n .hide-scrollbar {\n /* Hide scrollbar for Webkit-based browsers (Chrome, Safari, Edge) */\n scrollbar-width: none; /* Hides scrollbar in Firefox */\n -ms-overflow-style: none; /* Hides scrollbar in IE 10+ */\n }\n\n .hide-scrollbar::-webkit-scrollbar {\n width: 0; /* Removes the scrollbar for Webkit browsers */\n }\n\n .scrollBarVisibility\n max-height: 65px;\n overflow-y: visible;\n scrollbar-width: none; /* Hides scrollbar in Firefox */\n -ms-overflow-style: none; /* Hides scrollbar in Internet Explorer 10+ */\n\n /* Hides scrollbar for Webkit-based browsers (Chrome, Safari, Edge) */\n &::-webkit-scrollbar {\n width: 0;\n }\n"])), function (props) {
54
54
  return props.controlType === 'advanced' && !props.isFullscreen ? '2' : '1';
55
+ }, function (_ref2) {
56
+ var zoom = _ref2.zoom;
57
+ return zoom > 0 ? 'auto' : 'visible';
55
58
  });
56
59
  var MarkerTagsBlock = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n min-width: 100px;\n max-width: 100px;\n position: relative;\n height: 60px;\n .empty-block {\n height: calc(100% - 20px);\n }\n .tags-block {\n height: 20px;\n font-family: SFUIText-Medium;\n font-size: 12px;\n color: #ffffff;\n text-transform: uppercase;\n border-top: 1px solid #333333;\n border-bottom: 1px solid #333333;\n p {\n line-height: 18px;\n padding-left: 10px;\n }\n }\n"])));
57
- var ScrollStyledDiv = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n max-height: 101px;\n position: relative;\n top: ", ";\n overflow-y: ", ";\n overflow-x: ", ";\n"])), function (_ref2) {
58
- var markers = _ref2.markers;
59
- return markers.length > 3 ? '18px' : '17px';
60
- }, function (_ref3) {
60
+ var ScrollStyledDiv = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n max-height: 101px;\n position: relative;\n top: ", ";\n overflow-y: ", ";\n overflow-x: ", ";\n"])), function (_ref3) {
61
61
  var markers = _ref3.markers;
62
- return markers.length > 3 ? 'hidden' : 'visible';
62
+ return markers.length > 3 ? '18px' : '17px';
63
63
  }, function (_ref4) {
64
64
  var markers = _ref4.markers;
65
65
  return markers.length > 3 ? 'hidden' : 'visible';
66
+ }, function (_ref5) {
67
+ var markers = _ref5.markers;
68
+ return markers.length > 3 ? 'hidden' : 'visible';
66
69
  });
67
70
  var CoverDiv = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n background-color: black;\n z-index: 2;\n position: absolute;\n height: 60px;\n width: 89px;\n left: 0px;\n top: 20px;\n"])));
68
71
  var ProgressControl = exports["default"] = /*#__PURE__*/function (_Component) {
@@ -191,12 +194,7 @@ var ProgressControl = exports["default"] = /*#__PURE__*/function (_Component) {
191
194
  },
192
195
  zoom: stateZoom && parseFloat(stateZoom.toFixed(1))
193
196
  }, this.props)), /*#__PURE__*/_react["default"].createElement("div", {
194
- style: {
195
- maxHeight: '65px',
196
- scrollbarWidth: 'none',
197
- msOverflowStyle: 'none',
198
- overflowY: markers.length > 3 ? 'scroll' : 'visible'
199
- }
197
+ className: "scrollBarVisibility"
200
198
  }, /*#__PURE__*/_react["default"].createElement(_PointersBar["default"], _extends({
201
199
  onScroll: this.handleChildScroll,
202
200
  theme: theme,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "4.0.20",
3
+ "version": "4.0.22",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,7 +22,7 @@ var initialState = {
22
22
  rightMarker: -1,
23
23
  selectedMarker: {},
24
24
  markerType: 'create',
25
- SDBorderActive: true,
25
+ SDBorderActive: false,
26
26
  buffered: null,
27
27
  waiting: false,
28
28
  seeking: false,