@icos-desktop/react-components 2.2.13-zdhd.1 → 2.2.13-zdhd.2.p
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/dist/icos-desktop.d.ts
CHANGED
@@ -1510,6 +1510,10 @@ interface VideoPlayerProps {
|
|
1510
1510
|
* 视频播放器高度
|
1511
1511
|
*/
|
1512
1512
|
height?: number;
|
1513
|
+
/**
|
1514
|
+
* 获取视频信息回调
|
1515
|
+
*/
|
1516
|
+
onGetVideoInfo?: (info: any) => void;
|
1513
1517
|
}
|
1514
1518
|
|
1515
1519
|
declare const VideoPlayer: (props: VideoPlayerProps) => React.JSX.Element;
|
package/dist/icos-desktop.js
CHANGED
@@ -7722,7 +7722,7 @@ var H5player = function (_a) {
|
|
7722
7722
|
}, [init, url]);
|
7723
7723
|
// TODO: 重大活动保障定制
|
7724
7724
|
useEffect(function () {
|
7725
|
-
var JSPlugin = window.JSPlugin;
|
7725
|
+
var JSPlugin = window.parent.JSPlugin;
|
7726
7726
|
if (JSPlugin && !videoRef.current) {
|
7727
7727
|
videoRef.current = new JSPlugin({
|
7728
7728
|
szId: videoElementId,
|
@@ -7773,7 +7773,7 @@ var styles$k = {"container":"VideoPlayer-module_container__Afx8w","control":"Vid
|
|
7773
7773
|
styleInject(css_248z$k);
|
7774
7774
|
|
7775
7775
|
var VideoPlayer = function (props) {
|
7776
|
-
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;
|
7776
|
+
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, onGetVideoInfo = props.onGetVideoInfo;
|
7777
7777
|
var _a = useState(false), openControl = _a[0], setOpenControl = _a[1];
|
7778
7778
|
/**
|
7779
7779
|
* 视频播放器需要参数 url 和 videoPlayerType
|
@@ -7830,6 +7830,11 @@ var VideoPlayer = function (props) {
|
|
7830
7830
|
var handleCloseControl = function () {
|
7831
7831
|
setOpenControl(false);
|
7832
7832
|
};
|
7833
|
+
useEffect(function () {
|
7834
|
+
if (data) {
|
7835
|
+
onGetVideoInfo === null || onGetVideoInfo === void 0 ? void 0 : onGetVideoInfo(data);
|
7836
|
+
}
|
7837
|
+
}, [onGetVideoInfo, data]);
|
7833
7838
|
if (!data) {
|
7834
7839
|
return null;
|
7835
7840
|
}
|
@@ -12996,11 +13001,11 @@ var CcosVideoPlayer = function (props) {
|
|
12996
13001
|
CcosVideoPlayer.settings = settings$1;
|
12997
13002
|
|
12998
13003
|
try {
|
12999
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.2.13-zdhd.
|
13004
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.2.13-zdhd.2.p","branch":"release_v2.2.0","buildDate":"2025-08-05 14:30:23"}');
|
13000
13005
|
}
|
13001
13006
|
catch (err) {
|
13002
13007
|
console.warn(err);
|
13003
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.2.13-zdhd.
|
13008
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.2.13-zdhd.2.p","branch":"release_v2.2.0","buildDate":"2025-08-05 14:30:23"}';
|
13004
13009
|
}
|
13005
13010
|
|
13006
13011
|
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 };
|