@desynova-digital/player 4.0.67 → 4.0.69

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.
@@ -107,7 +107,9 @@ var defaultProps = {
107
107
  var SubTitleSection = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n font-family: SFUIText-Regular;\n font-size: 16px;\n bottom: 20px;\n width: 100%;\n display: flex;\n justify-content: center;\n text-align: center;\n color: #ffffff;\n height: 90%;\n align-items: center;\n\n .subtitleContainer {\n border-radius: 4px;\n width: fit-content;\n background: #000000;\n opacity: 0.9;\n padding: ", ";\n line-height: 20px;\n position: absolute;\n\n i,\n em {\n font-style: italic; /* Override the font style for <em> tags inside elements with the class .someClass */\n }\n\n strong {\n font-weight: bold;\n }\n }\n .longSubtitleStyles {\n overflow-y: auto;\n height: fit-content;\n max-height: 70px;\n max-width: 75%;\n width: fit-content;\n }\n"])), function (props) {
108
108
  return props.currentSubtitleObj && props.currentSubtitleObj.line1 ? '8px 10px' : '0px';
109
109
  });
110
- var VideoBlock = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n &.video-react-player-block {\n position: relative;\n transition: all 0.1s ease-in-out;\n -moz-transition: all 0.1s ease-in-out;\n -webkit-transition: all 0.1s ease-in-out;\n -ms-transition: all 0.1s ease-in-out;\n -o-transition: all 0.1s ease-in-out;\n video {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n right: 0;\n bottom: 0;\n }\n .audio-tracks {\n position: relative;\n display: flex;\n background: rgba(0, 0, 0, 0.5);\n color: #fff;\n z-index: 10;\n position: absolute;\n width: 100%;\n bottom: 0;\n p {\n cursor: pointer;\n padding: 10px;\n }\n }\n .loader-container {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n z-index: 10;\n background: rgba(0, 0, 0, 0.5);\n }\n }\n &.ratio-border {\n // border: 1px solid rgba(255, 255, 255, 0.5);\n &:after {\n content: ", ";\n position: absolute;\n color: #fff;\n font-family: SFUIText-Regular;\n font-size: 12px;\n transform: rotate(-90deg);\n top: 20%;\n left: -50px;\n }\n }\n"])), function (props) {
110
+ var VideoBlock = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n &.video-react-player-block {\n position: relative;\n transition: all 0.1s ease-in-out;\n -moz-transition: all 0.1s ease-in-out;\n -webkit-transition: all 0.1s ease-in-out;\n -ms-transition: all 0.1s ease-in-out;\n -o-transition: all 0.1s ease-in-out;\n ", "\n video {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n right: 0;\n bottom: 0;\n }\n .audio-tracks {\n position: relative;\n display: flex;\n background: rgba(0, 0, 0, 0.5);\n color: #fff;\n z-index: 10;\n position: absolute;\n width: 100%;\n bottom: 0;\n p {\n cursor: pointer;\n padding: 10px;\n }\n }\n .loader-container {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n z-index: 10;\n background: rgba(0, 0, 0, 0.5);\n }\n }\n &.ratio-border {\n // border: 1px solid rgba(255, 255, 255, 0.5);\n &:after {\n content: ", ";\n position: absolute;\n color: #fff;\n font-family: SFUIText-Regular;\n font-size: 12px;\n transform: rotate(-90deg);\n top: 20%;\n left: -50px;\n }\n }\n"])), function (props) {
111
+ return props.svgLayerActive && "\n pointer-events: none;\n video {\n pointer-events: none;\n }\n ";
112
+ }, function (props) {
111
113
  return props.HDBorder ? '"16:9 Safe Area"' : '';
112
114
  });
113
115
  var Video = exports["default"] = /*#__PURE__*/function (_Component) {
@@ -1313,14 +1315,15 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1313
1315
  watermark = _this$state2.watermark,
1314
1316
  currentSubtitleObj = _this$state2.currentSubtitleObj;
1315
1317
  var children = this.getChildren(this.props);
1316
- var isSubtitleActive = player.SubtitleStatus && playerType === "default" || playerType === 'subtitle' && markers && markers.length || player.SubtitleStatus;
1318
+ var isSubtitleActive = player.SubtitleStatus && playerType === 'default' || playerType === 'subtitle' && markers && markers.length;
1317
1319
  return /*#__PURE__*/_react["default"].createElement(VideoBlock, {
1318
1320
  className: "video-react-player-block",
1319
1321
  ref: function ref(c) {
1320
1322
  _this5.playerBlock = c;
1321
1323
  },
1322
1324
  style: this.getStyle(),
1323
- HDBorder: player.HDBorderActive
1325
+ HDBorder: player.HDBorderActive,
1326
+ svgLayerActive: this.props.isSvgLayer
1324
1327
  }, isBuffering && /*#__PURE__*/_react["default"].createElement("div", {
1325
1328
  className: "loader-container",
1326
1329
  onClick: function onClick() {
@@ -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 === 'default';
100
100
  return showCaptionButton ? /*#__PURE__*/_react["default"].createElement("div", {
101
101
  style: {
102
102
  marginRight: '10px'
@@ -236,10 +236,6 @@ 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, {
240
- order: 8,
241
- playerType: playerType,
242
- key: "caption-control-menu-button"
243
239
  })), /*#__PURE__*/_react["default"].createElement(_AudioTracksMenuButton["default"], _extends({}, this.props, {
244
240
  key: "audio-tracks-menu-button",
245
241
  order: 9
@@ -114,7 +114,7 @@ function SettingsMenu(_ref) {
114
114
  setSettingStatus(true);
115
115
  setSubtitleChildStatus(false);
116
116
  }, [playerType]);
117
- var playerValue = subtitleData.length > 0;
117
+ var playerValue = playerType === 'default';
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.67",
3
+ "version": "4.0.69",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {