inl-ui 0.1.39 → 0.1.40
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/hooks/index.cjs +1 -0
- package/dist/hooks/index.d.ts +56 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/hooks/index.cjs
CHANGED
package/dist/hooks/index.d.ts
CHANGED
|
@@ -116,7 +116,62 @@ type RequetFunction = (...args: any[]) => any;
|
|
|
116
116
|
*/
|
|
117
117
|
declare function usePoolingReq(reqFn: RequetFunction, isInterval?: MaybeComputedRef<Boolean>, interval?: number): void;
|
|
118
118
|
|
|
119
|
+
interface PlayVideoArgs {
|
|
120
|
+
videoElm: string;
|
|
121
|
+
videoDom?: Document;
|
|
122
|
+
mediaServerAddr: string;
|
|
123
|
+
cameraUserName: string;
|
|
124
|
+
cameraPwd: string;
|
|
125
|
+
cameraIp: string;
|
|
126
|
+
cameraRtspPort: string;
|
|
127
|
+
cameraChannel: string;
|
|
128
|
+
cameraStream: string;
|
|
129
|
+
addRtspProxyUrl: string;
|
|
130
|
+
}
|
|
131
|
+
interface EndpointConfig {
|
|
132
|
+
debug: boolean;
|
|
133
|
+
simulcast: boolean;
|
|
134
|
+
useCamera: boolean;
|
|
135
|
+
audioEnable: boolean;
|
|
136
|
+
videoEnable: boolean;
|
|
137
|
+
recvOnly: boolean;
|
|
138
|
+
}
|
|
139
|
+
interface WebRtc {
|
|
140
|
+
el?: HTMLElement;
|
|
141
|
+
w?: number;
|
|
142
|
+
h?: number;
|
|
143
|
+
autoPlay?: boolean;
|
|
144
|
+
plays: PlayVideoArgs | Array<PlayVideoArgs>;
|
|
145
|
+
endpointConfig?: EndpointConfig;
|
|
146
|
+
}
|
|
119
147
|
declare const playOneWebRtcMt: (uuid: string, domId: string, dom?: Document, token?: string) => Promise<any>;
|
|
148
|
+
declare class WebRtcMt {
|
|
149
|
+
constructor(opt: WebRtc);
|
|
150
|
+
private opt;
|
|
151
|
+
private dom;
|
|
152
|
+
p_player: any;
|
|
153
|
+
protected playerMap: Map<any, any>;
|
|
154
|
+
protected streamMap: Map<any, any>;
|
|
155
|
+
protected mediaServerAddrMap: Map<any, any>;
|
|
156
|
+
protected config: {
|
|
157
|
+
w: number;
|
|
158
|
+
h: number;
|
|
159
|
+
endpointConfig: {};
|
|
160
|
+
};
|
|
161
|
+
protected createRtspUrl(plays: any): {
|
|
162
|
+
stream: string;
|
|
163
|
+
addRtspProxyUrl: any;
|
|
164
|
+
sdpUrl: any;
|
|
165
|
+
};
|
|
166
|
+
protected init(opt: WebRtc): void;
|
|
167
|
+
protected createVideo(plays: PlayVideoArgs): Promise<unknown>;
|
|
168
|
+
log(type: "err" | "info" | "warn", text: string): void;
|
|
169
|
+
stopPlay(id?: string): void;
|
|
170
|
+
protected playEvent(player: any, videoElm: string, sdpUrl: string): void;
|
|
171
|
+
protected rePlay(videoElm?: string): void;
|
|
172
|
+
protected play(videoElm: string): void;
|
|
173
|
+
startPlay(plays: PlayVideoArgs): void;
|
|
174
|
+
}
|
|
120
175
|
|
|
121
176
|
interface useSelectVo<T> {
|
|
122
177
|
onSelect: (record: T, selected: boolean) => void;
|
|
@@ -138,4 +193,4 @@ declare const useTableSelec: <T>(key?: Key) => useSelectVo<T>;
|
|
|
138
193
|
*/
|
|
139
194
|
declare function useRouteActive(): vue.Ref<boolean>;
|
|
140
195
|
|
|
141
|
-
export { playOneWebRtcMt, useCacheExclude, useEvent, useModalVisible, useNow, usePoolingReq, useQianKunState, useQiankunStateValue, useRouteActive, useTableList, useTableSelec, useZoomAdaptation };
|
|
196
|
+
export { WebRtcMt, playOneWebRtcMt, useCacheExclude, useEvent, useModalVisible, useNow, usePoolingReq, useQianKunState, useQiankunStateValue, useRouteActive, useTableList, useTableSelec, useZoomAdaptation };
|
package/dist/hooks/index.js
CHANGED
|
@@ -6147,4 +6147,4 @@ function useRouteActive() {
|
|
|
6147
6147
|
return isActive;
|
|
6148
6148
|
}
|
|
6149
6149
|
|
|
6150
|
-
export { playOneWebRtcMt, useCacheExclude, useEvent, useModalVisible, useNow, usePoolingReq, useQianKunState, useQiankunStateValue, useRouteActive, useTableList, useTableSelec, useZoomAdaptation };
|
|
6150
|
+
export { WebRtcMt, playOneWebRtcMt, useCacheExclude, useEvent, useModalVisible, useNow, usePoolingReq, useQianKunState, useQiankunStateValue, useRouteActive, useTableList, useTableSelec, useZoomAdaptation };
|
package/dist/index.cjs
CHANGED
|
@@ -45,7 +45,7 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
|
45
45
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
46
46
|
var EZUIKit__default = /*#__PURE__*/_interopDefaultLegacy(EZUIKit);
|
|
47
47
|
|
|
48
|
-
var version = "0.1.
|
|
48
|
+
var version = "0.1.39";
|
|
49
49
|
|
|
50
50
|
const setTheme = theme => {
|
|
51
51
|
if (theme === "dark") {
|
|
@@ -6865,6 +6865,7 @@ var hooks = /*#__PURE__*/Object.freeze({
|
|
|
6865
6865
|
useZoomAdaptation: useZoomAdaptation,
|
|
6866
6866
|
usePoolingReq: usePoolingReq,
|
|
6867
6867
|
playOneWebRtcMt: playOneWebRtcMt,
|
|
6868
|
+
WebRtcMt: WebRtcMt$1,
|
|
6868
6869
|
useTableSelec: useTableSelec,
|
|
6869
6870
|
useRouteActive: useRouteActive
|
|
6870
6871
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { Key } from 'ant-design-vue/lib/table/interface';
|
|
|
11
11
|
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
12
12
|
import * as _ant_design_icons_vue_lib_components_IconFont from '@ant-design/icons-vue/lib/components/IconFont';
|
|
13
13
|
|
|
14
|
-
var version = "0.1.
|
|
14
|
+
var version = "0.1.39";
|
|
15
15
|
|
|
16
16
|
declare const _default$p: {
|
|
17
17
|
set(theme: string): void;
|
|
@@ -492,6 +492,8 @@ declare const hooks_useEvent: typeof useEvent;
|
|
|
492
492
|
declare const hooks_useZoomAdaptation: typeof useZoomAdaptation;
|
|
493
493
|
declare const hooks_usePoolingReq: typeof usePoolingReq;
|
|
494
494
|
declare const hooks_playOneWebRtcMt: typeof playOneWebRtcMt;
|
|
495
|
+
type hooks_WebRtcMt = WebRtcMt;
|
|
496
|
+
declare const hooks_WebRtcMt: typeof WebRtcMt;
|
|
495
497
|
declare const hooks_useTableSelec: typeof useTableSelec;
|
|
496
498
|
declare const hooks_useRouteActive: typeof useRouteActive;
|
|
497
499
|
declare namespace hooks {
|
|
@@ -506,6 +508,7 @@ declare namespace hooks {
|
|
|
506
508
|
hooks_useZoomAdaptation as useZoomAdaptation,
|
|
507
509
|
hooks_usePoolingReq as usePoolingReq,
|
|
508
510
|
hooks_playOneWebRtcMt as playOneWebRtcMt,
|
|
511
|
+
hooks_WebRtcMt as WebRtcMt,
|
|
509
512
|
hooks_useTableSelec as useTableSelec,
|
|
510
513
|
hooks_useRouteActive as useRouteActive,
|
|
511
514
|
};
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
|
|
|
14
14
|
import { marked } from 'marked';
|
|
15
15
|
import '@sszj-temp/mobile/style.css';
|
|
16
16
|
|
|
17
|
-
var version = "0.1.
|
|
17
|
+
var version = "0.1.39";
|
|
18
18
|
|
|
19
19
|
const setTheme = theme => {
|
|
20
20
|
if (theme === "dark") {
|
|
@@ -6834,6 +6834,7 @@ var hooks = /*#__PURE__*/Object.freeze({
|
|
|
6834
6834
|
useZoomAdaptation: useZoomAdaptation,
|
|
6835
6835
|
usePoolingReq: usePoolingReq,
|
|
6836
6836
|
playOneWebRtcMt: playOneWebRtcMt,
|
|
6837
|
+
WebRtcMt: WebRtcMt$1,
|
|
6837
6838
|
useTableSelec: useTableSelec,
|
|
6838
6839
|
useRouteActive: useRouteActive
|
|
6839
6840
|
});
|