@desynova-digital/player 4.0.68 → 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.
package/components/Shortcut.js
CHANGED
|
@@ -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) {
|
|
@@ -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;
|
|
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,7 +236,7 @@ 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
|
-
})), /*#__PURE__*/_react["default"].createElement(_CaptionControlMenuButton["default"], _extends({}, this.props, {
|
|
239
|
+
})), playerType !== "subtitle_assign" && /*#__PURE__*/_react["default"].createElement(_CaptionControlMenuButton["default"], _extends({}, this.props, {
|
|
240
240
|
order: 8,
|
|
241
241
|
playerType: playerType,
|
|
242
242
|
key: "caption-control-menu-button"
|
|
@@ -252,7 +252,7 @@ var ControlBar = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
252
252
|
style: {
|
|
253
253
|
marginRight: '10px'
|
|
254
254
|
}
|
|
255
|
-
}))];
|
|
255
|
+
}))].filter(Boolean);
|
|
256
256
|
}
|
|
257
257
|
}, {
|
|
258
258
|
key: "getImageChildrens",
|