@desynova-digital/player 4.0.69 → 4.0.70

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.
@@ -52,7 +52,8 @@ var defaultProps = {
52
52
  dblclickable: true,
53
53
  actions: {},
54
54
  player: {},
55
- shortcuts: []
55
+ shortcuts: [],
56
+ allowMarkerOverlap: false
56
57
  };
57
58
  var Shortcut = exports["default"] = /*#__PURE__*/function (_Component) {
58
59
  function Shortcut(props, context) {
@@ -401,7 +402,8 @@ var Shortcut = exports["default"] = /*#__PURE__*/function (_Component) {
401
402
  disablePlayerActions = _this$props5.disablePlayerActions,
402
403
  playerSelectedMarker = _this$props5.playerSelectedMarker,
403
404
  frameRate = _this$props5.frameRate,
404
- timelineClicked = _this$props5.timelineClicked;
405
+ timelineClicked = _this$props5.timelineClicked,
406
+ allowMarkerOverlap = _this$props5.allowMarkerOverlap;
405
407
  if (timelineClicked && ["snp_edit", "promo_review", "pgm_edit", "dubbing_review"].includes(playerType)) {
406
408
  var _markers$;
407
409
  _this.executeShortcut67(player, actions, frameRate, '', (_markers$ = markers[0]) === null || _markers$ === void 0 ? void 0 : _markers$.values);
@@ -420,7 +422,7 @@ var Shortcut = exports["default"] = /*#__PURE__*/function (_Component) {
420
422
  } else {
421
423
  if (playerType !== 'panel') {
422
424
  var createPoint = true;
423
- if (markers && markers.length && markers[0].values && markers[0].values.length) {
425
+ if (markers && markers.length && markers[0].values && markers[0].values.length && !allowMarkerOverlap) {
424
426
  var markerArr = markers[0].values;
425
427
  if (Object.keys(player.selectedMarker).length) {
426
428
  markerArr = markerArr.filter(function (marker) {
@@ -470,7 +472,8 @@ var Shortcut = exports["default"] = /*#__PURE__*/function (_Component) {
470
472
  disablePlayerActions = _this$props6.disablePlayerActions,
471
473
  playerSelectedMarker = _this$props6.playerSelectedMarker,
472
474
  frameRate = _this$props6.frameRate,
473
- pauseOnOutMarkerSelect = _this$props6.pauseOnOutMarkerSelect;
475
+ pauseOnOutMarkerSelect = _this$props6.pauseOnOutMarkerSelect,
476
+ allowMarkerOverlap = _this$props6.allowMarkerOverlap;
474
477
  if (playerReadOnlyMode || disablePlayerActions.includes('marking_controls')) {
475
478
  return;
476
479
  }
@@ -496,7 +499,7 @@ var Shortcut = exports["default"] = /*#__PURE__*/function (_Component) {
496
499
  } else {
497
500
  var createPoint = true;
498
501
  if (playerType !== 'panel') {
499
- if (markers && markers.length && markers[0].values && markers[0].values.length) {
502
+ if (markers && markers.length && markers[0].values && markers[0].values.length && !allowMarkerOverlap) {
500
503
  var markerArr = markers[0].values;
501
504
  if (Object.keys(player.selectedMarker).length) {
502
505
  markerArr = markerArr.filter(function (marker) {
@@ -1315,7 +1315,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1315
1315
  watermark = _this$state2.watermark,
1316
1316
  currentSubtitleObj = _this$state2.currentSubtitleObj;
1317
1317
  var children = this.getChildren(this.props);
1318
- var isSubtitleActive = player.SubtitleStatus && playerType === 'default' || playerType === 'subtitle' && markers && markers.length;
1318
+ var isSubtitleActive = player.SubtitleStatus && playerType === "default" || playerType === 'subtitle' && markers && markers.length || player.SubtitleStatus;
1319
1319
  return /*#__PURE__*/_react["default"].createElement(VideoBlock, {
1320
1320
  className: "video-react-player-block",
1321
1321
  ref: function ref(c) {
@@ -96,7 +96,7 @@ var CaptionControlMenuButton = /*#__PURE__*/function (_Component) {
96
96
  theme = _this$props4.theme,
97
97
  subtitleData = _this$props4.subtitleData,
98
98
  playerType = _this$props4.playerType;
99
- var showCaptionButton = subtitleData && subtitleData.length && playerType === 'default';
99
+ var showCaptionButton = subtitleData && subtitleData.length && playerType !== 'subtitle_assign';
100
100
  return showCaptionButton ? /*#__PURE__*/_react["default"].createElement("div", {
101
101
  style: {
102
102
  marginRight: '10px'
@@ -236,6 +236,10 @@ var ControlBar = exports["default"] = /*#__PURE__*/function (_Component) {
236
236
  }), /*#__PURE__*/_react["default"].createElement(_SubtitleMovementMenu["default"], _extends({}, this.props, {
237
237
  key: "subtitle-movement-menu",
238
238
  order: 8
239
+ })), playerType !== "subtitle_assign" && /*#__PURE__*/_react["default"].createElement(_CaptionControlMenuButton["default"], _extends({}, this.props, {
240
+ order: 8,
241
+ playerType: playerType,
242
+ key: "caption-control-menu-button"
239
243
  })), /*#__PURE__*/_react["default"].createElement(_AudioTracksMenuButton["default"], _extends({}, this.props, {
240
244
  key: "audio-tracks-menu-button",
241
245
  order: 9
@@ -248,7 +252,7 @@ var ControlBar = exports["default"] = /*#__PURE__*/function (_Component) {
248
252
  style: {
249
253
  marginRight: '10px'
250
254
  }
251
- }))];
255
+ }))].filter(Boolean);
252
256
  }
253
257
  }, {
254
258
  key: "getImageChildrens",
@@ -114,7 +114,7 @@ function SettingsMenu(_ref) {
114
114
  setSettingStatus(true);
115
115
  setSubtitleChildStatus(false);
116
116
  }, [playerType]);
117
- var playerValue = playerType === 'default';
117
+ var playerValue = subtitleData.length > 0;
118
118
  var settingShow = settingStatus || !playerValue;
119
119
  return /*#__PURE__*/_react["default"].createElement(SettingsMenuContainer, {
120
120
  theme: theme,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "4.0.69",
3
+ "version": "4.0.70",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {