@icos-desktop/react-components 2.2.12 → 2.2.13

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.
@@ -1502,6 +1502,14 @@ interface VideoPlayerProps {
1502
1502
  * 视频源类型
1503
1503
  */
1504
1504
  videoStreamSource?: 'cityeyes' | 'hikvision' | 'custom';
1505
+ /**
1506
+ * 视频播放器宽度
1507
+ */
1508
+ width?: number;
1509
+ /**
1510
+ * 视频播放器高度
1511
+ */
1512
+ height?: number;
1505
1513
  }
1506
1514
 
1507
1515
  declare const VideoPlayer: (props: VideoPlayerProps) => React.JSX.Element;
@@ -7703,7 +7703,7 @@ var Cityeyes = function (_a) {
7703
7703
  };
7704
7704
 
7705
7705
  var H5player = function (_a) {
7706
- var url = _a.url, libPath = _a.libPath;
7706
+ var url = _a.url, libPath = _a.libPath, width = _a.width, height = _a.height;
7707
7707
  var status = useExternal("".concat(libPath, "/h5player.min.js"), { type: 'js' });
7708
7708
  var videoRef = useRef(null);
7709
7709
  var videoElementId = useState(function () { return v4(); })[0];
@@ -7726,6 +7726,8 @@ var H5player = function (_a) {
7726
7726
  szBasePath: libPath,
7727
7727
  bSupporDoubleClickFull: true,
7728
7728
  iMaxSplit: 1,
7729
+ iWidth: width,
7730
+ iHeight: height,
7729
7731
  });
7730
7732
  setInit(true);
7731
7733
  }
@@ -7735,7 +7737,7 @@ var H5player = function (_a) {
7735
7737
 
7736
7738
  var Player = function (props) {
7737
7739
  var _a, _b;
7738
- var libsPath = props.libsPath, url = props.url, videoPlayerType = props.videoPlayerType;
7740
+ var libsPath = props.libsPath, url = props.url, videoPlayerType = props.videoPlayerType, width = props.width, height = props.height;
7739
7741
  var cityeyesPath = (_a = libsPath === null || libsPath === void 0 ? void 0 : libsPath.cityeyes) !== null && _a !== void 0 ? _a : 'https://unpkg.com/hls.js';
7740
7742
  var h5playerPath = (_b = libsPath === null || libsPath === void 0 ? void 0 : libsPath.h5player) !== null && _b !== void 0 ? _b : '/libs/h5player';
7741
7743
  if (!url) {
@@ -7745,7 +7747,7 @@ var Player = function (props) {
7745
7747
  return React__default.createElement(Cityeyes, { url: url, libPath: cityeyesPath });
7746
7748
  }
7747
7749
  if (videoPlayerType === 'h5player') {
7748
- return React__default.createElement(H5player, { url: url, libPath: h5playerPath });
7750
+ return React__default.createElement(H5player, { url: url, libPath: h5playerPath, width: width, height: height });
7749
7751
  }
7750
7752
  };
7751
7753
 
@@ -7754,7 +7756,7 @@ var styles$k = {"container":"VideoPlayer-module_container__Afx8w","control":"Vid
7754
7756
  styleInject(css_248z$k);
7755
7757
 
7756
7758
  var VideoPlayer = function (props) {
7757
- var libsPath = props.libsPath, url = props.url, senseGlobalCode = props.senseGlobalCode, channelId = props.channelId, videoPlayerType = props.videoPlayerType, videoStreamSource = props.videoStreamSource;
7759
+ var libsPath = props.libsPath, url = props.url, senseGlobalCode = props.senseGlobalCode, channelId = props.channelId, videoPlayerType = props.videoPlayerType, videoStreamSource = props.videoStreamSource, width = props.width, height = props.height;
7758
7760
  var _a = useState(false), openControl = _a[0], setOpenControl = _a[1];
7759
7761
  /**
7760
7762
  * 视频播放器需要参数 url 和 videoPlayerType
@@ -7815,7 +7817,7 @@ var VideoPlayer = function (props) {
7815
7817
  return null;
7816
7818
  }
7817
7819
  return (React__default.createElement("div", { className: styles$k.container },
7818
- React__default.createElement(Player, { libsPath: libsPath, videoPlayerType: data.videoPlayerType, url: data.url }),
7820
+ React__default.createElement(Player, { libsPath: libsPath, videoPlayerType: data.videoPlayerType, url: data.url, width: width, height: height }),
7819
7821
  data.ptzControl ? (React__default.createElement("div", { className: styles$k.control, onClick: handleOpenControl },
7820
7822
  React__default.createElement(FullscreenOutlined, null),
7821
7823
  React__default.createElement("span", null, "\u8BBE\u5907\u63A7\u5236"))) : null,
@@ -12977,11 +12979,11 @@ var CcosVideoPlayer = function (props) {
12977
12979
  CcosVideoPlayer.settings = settings$1;
12978
12980
 
12979
12981
  try {
12980
- window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.2.12","branch":"release_v2.2.0","buildDate":"2025-07-29 11:01:46"}');
12982
+ window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.2.13","branch":"release_v2.2.0","buildDate":"2025-07-29 18:57:21"}');
12981
12983
  }
12982
12984
  catch (err) {
12983
12985
  console.warn(err);
12984
- window._ICOS_DESKTOP_VERSION_ = '{"version":"2.2.12","branch":"release_v2.2.0","buildDate":"2025-07-29 11:01:46"}';
12986
+ window._ICOS_DESKTOP_VERSION_ = '{"version":"2.2.13","branch":"release_v2.2.0","buildDate":"2025-07-29 18:57:21"}';
12985
12987
  }
12986
12988
 
12987
12989
  export { BookDetail, BookGroupImport, BookGroupTable, BookImport, BookInfo, BookSelect, BookTable, CcosBookDetail, CcosImportTable, CcosSenseContentTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseFullTable, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosTagConfig, CcosVideoControl, CcosVideoPlayer, EntityClassFilter, EntityClassTreeSelect, ImportTable, Modal, OrgTreeSelect, PersonSelector, ProTable$1 as ProTable, RegionCascader, RegionTreeSelect, RelationGraph, SenseContentTable, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseFullTable, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseView, TagConfig, TagTreeSelect, VideoControl, VideoPlayer, setCconfig as config };