inl-ui 0.1.78 → 0.1.80
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 +62 -3
- package/dist/components/index.js +62 -3
- package/dist/hooks/index.cjs +50 -2
- package/dist/hooks/index.js +50 -2
- package/dist/index.cjs +4 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/tplib/index.cjs +50 -2
- package/dist/tplib/index.js +50 -2
- package/dist/video/index.cjs +56 -2
- package/dist/video/index.js +56 -2
- package/dist/videoMobile/index.cjs +50 -2
- package/dist/videoMobile/index.js +50 -2
- package/package.json +1 -1
package/dist/hooks/index.cjs
CHANGED
|
@@ -248,6 +248,8 @@ const Events$1 = {
|
|
|
248
248
|
WEBRTC_ON_DATA_CHANNEL_MSG: "WEBRTC_ON_DATA_CHANNEL_MSG",
|
|
249
249
|
CAPTURE_STREAM_FAILED: "CAPTURE_STREAM_FAILED"
|
|
250
250
|
};
|
|
251
|
+
const VERSION$1 = "1.0.1";
|
|
252
|
+
const BUILD_DATE = "Sat Mar 30 2024 13:57:14 GMT+0800 (\u4E2D\u56FD\u6807\u51C6\u65F6\u95F4)";
|
|
251
253
|
function isFirefox() {
|
|
252
254
|
return window.navigator.userAgent.match("Firefox") !== null;
|
|
253
255
|
}
|
|
@@ -277,6 +279,7 @@ class Resolution {
|
|
|
277
279
|
}
|
|
278
280
|
}
|
|
279
281
|
let logDisabled_ = true;
|
|
282
|
+
let deprecationWarnings_ = true;
|
|
280
283
|
function extractVersion(uastring, expr, pos) {
|
|
281
284
|
const match = uastring.match(expr);
|
|
282
285
|
return match && match.length >= pos && parseInt(match[pos], 10);
|
|
@@ -354,6 +357,7 @@ function disableWarnings(bool) {
|
|
|
354
357
|
if (typeof bool !== "boolean") {
|
|
355
358
|
return new Error("Argument type: " + typeof bool + ". Please use a boolean.");
|
|
356
359
|
}
|
|
360
|
+
deprecationWarnings_ = !bool;
|
|
357
361
|
return "adapter.js deprecation warnings " + (bool ? "disabled" : "enabled");
|
|
358
362
|
}
|
|
359
363
|
function log$1() {
|
|
@@ -361,8 +365,17 @@ function log$1() {
|
|
|
361
365
|
if (logDisabled_) {
|
|
362
366
|
return;
|
|
363
367
|
}
|
|
368
|
+
if (typeof console !== "undefined" && typeof console.log === "function") {
|
|
369
|
+
console.log.apply(console, arguments);
|
|
370
|
+
}
|
|
364
371
|
}
|
|
365
372
|
}
|
|
373
|
+
function deprecated(oldMethod, newMethod) {
|
|
374
|
+
if (!deprecationWarnings_) {
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
console.warn(oldMethod + " is deprecated, please use " + newMethod + " instead.");
|
|
378
|
+
}
|
|
366
379
|
function detectBrowser(window2) {
|
|
367
380
|
const result = {
|
|
368
381
|
browser: null,
|
|
@@ -621,6 +634,7 @@ function shimGetDisplayMedia$2(window2, getSourceId) {
|
|
|
621
634
|
return;
|
|
622
635
|
}
|
|
623
636
|
if (typeof getSourceId !== "function") {
|
|
637
|
+
console.error("shimGetDisplayMedia: getSourceId argument is not a function");
|
|
624
638
|
return;
|
|
625
639
|
}
|
|
626
640
|
window2.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {
|
|
@@ -1206,7 +1220,9 @@ function filterIceServers$1(iceServers, edgeVersion) {
|
|
|
1206
1220
|
return iceServers.filter(server => {
|
|
1207
1221
|
if (server && (server.urls || server.url)) {
|
|
1208
1222
|
let urls = server.urls || server.url;
|
|
1209
|
-
if (server.url && !server.urls)
|
|
1223
|
+
if (server.url && !server.urls) {
|
|
1224
|
+
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
1225
|
+
}
|
|
1210
1226
|
const isString2 = typeof urls === "string";
|
|
1211
1227
|
if (isString2) {
|
|
1212
1228
|
urls = [urls];
|
|
@@ -1878,7 +1894,9 @@ function filterIceServers(iceServers, edgeVersion) {
|
|
|
1878
1894
|
return iceServers.filter(function (server) {
|
|
1879
1895
|
if (server && (server.urls || server.url)) {
|
|
1880
1896
|
var urls = server.urls || server.url;
|
|
1881
|
-
if (server.url && !server.urls)
|
|
1897
|
+
if (server.url && !server.urls) {
|
|
1898
|
+
console.warn("RTCIceServer.url is deprecated! Use urls instead.");
|
|
1899
|
+
}
|
|
1882
1900
|
var isString2 = typeof urls === "string";
|
|
1883
1901
|
if (isString2) {
|
|
1884
1902
|
urls = [urls];
|
|
@@ -2737,6 +2755,7 @@ var rtcpeerconnection = function (window2, edgeVersion) {
|
|
|
2737
2755
|
}
|
|
2738
2756
|
pc.transceivers.forEach(function (transceiver) {
|
|
2739
2757
|
if (transceiver.iceTransport && transceiver.iceTransport.state === "new" && transceiver.iceTransport.getRemoteCandidates().length > 0) {
|
|
2758
|
+
console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification");
|
|
2740
2759
|
transceiver.iceTransport.addRemoteCandidate({});
|
|
2741
2760
|
}
|
|
2742
2761
|
});
|
|
@@ -3319,6 +3338,7 @@ function shimGetUserMedia$1(window2, browserDetails) {
|
|
|
3319
3338
|
const navigator2 = window2 && window2.navigator;
|
|
3320
3339
|
const MediaStreamTrack = window2 && window2.MediaStreamTrack;
|
|
3321
3340
|
navigator2.getUserMedia = function (constraints, onSuccess, onError) {
|
|
3341
|
+
deprecated("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia");
|
|
3322
3342
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
|
3323
3343
|
};
|
|
3324
3344
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
|
@@ -3499,6 +3519,7 @@ function shimRemoveStream(window2) {
|
|
|
3499
3519
|
return;
|
|
3500
3520
|
}
|
|
3501
3521
|
window2.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
|
|
3522
|
+
deprecated("removeStream", "removeTrack");
|
|
3502
3523
|
this.getSenders().forEach(sender => {
|
|
3503
3524
|
if (sender.track && stream.getTracks().includes(sender.track)) {
|
|
3504
3525
|
this.removeTrack(sender);
|
|
@@ -3830,6 +3851,7 @@ function shimRTCIceServerUrls(window2) {
|
|
|
3830
3851
|
for (let i = 0; i < pcConfig.iceServers.length; i++) {
|
|
3831
3852
|
let server = pcConfig.iceServers[i];
|
|
3832
3853
|
if (!server.hasOwnProperty("urls") && server.hasOwnProperty("url")) {
|
|
3854
|
+
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
3833
3855
|
server = JSON.parse(JSON.stringify(server));
|
|
3834
3856
|
server.urls = server.url;
|
|
3835
3857
|
delete server.url;
|
|
@@ -4209,6 +4231,7 @@ function adapterFactory({
|
|
|
4209
4231
|
shimEdge: true,
|
|
4210
4232
|
shimSafari: true
|
|
4211
4233
|
}) {
|
|
4234
|
+
const logging2 = log$1;
|
|
4212
4235
|
const browserDetails = detectBrowser(window2);
|
|
4213
4236
|
const adapter = {
|
|
4214
4237
|
browserDetails,
|
|
@@ -4220,11 +4243,14 @@ function adapterFactory({
|
|
|
4220
4243
|
switch (browserDetails.browser) {
|
|
4221
4244
|
case "chrome":
|
|
4222
4245
|
if (!chromeShim || !shimPeerConnection$2 || !options.shimChrome) {
|
|
4246
|
+
logging2("Chrome shim is not included in this adapter release.");
|
|
4223
4247
|
return adapter;
|
|
4224
4248
|
}
|
|
4225
4249
|
if (browserDetails.version === null) {
|
|
4250
|
+
logging2("Chrome shim can not determine version, not shimming.");
|
|
4226
4251
|
return adapter;
|
|
4227
4252
|
}
|
|
4253
|
+
logging2("adapter.js shimming chrome.");
|
|
4228
4254
|
adapter.browserShim = chromeShim;
|
|
4229
4255
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4230
4256
|
shimGetUserMedia$3(window2, browserDetails);
|
|
@@ -4244,8 +4270,10 @@ function adapterFactory({
|
|
|
4244
4270
|
break;
|
|
4245
4271
|
case "firefox":
|
|
4246
4272
|
if (!firefoxShim || !shimPeerConnection || !options.shimFirefox) {
|
|
4273
|
+
logging2("Firefox shim is not included in this adapter release.");
|
|
4247
4274
|
return adapter;
|
|
4248
4275
|
}
|
|
4276
|
+
logging2("adapter.js shimming firefox.");
|
|
4249
4277
|
adapter.browserShim = firefoxShim;
|
|
4250
4278
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4251
4279
|
shimGetUserMedia$1(window2, browserDetails);
|
|
@@ -4266,8 +4294,10 @@ function adapterFactory({
|
|
|
4266
4294
|
break;
|
|
4267
4295
|
case "edge":
|
|
4268
4296
|
if (!edgeShim || !shimPeerConnection$1 || !options.shimEdge) {
|
|
4297
|
+
logging2("MS edge shim is not included in this adapter release.");
|
|
4269
4298
|
return adapter;
|
|
4270
4299
|
}
|
|
4300
|
+
logging2("adapter.js shimming edge.");
|
|
4271
4301
|
adapter.browserShim = edgeShim;
|
|
4272
4302
|
shimGetUserMedia$2(window2);
|
|
4273
4303
|
shimGetDisplayMedia$1(window2);
|
|
@@ -4278,8 +4308,10 @@ function adapterFactory({
|
|
|
4278
4308
|
break;
|
|
4279
4309
|
case "safari":
|
|
4280
4310
|
if (!safariShim || !options.shimSafari) {
|
|
4311
|
+
logging2("Safari shim is not included in this adapter release.");
|
|
4281
4312
|
return adapter;
|
|
4282
4313
|
}
|
|
4314
|
+
logging2("adapter.js shimming safari.");
|
|
4283
4315
|
adapter.browserShim = safariShim;
|
|
4284
4316
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4285
4317
|
shimRTCIceServerUrls(window2);
|
|
@@ -4295,6 +4327,9 @@ function adapterFactory({
|
|
|
4295
4327
|
shimSendThrowTypeError(window2);
|
|
4296
4328
|
removeExtmapAllowMixed(window2, browserDetails);
|
|
4297
4329
|
break;
|
|
4330
|
+
default:
|
|
4331
|
+
logging2("Unsupported browser!");
|
|
4332
|
+
break;
|
|
4298
4333
|
}
|
|
4299
4334
|
return adapter;
|
|
4300
4335
|
}
|
|
@@ -5373,6 +5408,7 @@ validators$1.transitional = function transitional2(validator2, version, message)
|
|
|
5373
5408
|
}
|
|
5374
5409
|
if (version && !deprecatedWarnings[opt]) {
|
|
5375
5410
|
deprecatedWarnings[opt] = true;
|
|
5411
|
+
console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
|
|
5376
5412
|
}
|
|
5377
5413
|
return validator2 ? validator2(value, opt, opts) : true;
|
|
5378
5414
|
};
|
|
@@ -5904,6 +5940,8 @@ class RTCEndpoint extends Event$1 {
|
|
|
5904
5940
|
return this._localStream;
|
|
5905
5941
|
}
|
|
5906
5942
|
}
|
|
5943
|
+
console.log("build date:", BUILD_DATE);
|
|
5944
|
+
console.log("version:", VERSION$1);
|
|
5907
5945
|
const Events = Events$1;
|
|
5908
5946
|
const Endpoint = RTCEndpoint;
|
|
5909
5947
|
|
|
@@ -6011,6 +6049,7 @@ class WebRtcMt {
|
|
|
6011
6049
|
if (res.code === 0) {
|
|
6012
6050
|
this.startPlay(plays);
|
|
6013
6051
|
} else {
|
|
6052
|
+
console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
|
|
6014
6053
|
setTimeout(() => {
|
|
6015
6054
|
this.rePlay();
|
|
6016
6055
|
}, 3 * 60 * 1e3);
|
|
@@ -6018,6 +6057,7 @@ class WebRtcMt {
|
|
|
6018
6057
|
resolve(res);
|
|
6019
6058
|
});
|
|
6020
6059
|
}).catch(err => {
|
|
6060
|
+
console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
|
|
6021
6061
|
setTimeout(() => {
|
|
6022
6062
|
this.rePlay();
|
|
6023
6063
|
}, 3 * 60 * 1e3);
|
|
@@ -6028,6 +6068,11 @@ class WebRtcMt {
|
|
|
6028
6068
|
switch (type) {
|
|
6029
6069
|
case "err":
|
|
6030
6070
|
throw new Error(text);
|
|
6071
|
+
case "warn":
|
|
6072
|
+
console.log(text);
|
|
6073
|
+
break;
|
|
6074
|
+
default:
|
|
6075
|
+
console.log(text);
|
|
6031
6076
|
}
|
|
6032
6077
|
}
|
|
6033
6078
|
// 停止播放0
|
|
@@ -6071,6 +6116,7 @@ class WebRtcMt {
|
|
|
6071
6116
|
this.rePlay(videoElm);
|
|
6072
6117
|
});
|
|
6073
6118
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6119
|
+
console.log("webrtc:" + state);
|
|
6074
6120
|
if (state === "disconnected" || state === "failed") {
|
|
6075
6121
|
this.rePlay(videoElm);
|
|
6076
6122
|
}
|
|
@@ -6078,8 +6124,10 @@ class WebRtcMt {
|
|
|
6078
6124
|
}
|
|
6079
6125
|
// 重播
|
|
6080
6126
|
rePlay(videoElm) {
|
|
6127
|
+
console.log("\u5E95\u90E8\u505C\u6B62\u64AD\u653E");
|
|
6081
6128
|
this.stopPlay();
|
|
6082
6129
|
setTimeout(() => {
|
|
6130
|
+
console.log("\u5E95\u90E8\u91CD\u64AD");
|
|
6083
6131
|
this.init(this.opt);
|
|
6084
6132
|
}, 5 * 1e3);
|
|
6085
6133
|
}
|
package/dist/hooks/index.js
CHANGED
|
@@ -239,6 +239,8 @@ const Events$1 = {
|
|
|
239
239
|
WEBRTC_ON_DATA_CHANNEL_MSG: "WEBRTC_ON_DATA_CHANNEL_MSG",
|
|
240
240
|
CAPTURE_STREAM_FAILED: "CAPTURE_STREAM_FAILED"
|
|
241
241
|
};
|
|
242
|
+
const VERSION$1 = "1.0.1";
|
|
243
|
+
const BUILD_DATE = "Sat Mar 30 2024 13:57:14 GMT+0800 (\u4E2D\u56FD\u6807\u51C6\u65F6\u95F4)";
|
|
242
244
|
function isFirefox() {
|
|
243
245
|
return window.navigator.userAgent.match("Firefox") !== null;
|
|
244
246
|
}
|
|
@@ -268,6 +270,7 @@ class Resolution {
|
|
|
268
270
|
}
|
|
269
271
|
}
|
|
270
272
|
let logDisabled_ = true;
|
|
273
|
+
let deprecationWarnings_ = true;
|
|
271
274
|
function extractVersion(uastring, expr, pos) {
|
|
272
275
|
const match = uastring.match(expr);
|
|
273
276
|
return match && match.length >= pos && parseInt(match[pos], 10);
|
|
@@ -345,6 +348,7 @@ function disableWarnings(bool) {
|
|
|
345
348
|
if (typeof bool !== "boolean") {
|
|
346
349
|
return new Error("Argument type: " + typeof bool + ". Please use a boolean.");
|
|
347
350
|
}
|
|
351
|
+
deprecationWarnings_ = !bool;
|
|
348
352
|
return "adapter.js deprecation warnings " + (bool ? "disabled" : "enabled");
|
|
349
353
|
}
|
|
350
354
|
function log$1() {
|
|
@@ -352,8 +356,17 @@ function log$1() {
|
|
|
352
356
|
if (logDisabled_) {
|
|
353
357
|
return;
|
|
354
358
|
}
|
|
359
|
+
if (typeof console !== "undefined" && typeof console.log === "function") {
|
|
360
|
+
console.log.apply(console, arguments);
|
|
361
|
+
}
|
|
355
362
|
}
|
|
356
363
|
}
|
|
364
|
+
function deprecated(oldMethod, newMethod) {
|
|
365
|
+
if (!deprecationWarnings_) {
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
368
|
+
console.warn(oldMethod + " is deprecated, please use " + newMethod + " instead.");
|
|
369
|
+
}
|
|
357
370
|
function detectBrowser(window2) {
|
|
358
371
|
const result = {
|
|
359
372
|
browser: null,
|
|
@@ -612,6 +625,7 @@ function shimGetDisplayMedia$2(window2, getSourceId) {
|
|
|
612
625
|
return;
|
|
613
626
|
}
|
|
614
627
|
if (typeof getSourceId !== "function") {
|
|
628
|
+
console.error("shimGetDisplayMedia: getSourceId argument is not a function");
|
|
615
629
|
return;
|
|
616
630
|
}
|
|
617
631
|
window2.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {
|
|
@@ -1197,7 +1211,9 @@ function filterIceServers$1(iceServers, edgeVersion) {
|
|
|
1197
1211
|
return iceServers.filter(server => {
|
|
1198
1212
|
if (server && (server.urls || server.url)) {
|
|
1199
1213
|
let urls = server.urls || server.url;
|
|
1200
|
-
if (server.url && !server.urls)
|
|
1214
|
+
if (server.url && !server.urls) {
|
|
1215
|
+
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
1216
|
+
}
|
|
1201
1217
|
const isString2 = typeof urls === "string";
|
|
1202
1218
|
if (isString2) {
|
|
1203
1219
|
urls = [urls];
|
|
@@ -1869,7 +1885,9 @@ function filterIceServers(iceServers, edgeVersion) {
|
|
|
1869
1885
|
return iceServers.filter(function (server) {
|
|
1870
1886
|
if (server && (server.urls || server.url)) {
|
|
1871
1887
|
var urls = server.urls || server.url;
|
|
1872
|
-
if (server.url && !server.urls)
|
|
1888
|
+
if (server.url && !server.urls) {
|
|
1889
|
+
console.warn("RTCIceServer.url is deprecated! Use urls instead.");
|
|
1890
|
+
}
|
|
1873
1891
|
var isString2 = typeof urls === "string";
|
|
1874
1892
|
if (isString2) {
|
|
1875
1893
|
urls = [urls];
|
|
@@ -2728,6 +2746,7 @@ var rtcpeerconnection = function (window2, edgeVersion) {
|
|
|
2728
2746
|
}
|
|
2729
2747
|
pc.transceivers.forEach(function (transceiver) {
|
|
2730
2748
|
if (transceiver.iceTransport && transceiver.iceTransport.state === "new" && transceiver.iceTransport.getRemoteCandidates().length > 0) {
|
|
2749
|
+
console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification");
|
|
2731
2750
|
transceiver.iceTransport.addRemoteCandidate({});
|
|
2732
2751
|
}
|
|
2733
2752
|
});
|
|
@@ -3310,6 +3329,7 @@ function shimGetUserMedia$1(window2, browserDetails) {
|
|
|
3310
3329
|
const navigator2 = window2 && window2.navigator;
|
|
3311
3330
|
const MediaStreamTrack = window2 && window2.MediaStreamTrack;
|
|
3312
3331
|
navigator2.getUserMedia = function (constraints, onSuccess, onError) {
|
|
3332
|
+
deprecated("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia");
|
|
3313
3333
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
|
3314
3334
|
};
|
|
3315
3335
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
|
@@ -3490,6 +3510,7 @@ function shimRemoveStream(window2) {
|
|
|
3490
3510
|
return;
|
|
3491
3511
|
}
|
|
3492
3512
|
window2.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
|
|
3513
|
+
deprecated("removeStream", "removeTrack");
|
|
3493
3514
|
this.getSenders().forEach(sender => {
|
|
3494
3515
|
if (sender.track && stream.getTracks().includes(sender.track)) {
|
|
3495
3516
|
this.removeTrack(sender);
|
|
@@ -3821,6 +3842,7 @@ function shimRTCIceServerUrls(window2) {
|
|
|
3821
3842
|
for (let i = 0; i < pcConfig.iceServers.length; i++) {
|
|
3822
3843
|
let server = pcConfig.iceServers[i];
|
|
3823
3844
|
if (!server.hasOwnProperty("urls") && server.hasOwnProperty("url")) {
|
|
3845
|
+
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
3824
3846
|
server = JSON.parse(JSON.stringify(server));
|
|
3825
3847
|
server.urls = server.url;
|
|
3826
3848
|
delete server.url;
|
|
@@ -4200,6 +4222,7 @@ function adapterFactory({
|
|
|
4200
4222
|
shimEdge: true,
|
|
4201
4223
|
shimSafari: true
|
|
4202
4224
|
}) {
|
|
4225
|
+
const logging2 = log$1;
|
|
4203
4226
|
const browserDetails = detectBrowser(window2);
|
|
4204
4227
|
const adapter = {
|
|
4205
4228
|
browserDetails,
|
|
@@ -4211,11 +4234,14 @@ function adapterFactory({
|
|
|
4211
4234
|
switch (browserDetails.browser) {
|
|
4212
4235
|
case "chrome":
|
|
4213
4236
|
if (!chromeShim || !shimPeerConnection$2 || !options.shimChrome) {
|
|
4237
|
+
logging2("Chrome shim is not included in this adapter release.");
|
|
4214
4238
|
return adapter;
|
|
4215
4239
|
}
|
|
4216
4240
|
if (browserDetails.version === null) {
|
|
4241
|
+
logging2("Chrome shim can not determine version, not shimming.");
|
|
4217
4242
|
return adapter;
|
|
4218
4243
|
}
|
|
4244
|
+
logging2("adapter.js shimming chrome.");
|
|
4219
4245
|
adapter.browserShim = chromeShim;
|
|
4220
4246
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4221
4247
|
shimGetUserMedia$3(window2, browserDetails);
|
|
@@ -4235,8 +4261,10 @@ function adapterFactory({
|
|
|
4235
4261
|
break;
|
|
4236
4262
|
case "firefox":
|
|
4237
4263
|
if (!firefoxShim || !shimPeerConnection || !options.shimFirefox) {
|
|
4264
|
+
logging2("Firefox shim is not included in this adapter release.");
|
|
4238
4265
|
return adapter;
|
|
4239
4266
|
}
|
|
4267
|
+
logging2("adapter.js shimming firefox.");
|
|
4240
4268
|
adapter.browserShim = firefoxShim;
|
|
4241
4269
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4242
4270
|
shimGetUserMedia$1(window2, browserDetails);
|
|
@@ -4257,8 +4285,10 @@ function adapterFactory({
|
|
|
4257
4285
|
break;
|
|
4258
4286
|
case "edge":
|
|
4259
4287
|
if (!edgeShim || !shimPeerConnection$1 || !options.shimEdge) {
|
|
4288
|
+
logging2("MS edge shim is not included in this adapter release.");
|
|
4260
4289
|
return adapter;
|
|
4261
4290
|
}
|
|
4291
|
+
logging2("adapter.js shimming edge.");
|
|
4262
4292
|
adapter.browserShim = edgeShim;
|
|
4263
4293
|
shimGetUserMedia$2(window2);
|
|
4264
4294
|
shimGetDisplayMedia$1(window2);
|
|
@@ -4269,8 +4299,10 @@ function adapterFactory({
|
|
|
4269
4299
|
break;
|
|
4270
4300
|
case "safari":
|
|
4271
4301
|
if (!safariShim || !options.shimSafari) {
|
|
4302
|
+
logging2("Safari shim is not included in this adapter release.");
|
|
4272
4303
|
return adapter;
|
|
4273
4304
|
}
|
|
4305
|
+
logging2("adapter.js shimming safari.");
|
|
4274
4306
|
adapter.browserShim = safariShim;
|
|
4275
4307
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4276
4308
|
shimRTCIceServerUrls(window2);
|
|
@@ -4286,6 +4318,9 @@ function adapterFactory({
|
|
|
4286
4318
|
shimSendThrowTypeError(window2);
|
|
4287
4319
|
removeExtmapAllowMixed(window2, browserDetails);
|
|
4288
4320
|
break;
|
|
4321
|
+
default:
|
|
4322
|
+
logging2("Unsupported browser!");
|
|
4323
|
+
break;
|
|
4289
4324
|
}
|
|
4290
4325
|
return adapter;
|
|
4291
4326
|
}
|
|
@@ -5364,6 +5399,7 @@ validators$1.transitional = function transitional2(validator2, version, message)
|
|
|
5364
5399
|
}
|
|
5365
5400
|
if (version && !deprecatedWarnings[opt]) {
|
|
5366
5401
|
deprecatedWarnings[opt] = true;
|
|
5402
|
+
console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
|
|
5367
5403
|
}
|
|
5368
5404
|
return validator2 ? validator2(value, opt, opts) : true;
|
|
5369
5405
|
};
|
|
@@ -5895,6 +5931,8 @@ class RTCEndpoint extends Event$1 {
|
|
|
5895
5931
|
return this._localStream;
|
|
5896
5932
|
}
|
|
5897
5933
|
}
|
|
5934
|
+
console.log("build date:", BUILD_DATE);
|
|
5935
|
+
console.log("version:", VERSION$1);
|
|
5898
5936
|
const Events = Events$1;
|
|
5899
5937
|
const Endpoint = RTCEndpoint;
|
|
5900
5938
|
|
|
@@ -6002,6 +6040,7 @@ class WebRtcMt {
|
|
|
6002
6040
|
if (res.code === 0) {
|
|
6003
6041
|
this.startPlay(plays);
|
|
6004
6042
|
} else {
|
|
6043
|
+
console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
|
|
6005
6044
|
setTimeout(() => {
|
|
6006
6045
|
this.rePlay();
|
|
6007
6046
|
}, 3 * 60 * 1e3);
|
|
@@ -6009,6 +6048,7 @@ class WebRtcMt {
|
|
|
6009
6048
|
resolve(res);
|
|
6010
6049
|
});
|
|
6011
6050
|
}).catch(err => {
|
|
6051
|
+
console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
|
|
6012
6052
|
setTimeout(() => {
|
|
6013
6053
|
this.rePlay();
|
|
6014
6054
|
}, 3 * 60 * 1e3);
|
|
@@ -6019,6 +6059,11 @@ class WebRtcMt {
|
|
|
6019
6059
|
switch (type) {
|
|
6020
6060
|
case "err":
|
|
6021
6061
|
throw new Error(text);
|
|
6062
|
+
case "warn":
|
|
6063
|
+
console.log(text);
|
|
6064
|
+
break;
|
|
6065
|
+
default:
|
|
6066
|
+
console.log(text);
|
|
6022
6067
|
}
|
|
6023
6068
|
}
|
|
6024
6069
|
// 停止播放0
|
|
@@ -6062,6 +6107,7 @@ class WebRtcMt {
|
|
|
6062
6107
|
this.rePlay(videoElm);
|
|
6063
6108
|
});
|
|
6064
6109
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6110
|
+
console.log("webrtc:" + state);
|
|
6065
6111
|
if (state === "disconnected" || state === "failed") {
|
|
6066
6112
|
this.rePlay(videoElm);
|
|
6067
6113
|
}
|
|
@@ -6069,8 +6115,10 @@ class WebRtcMt {
|
|
|
6069
6115
|
}
|
|
6070
6116
|
// 重播
|
|
6071
6117
|
rePlay(videoElm) {
|
|
6118
|
+
console.log("\u5E95\u90E8\u505C\u6B62\u64AD\u653E");
|
|
6072
6119
|
this.stopPlay();
|
|
6073
6120
|
setTimeout(() => {
|
|
6121
|
+
console.log("\u5E95\u90E8\u91CD\u64AD");
|
|
6074
6122
|
this.init(this.opt);
|
|
6075
6123
|
}, 5 * 1e3);
|
|
6076
6124
|
}
|
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.79";
|
|
47
47
|
|
|
48
48
|
const setTheme = theme => {
|
|
49
49
|
if (theme === "dark") {
|
|
@@ -7659,7 +7659,7 @@ function useMicroApp(appList) {
|
|
|
7659
7659
|
const handleRouteChange = core.useThrottleFn(async () => {
|
|
7660
7660
|
const microAppName = activeAppName.value;
|
|
7661
7661
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
7662
|
-
|
|
7662
|
+
console.log(555555555555555, activeAppName.value);
|
|
7663
7663
|
const domId = `microApp_${microAppName}`;
|
|
7664
7664
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
7665
7665
|
appContainerList.value.push({
|
|
@@ -8200,6 +8200,7 @@ const PageContent = vue.defineComponent({
|
|
|
8200
8200
|
iframeList.value.splice(idx, 1);
|
|
8201
8201
|
}
|
|
8202
8202
|
};
|
|
8203
|
+
console.log(loadAppList, appDomList, 777777777777777);
|
|
8203
8204
|
const extraPageList = vue.ref([]);
|
|
8204
8205
|
const handleExtraPageClose = tab => {
|
|
8205
8206
|
const idx = extraPageList.value.findIndex(item => item.key === tab.key && item.uniqueKey === tab.uniqueKey);
|
|
@@ -8325,6 +8326,7 @@ const PageContent = vue.defineComponent({
|
|
|
8325
8326
|
};
|
|
8326
8327
|
const activeMenu = useActiveMenu(() => props.menu, props.extraPages, false, false, extraIframeList);
|
|
8327
8328
|
vue.watch(activeMenu, (val, oldVal) => {
|
|
8329
|
+
console.log(val, oldVal, 888888888);
|
|
8328
8330
|
handleMenuChange(val);
|
|
8329
8331
|
function postIframeActive(id, active) {
|
|
8330
8332
|
const iframeEl = document.querySelector(`#iframe${id}`);
|
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.79";
|
|
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.79";
|
|
17
17
|
|
|
18
18
|
const setTheme = theme => {
|
|
19
19
|
if (theme === "dark") {
|
|
@@ -7629,7 +7629,7 @@ function useMicroApp(appList) {
|
|
|
7629
7629
|
const handleRouteChange = useThrottleFn(async () => {
|
|
7630
7630
|
const microAppName = activeAppName.value;
|
|
7631
7631
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
7632
|
-
|
|
7632
|
+
console.log(555555555555555, activeAppName.value);
|
|
7633
7633
|
const domId = `microApp_${microAppName}`;
|
|
7634
7634
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
7635
7635
|
appContainerList.value.push({
|
|
@@ -8170,6 +8170,7 @@ const PageContent = defineComponent({
|
|
|
8170
8170
|
iframeList.value.splice(idx, 1);
|
|
8171
8171
|
}
|
|
8172
8172
|
};
|
|
8173
|
+
console.log(loadAppList, appDomList, 777777777777777);
|
|
8173
8174
|
const extraPageList = ref([]);
|
|
8174
8175
|
const handleExtraPageClose = tab => {
|
|
8175
8176
|
const idx = extraPageList.value.findIndex(item => item.key === tab.key && item.uniqueKey === tab.uniqueKey);
|
|
@@ -8295,6 +8296,7 @@ const PageContent = defineComponent({
|
|
|
8295
8296
|
};
|
|
8296
8297
|
const activeMenu = useActiveMenu(() => props.menu, props.extraPages, false, false, extraIframeList);
|
|
8297
8298
|
watch(activeMenu, (val, oldVal) => {
|
|
8299
|
+
console.log(val, oldVal, 888888888);
|
|
8298
8300
|
handleMenuChange(val);
|
|
8299
8301
|
function postIframeActive(id, active) {
|
|
8300
8302
|
const iframeEl = document.querySelector(`#iframe${id}`);
|