@desynova-digital/player 4.0.101 → 4.0.102
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/Player.js +11 -1
- package/package.json +1 -1
package/components/Player.js
CHANGED
|
@@ -231,6 +231,12 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
231
231
|
onRightMenuVisible(false);
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
|
+
_defineProperty(_this, "getReviewTabIndex", function () {
|
|
235
|
+
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
236
|
+
_this.setState({
|
|
237
|
+
reviewIndex: index
|
|
238
|
+
});
|
|
239
|
+
});
|
|
234
240
|
// handleFullScreenChange() {
|
|
235
241
|
// this.actions.handleFullscreenChange(fullscreen.isFullscreen);
|
|
236
242
|
// }
|
|
@@ -269,6 +275,9 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
269
275
|
}
|
|
270
276
|
}
|
|
271
277
|
});
|
|
278
|
+
_this.state = {
|
|
279
|
+
reviewIndex: 0
|
|
280
|
+
};
|
|
272
281
|
_this.controlsHideTimer = null;
|
|
273
282
|
_this.meterHeight = 40;
|
|
274
283
|
_this.video = null; // the Video component
|
|
@@ -459,6 +468,7 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
459
468
|
tabMetadata = _this$props3.tabMetadata,
|
|
460
469
|
player = _this$props3.player,
|
|
461
470
|
onRightMenuVisible = _this$props3.onRightMenuVisible;
|
|
471
|
+
var reviewIndex = this.state.reviewIndex;
|
|
462
472
|
return [/*#__PURE__*/_react["default"].createElement(_PlayerHeader["default"], _extends({
|
|
463
473
|
ref: function ref(c) {
|
|
464
474
|
_this2._playerHeader = c;
|
|
@@ -503,7 +513,7 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
503
513
|
onRightMenuVisible: onRightMenuVisible,
|
|
504
514
|
actions: fullProps === null || fullProps === void 0 ? void 0 : fullProps.actions,
|
|
505
515
|
order: 4,
|
|
506
|
-
data: tabMetadata === null || tabMetadata === void 0 || (_tabMetadata$edit_dat = tabMetadata.edit_data) === null || _tabMetadata$edit_dat === void 0 || (_tabMetadata$edit_dat = _tabMetadata$edit_dat[
|
|
516
|
+
data: tabMetadata === null || tabMetadata === void 0 || (_tabMetadata$edit_dat = tabMetadata.edit_data) === null || _tabMetadata$edit_dat === void 0 || (_tabMetadata$edit_dat = _tabMetadata$edit_dat[reviewIndex]) === null || _tabMetadata$edit_dat === void 0 || (_tabMetadata$edit_dat = _tabMetadata$edit_dat.value) === null || _tabMetadata$edit_dat === void 0 ? void 0 : _tabMetadata$edit_dat.map(function (item) {
|
|
507
517
|
var _item$marker_data;
|
|
508
518
|
var itemObj = _objectSpread(_objectSpread({}, item.marker_data), {}, {
|
|
509
519
|
comment_type: item === null || item === void 0 ? void 0 : item.comment_type,
|