inl-ui 0.1.122 → 0.1.124
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/components/index.cjs +15 -12
- package/dist/components/index.js +15 -12
- package/dist/hooks/index.cjs +2 -1
- package/dist/hooks/index.js +2 -1
- package/dist/index.cjs +16 -13
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -13
- package/dist/tplib/index.cjs +2 -1
- package/dist/tplib/index.js +2 -1
- package/dist/video/index.cjs +2 -1
- package/dist/video/index.js +2 -1
- package/dist/videoMobile/index.cjs +2 -1
- package/dist/videoMobile/index.js +2 -1
- package/package.json +1 -1
|
@@ -211,18 +211,20 @@ function getIframeUrl(url) {
|
|
|
211
211
|
async function checkIframeUrl(url) {
|
|
212
212
|
const iframeUrl = getIframeUrl(url);
|
|
213
213
|
let code = 200;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
code
|
|
214
|
+
if (url.indexOf("noCheck") === -1) {
|
|
215
|
+
try {
|
|
216
|
+
const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
|
|
217
|
+
headers: getCommonHeaders()
|
|
218
|
+
});
|
|
219
|
+
if (res.status !== 404) {
|
|
220
|
+
const json = await res.json();
|
|
221
|
+
code = json.data;
|
|
222
|
+
if (json.code === "M5001") {
|
|
223
|
+
code = 500;
|
|
224
|
+
}
|
|
223
225
|
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
+
} catch (e) {}
|
|
227
|
+
}
|
|
226
228
|
return code;
|
|
227
229
|
}
|
|
228
230
|
|
|
@@ -6508,7 +6510,7 @@ class WebRtcMt$1 {
|
|
|
6508
6510
|
this.rePlay(videoElm);
|
|
6509
6511
|
});
|
|
6510
6512
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6511
|
-
|
|
6513
|
+
this.log("warn", state);
|
|
6512
6514
|
if (state === "disconnected" || state === "failed") {
|
|
6513
6515
|
this.rePlay(videoElm);
|
|
6514
6516
|
}
|
|
@@ -6525,6 +6527,7 @@ class WebRtcMt$1 {
|
|
|
6525
6527
|
}
|
|
6526
6528
|
// 播放
|
|
6527
6529
|
play(videoElm) {
|
|
6530
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6528
6531
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6529
6532
|
const {
|
|
6530
6533
|
sdpUrl
|
package/dist/components/index.js
CHANGED
|
@@ -183,18 +183,20 @@ function getIframeUrl(url) {
|
|
|
183
183
|
async function checkIframeUrl(url) {
|
|
184
184
|
const iframeUrl = getIframeUrl(url);
|
|
185
185
|
let code = 200;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
code
|
|
186
|
+
if (url.indexOf("noCheck") === -1) {
|
|
187
|
+
try {
|
|
188
|
+
const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
|
|
189
|
+
headers: getCommonHeaders()
|
|
190
|
+
});
|
|
191
|
+
if (res.status !== 404) {
|
|
192
|
+
const json = await res.json();
|
|
193
|
+
code = json.data;
|
|
194
|
+
if (json.code === "M5001") {
|
|
195
|
+
code = 500;
|
|
196
|
+
}
|
|
195
197
|
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
+
} catch (e) {}
|
|
199
|
+
}
|
|
198
200
|
return code;
|
|
199
201
|
}
|
|
200
202
|
|
|
@@ -6480,7 +6482,7 @@ class WebRtcMt$1 {
|
|
|
6480
6482
|
this.rePlay(videoElm);
|
|
6481
6483
|
});
|
|
6482
6484
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6483
|
-
|
|
6485
|
+
this.log("warn", state);
|
|
6484
6486
|
if (state === "disconnected" || state === "failed") {
|
|
6485
6487
|
this.rePlay(videoElm);
|
|
6486
6488
|
}
|
|
@@ -6497,6 +6499,7 @@ class WebRtcMt$1 {
|
|
|
6497
6499
|
}
|
|
6498
6500
|
// 播放
|
|
6499
6501
|
play(videoElm) {
|
|
6502
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6500
6503
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6501
6504
|
const {
|
|
6502
6505
|
sdpUrl
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -6117,7 +6117,7 @@ class WebRtcMt {
|
|
|
6117
6117
|
this.rePlay(videoElm);
|
|
6118
6118
|
});
|
|
6119
6119
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6120
|
-
|
|
6120
|
+
this.log("warn", state);
|
|
6121
6121
|
if (state === "disconnected" || state === "failed") {
|
|
6122
6122
|
this.rePlay(videoElm);
|
|
6123
6123
|
}
|
|
@@ -6134,6 +6134,7 @@ class WebRtcMt {
|
|
|
6134
6134
|
}
|
|
6135
6135
|
// 播放
|
|
6136
6136
|
play(videoElm) {
|
|
6137
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6137
6138
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6138
6139
|
const {
|
|
6139
6140
|
sdpUrl
|
package/dist/hooks/index.js
CHANGED
|
@@ -6108,7 +6108,7 @@ class WebRtcMt {
|
|
|
6108
6108
|
this.rePlay(videoElm);
|
|
6109
6109
|
});
|
|
6110
6110
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6111
|
-
|
|
6111
|
+
this.log("warn", state);
|
|
6112
6112
|
if (state === "disconnected" || state === "failed") {
|
|
6113
6113
|
this.rePlay(videoElm);
|
|
6114
6114
|
}
|
|
@@ -6125,6 +6125,7 @@ class WebRtcMt {
|
|
|
6125
6125
|
}
|
|
6126
6126
|
// 播放
|
|
6127
6127
|
play(videoElm) {
|
|
6128
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6128
6129
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6129
6130
|
const {
|
|
6130
6131
|
sdpUrl
|
package/dist/index.cjs
CHANGED
|
@@ -43,7 +43,7 @@ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$2);
|
|
|
43
43
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
44
44
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
45
45
|
|
|
46
|
-
var version = "0.1.
|
|
46
|
+
var version = "0.1.123";
|
|
47
47
|
|
|
48
48
|
const setTheme = theme => {
|
|
49
49
|
if (theme === "dark") {
|
|
@@ -6809,7 +6809,7 @@ class WebRtcMt$1 {
|
|
|
6809
6809
|
this.rePlay(videoElm);
|
|
6810
6810
|
});
|
|
6811
6811
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6812
|
-
|
|
6812
|
+
this.log("warn", state);
|
|
6813
6813
|
if (state === "disconnected" || state === "failed") {
|
|
6814
6814
|
this.rePlay(videoElm);
|
|
6815
6815
|
}
|
|
@@ -6826,6 +6826,7 @@ class WebRtcMt$1 {
|
|
|
6826
6826
|
}
|
|
6827
6827
|
// 播放
|
|
6828
6828
|
play(videoElm) {
|
|
6829
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6829
6830
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6830
6831
|
const {
|
|
6831
6832
|
sdpUrl
|
|
@@ -7322,18 +7323,20 @@ function getIframeUrl(url) {
|
|
|
7322
7323
|
async function checkIframeUrl(url) {
|
|
7323
7324
|
const iframeUrl = getIframeUrl(url);
|
|
7324
7325
|
let code = 200;
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
code
|
|
7326
|
+
if (url.indexOf("noCheck") === -1) {
|
|
7327
|
+
try {
|
|
7328
|
+
const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
|
|
7329
|
+
headers: getCommonHeaders()
|
|
7330
|
+
});
|
|
7331
|
+
if (res.status !== 404) {
|
|
7332
|
+
const json = await res.json();
|
|
7333
|
+
code = json.data;
|
|
7334
|
+
if (json.code === "M5001") {
|
|
7335
|
+
code = 500;
|
|
7336
|
+
}
|
|
7334
7337
|
}
|
|
7335
|
-
}
|
|
7336
|
-
}
|
|
7338
|
+
} catch (e) {}
|
|
7339
|
+
}
|
|
7337
7340
|
return code;
|
|
7338
7341
|
}
|
|
7339
7342
|
|
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.123";
|
|
15
15
|
|
|
16
16
|
declare const _default$p: {
|
|
17
17
|
set(theme: string): void;
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
|
|
|
13
13
|
import { marked } from 'marked';
|
|
14
14
|
import '@sszj-temp/mobile/style.css';
|
|
15
15
|
|
|
16
|
-
var version = "0.1.
|
|
16
|
+
var version = "0.1.123";
|
|
17
17
|
|
|
18
18
|
const setTheme = theme => {
|
|
19
19
|
if (theme === "dark") {
|
|
@@ -6779,7 +6779,7 @@ class WebRtcMt$1 {
|
|
|
6779
6779
|
this.rePlay(videoElm);
|
|
6780
6780
|
});
|
|
6781
6781
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6782
|
-
|
|
6782
|
+
this.log("warn", state);
|
|
6783
6783
|
if (state === "disconnected" || state === "failed") {
|
|
6784
6784
|
this.rePlay(videoElm);
|
|
6785
6785
|
}
|
|
@@ -6796,6 +6796,7 @@ class WebRtcMt$1 {
|
|
|
6796
6796
|
}
|
|
6797
6797
|
// 播放
|
|
6798
6798
|
play(videoElm) {
|
|
6799
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6799
6800
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6800
6801
|
const {
|
|
6801
6802
|
sdpUrl
|
|
@@ -7292,18 +7293,20 @@ function getIframeUrl(url) {
|
|
|
7292
7293
|
async function checkIframeUrl(url) {
|
|
7293
7294
|
const iframeUrl = getIframeUrl(url);
|
|
7294
7295
|
let code = 200;
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
code
|
|
7296
|
+
if (url.indexOf("noCheck") === -1) {
|
|
7297
|
+
try {
|
|
7298
|
+
const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
|
|
7299
|
+
headers: getCommonHeaders()
|
|
7300
|
+
});
|
|
7301
|
+
if (res.status !== 404) {
|
|
7302
|
+
const json = await res.json();
|
|
7303
|
+
code = json.data;
|
|
7304
|
+
if (json.code === "M5001") {
|
|
7305
|
+
code = 500;
|
|
7306
|
+
}
|
|
7304
7307
|
}
|
|
7305
|
-
}
|
|
7306
|
-
}
|
|
7308
|
+
} catch (e) {}
|
|
7309
|
+
}
|
|
7307
7310
|
return code;
|
|
7308
7311
|
}
|
|
7309
7312
|
|
package/dist/tplib/index.cjs
CHANGED
|
@@ -5883,7 +5883,7 @@ class WebRtcMt {
|
|
|
5883
5883
|
this.rePlay(videoElm);
|
|
5884
5884
|
});
|
|
5885
5885
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5886
|
-
|
|
5886
|
+
this.log("warn", state);
|
|
5887
5887
|
if (state === "disconnected" || state === "failed") {
|
|
5888
5888
|
this.rePlay(videoElm);
|
|
5889
5889
|
}
|
|
@@ -5900,6 +5900,7 @@ class WebRtcMt {
|
|
|
5900
5900
|
}
|
|
5901
5901
|
// 播放
|
|
5902
5902
|
play(videoElm) {
|
|
5903
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5903
5904
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5904
5905
|
const {
|
|
5905
5906
|
sdpUrl
|
package/dist/tplib/index.js
CHANGED
|
@@ -5879,7 +5879,7 @@ class WebRtcMt {
|
|
|
5879
5879
|
this.rePlay(videoElm);
|
|
5880
5880
|
});
|
|
5881
5881
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5882
|
-
|
|
5882
|
+
this.log("warn", state);
|
|
5883
5883
|
if (state === "disconnected" || state === "failed") {
|
|
5884
5884
|
this.rePlay(videoElm);
|
|
5885
5885
|
}
|
|
@@ -5896,6 +5896,7 @@ class WebRtcMt {
|
|
|
5896
5896
|
}
|
|
5897
5897
|
// 播放
|
|
5898
5898
|
play(videoElm) {
|
|
5899
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5899
5900
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5900
5901
|
const {
|
|
5901
5902
|
sdpUrl
|
package/dist/video/index.cjs
CHANGED
|
@@ -5888,7 +5888,7 @@ class WebRtcMt$1 {
|
|
|
5888
5888
|
this.rePlay(videoElm);
|
|
5889
5889
|
});
|
|
5890
5890
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5891
|
-
|
|
5891
|
+
this.log("warn", state);
|
|
5892
5892
|
if (state === "disconnected" || state === "failed") {
|
|
5893
5893
|
this.rePlay(videoElm);
|
|
5894
5894
|
}
|
|
@@ -5905,6 +5905,7 @@ class WebRtcMt$1 {
|
|
|
5905
5905
|
}
|
|
5906
5906
|
// 播放
|
|
5907
5907
|
play(videoElm) {
|
|
5908
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5908
5909
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5909
5910
|
const {
|
|
5910
5911
|
sdpUrl
|
package/dist/video/index.js
CHANGED
|
@@ -5862,7 +5862,7 @@ class WebRtcMt$1 {
|
|
|
5862
5862
|
this.rePlay(videoElm);
|
|
5863
5863
|
});
|
|
5864
5864
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5865
|
-
|
|
5865
|
+
this.log("warn", state);
|
|
5866
5866
|
if (state === "disconnected" || state === "failed") {
|
|
5867
5867
|
this.rePlay(videoElm);
|
|
5868
5868
|
}
|
|
@@ -5879,6 +5879,7 @@ class WebRtcMt$1 {
|
|
|
5879
5879
|
}
|
|
5880
5880
|
// 播放
|
|
5881
5881
|
play(videoElm) {
|
|
5882
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5882
5883
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5883
5884
|
const {
|
|
5884
5885
|
sdpUrl
|
|
@@ -5850,7 +5850,7 @@ class WebRtcMt {
|
|
|
5850
5850
|
this.rePlay(videoElm);
|
|
5851
5851
|
});
|
|
5852
5852
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5853
|
-
|
|
5853
|
+
this.log("warn", state);
|
|
5854
5854
|
if (state === "disconnected" || state === "failed") {
|
|
5855
5855
|
this.rePlay(videoElm);
|
|
5856
5856
|
}
|
|
@@ -5867,6 +5867,7 @@ class WebRtcMt {
|
|
|
5867
5867
|
}
|
|
5868
5868
|
// 播放
|
|
5869
5869
|
play(videoElm) {
|
|
5870
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5870
5871
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5871
5872
|
const {
|
|
5872
5873
|
sdpUrl
|
|
@@ -5842,7 +5842,7 @@ class WebRtcMt {
|
|
|
5842
5842
|
this.rePlay(videoElm);
|
|
5843
5843
|
});
|
|
5844
5844
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5845
|
-
|
|
5845
|
+
this.log("warn", state);
|
|
5846
5846
|
if (state === "disconnected" || state === "failed") {
|
|
5847
5847
|
this.rePlay(videoElm);
|
|
5848
5848
|
}
|
|
@@ -5859,6 +5859,7 @@ class WebRtcMt {
|
|
|
5859
5859
|
}
|
|
5860
5860
|
// 播放
|
|
5861
5861
|
play(videoElm) {
|
|
5862
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5862
5863
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5863
5864
|
const {
|
|
5864
5865
|
sdpUrl
|