inl-ui 0.1.79 → 0.1.81
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 +64 -3
- package/dist/components/index.js +64 -3
- package/dist/hooks/index.cjs +50 -2
- package/dist/hooks/index.js +50 -2
- package/dist/index.cjs +65 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +65 -4
- 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
|
@@ -535,6 +535,7 @@ const SideMenu$1 = vue.defineComponent({
|
|
|
535
535
|
function useActiveApp() {
|
|
536
536
|
const route = vueRouter.useRoute();
|
|
537
537
|
const activeAppName = vue.computed(() => {
|
|
538
|
+
console.log(4444444444, route);
|
|
538
539
|
return route.path.split("/")[1];
|
|
539
540
|
});
|
|
540
541
|
return activeAppName;
|
|
@@ -543,12 +544,13 @@ function useActiveApp() {
|
|
|
543
544
|
const loadedApp = /* @__PURE__ */new Map();
|
|
544
545
|
function useMicroApp(appList) {
|
|
545
546
|
const route = vueRouter.useRoute();
|
|
546
|
-
const activeAppName = useActiveApp();
|
|
547
547
|
const loadAppList = vue.ref(Array.from(loadedApp.values()));
|
|
548
548
|
const appContainerList = vue.ref([]);
|
|
549
549
|
const handleRouteChange = core.useThrottleFn(async () => {
|
|
550
|
+
const activeAppName = useActiveApp();
|
|
550
551
|
const microAppName = activeAppName.value;
|
|
551
552
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
553
|
+
console.log(555555555555555, activeAppName.value);
|
|
552
554
|
const domId = `microApp_${microAppName}`;
|
|
553
555
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
554
556
|
appContainerList.value.push({
|
|
@@ -674,6 +676,8 @@ const Events$1 = {
|
|
|
674
676
|
WEBRTC_ON_DATA_CHANNEL_MSG: "WEBRTC_ON_DATA_CHANNEL_MSG",
|
|
675
677
|
CAPTURE_STREAM_FAILED: "CAPTURE_STREAM_FAILED"
|
|
676
678
|
};
|
|
679
|
+
const VERSION$1 = "1.0.1";
|
|
680
|
+
const BUILD_DATE = "Sat Mar 30 2024 13:57:14 GMT+0800 (\u4E2D\u56FD\u6807\u51C6\u65F6\u95F4)";
|
|
677
681
|
function isFirefox() {
|
|
678
682
|
return window.navigator.userAgent.match("Firefox") !== null;
|
|
679
683
|
}
|
|
@@ -703,6 +707,7 @@ class Resolution {
|
|
|
703
707
|
}
|
|
704
708
|
}
|
|
705
709
|
let logDisabled_ = true;
|
|
710
|
+
let deprecationWarnings_ = true;
|
|
706
711
|
function extractVersion(uastring, expr, pos) {
|
|
707
712
|
const match = uastring.match(expr);
|
|
708
713
|
return match && match.length >= pos && parseInt(match[pos], 10);
|
|
@@ -780,6 +785,7 @@ function disableWarnings(bool) {
|
|
|
780
785
|
if (typeof bool !== "boolean") {
|
|
781
786
|
return new Error("Argument type: " + typeof bool + ". Please use a boolean.");
|
|
782
787
|
}
|
|
788
|
+
deprecationWarnings_ = !bool;
|
|
783
789
|
return "adapter.js deprecation warnings " + (bool ? "disabled" : "enabled");
|
|
784
790
|
}
|
|
785
791
|
function log$1() {
|
|
@@ -787,7 +793,16 @@ function log$1() {
|
|
|
787
793
|
if (logDisabled_) {
|
|
788
794
|
return;
|
|
789
795
|
}
|
|
796
|
+
if (typeof console !== "undefined" && typeof console.log === "function") {
|
|
797
|
+
console.log.apply(console, arguments);
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
function deprecated(oldMethod, newMethod) {
|
|
802
|
+
if (!deprecationWarnings_) {
|
|
803
|
+
return;
|
|
790
804
|
}
|
|
805
|
+
console.warn(oldMethod + " is deprecated, please use " + newMethod + " instead.");
|
|
791
806
|
}
|
|
792
807
|
function detectBrowser(window2) {
|
|
793
808
|
const result = {
|
|
@@ -1047,6 +1062,7 @@ function shimGetDisplayMedia$2(window2, getSourceId) {
|
|
|
1047
1062
|
return;
|
|
1048
1063
|
}
|
|
1049
1064
|
if (typeof getSourceId !== "function") {
|
|
1065
|
+
console.error("shimGetDisplayMedia: getSourceId argument is not a function");
|
|
1050
1066
|
return;
|
|
1051
1067
|
}
|
|
1052
1068
|
window2.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {
|
|
@@ -1632,7 +1648,9 @@ function filterIceServers$1(iceServers, edgeVersion) {
|
|
|
1632
1648
|
return iceServers.filter(server => {
|
|
1633
1649
|
if (server && (server.urls || server.url)) {
|
|
1634
1650
|
let urls = server.urls || server.url;
|
|
1635
|
-
if (server.url && !server.urls)
|
|
1651
|
+
if (server.url && !server.urls) {
|
|
1652
|
+
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
1653
|
+
}
|
|
1636
1654
|
const isString2 = typeof urls === "string";
|
|
1637
1655
|
if (isString2) {
|
|
1638
1656
|
urls = [urls];
|
|
@@ -2304,7 +2322,9 @@ function filterIceServers(iceServers, edgeVersion) {
|
|
|
2304
2322
|
return iceServers.filter(function (server) {
|
|
2305
2323
|
if (server && (server.urls || server.url)) {
|
|
2306
2324
|
var urls = server.urls || server.url;
|
|
2307
|
-
if (server.url && !server.urls)
|
|
2325
|
+
if (server.url && !server.urls) {
|
|
2326
|
+
console.warn("RTCIceServer.url is deprecated! Use urls instead.");
|
|
2327
|
+
}
|
|
2308
2328
|
var isString2 = typeof urls === "string";
|
|
2309
2329
|
if (isString2) {
|
|
2310
2330
|
urls = [urls];
|
|
@@ -3163,6 +3183,7 @@ var rtcpeerconnection = function (window2, edgeVersion) {
|
|
|
3163
3183
|
}
|
|
3164
3184
|
pc.transceivers.forEach(function (transceiver) {
|
|
3165
3185
|
if (transceiver.iceTransport && transceiver.iceTransport.state === "new" && transceiver.iceTransport.getRemoteCandidates().length > 0) {
|
|
3186
|
+
console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification");
|
|
3166
3187
|
transceiver.iceTransport.addRemoteCandidate({});
|
|
3167
3188
|
}
|
|
3168
3189
|
});
|
|
@@ -3745,6 +3766,7 @@ function shimGetUserMedia$1(window2, browserDetails) {
|
|
|
3745
3766
|
const navigator2 = window2 && window2.navigator;
|
|
3746
3767
|
const MediaStreamTrack = window2 && window2.MediaStreamTrack;
|
|
3747
3768
|
navigator2.getUserMedia = function (constraints, onSuccess, onError) {
|
|
3769
|
+
deprecated("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia");
|
|
3748
3770
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
|
3749
3771
|
};
|
|
3750
3772
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
|
@@ -3925,6 +3947,7 @@ function shimRemoveStream(window2) {
|
|
|
3925
3947
|
return;
|
|
3926
3948
|
}
|
|
3927
3949
|
window2.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
|
|
3950
|
+
deprecated("removeStream", "removeTrack");
|
|
3928
3951
|
this.getSenders().forEach(sender => {
|
|
3929
3952
|
if (sender.track && stream.getTracks().includes(sender.track)) {
|
|
3930
3953
|
this.removeTrack(sender);
|
|
@@ -4256,6 +4279,7 @@ function shimRTCIceServerUrls(window2) {
|
|
|
4256
4279
|
for (let i = 0; i < pcConfig.iceServers.length; i++) {
|
|
4257
4280
|
let server = pcConfig.iceServers[i];
|
|
4258
4281
|
if (!server.hasOwnProperty("urls") && server.hasOwnProperty("url")) {
|
|
4282
|
+
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
4259
4283
|
server = JSON.parse(JSON.stringify(server));
|
|
4260
4284
|
server.urls = server.url;
|
|
4261
4285
|
delete server.url;
|
|
@@ -4635,6 +4659,7 @@ function adapterFactory({
|
|
|
4635
4659
|
shimEdge: true,
|
|
4636
4660
|
shimSafari: true
|
|
4637
4661
|
}) {
|
|
4662
|
+
const logging2 = log$1;
|
|
4638
4663
|
const browserDetails = detectBrowser(window2);
|
|
4639
4664
|
const adapter = {
|
|
4640
4665
|
browserDetails,
|
|
@@ -4646,11 +4671,14 @@ function adapterFactory({
|
|
|
4646
4671
|
switch (browserDetails.browser) {
|
|
4647
4672
|
case "chrome":
|
|
4648
4673
|
if (!chromeShim || !shimPeerConnection$2 || !options.shimChrome) {
|
|
4674
|
+
logging2("Chrome shim is not included in this adapter release.");
|
|
4649
4675
|
return adapter;
|
|
4650
4676
|
}
|
|
4651
4677
|
if (browserDetails.version === null) {
|
|
4678
|
+
logging2("Chrome shim can not determine version, not shimming.");
|
|
4652
4679
|
return adapter;
|
|
4653
4680
|
}
|
|
4681
|
+
logging2("adapter.js shimming chrome.");
|
|
4654
4682
|
adapter.browserShim = chromeShim;
|
|
4655
4683
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4656
4684
|
shimGetUserMedia$3(window2, browserDetails);
|
|
@@ -4670,8 +4698,10 @@ function adapterFactory({
|
|
|
4670
4698
|
break;
|
|
4671
4699
|
case "firefox":
|
|
4672
4700
|
if (!firefoxShim || !shimPeerConnection || !options.shimFirefox) {
|
|
4701
|
+
logging2("Firefox shim is not included in this adapter release.");
|
|
4673
4702
|
return adapter;
|
|
4674
4703
|
}
|
|
4704
|
+
logging2("adapter.js shimming firefox.");
|
|
4675
4705
|
adapter.browserShim = firefoxShim;
|
|
4676
4706
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4677
4707
|
shimGetUserMedia$1(window2, browserDetails);
|
|
@@ -4692,8 +4722,10 @@ function adapterFactory({
|
|
|
4692
4722
|
break;
|
|
4693
4723
|
case "edge":
|
|
4694
4724
|
if (!edgeShim || !shimPeerConnection$1 || !options.shimEdge) {
|
|
4725
|
+
logging2("MS edge shim is not included in this adapter release.");
|
|
4695
4726
|
return adapter;
|
|
4696
4727
|
}
|
|
4728
|
+
logging2("adapter.js shimming edge.");
|
|
4697
4729
|
adapter.browserShim = edgeShim;
|
|
4698
4730
|
shimGetUserMedia$2(window2);
|
|
4699
4731
|
shimGetDisplayMedia$1(window2);
|
|
@@ -4704,8 +4736,10 @@ function adapterFactory({
|
|
|
4704
4736
|
break;
|
|
4705
4737
|
case "safari":
|
|
4706
4738
|
if (!safariShim || !options.shimSafari) {
|
|
4739
|
+
logging2("Safari shim is not included in this adapter release.");
|
|
4707
4740
|
return adapter;
|
|
4708
4741
|
}
|
|
4742
|
+
logging2("adapter.js shimming safari.");
|
|
4709
4743
|
adapter.browserShim = safariShim;
|
|
4710
4744
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4711
4745
|
shimRTCIceServerUrls(window2);
|
|
@@ -4721,6 +4755,9 @@ function adapterFactory({
|
|
|
4721
4755
|
shimSendThrowTypeError(window2);
|
|
4722
4756
|
removeExtmapAllowMixed(window2, browserDetails);
|
|
4723
4757
|
break;
|
|
4758
|
+
default:
|
|
4759
|
+
logging2("Unsupported browser!");
|
|
4760
|
+
break;
|
|
4724
4761
|
}
|
|
4725
4762
|
return adapter;
|
|
4726
4763
|
}
|
|
@@ -5799,6 +5836,7 @@ validators$1.transitional = function transitional2(validator2, version, message)
|
|
|
5799
5836
|
}
|
|
5800
5837
|
if (version && !deprecatedWarnings[opt]) {
|
|
5801
5838
|
deprecatedWarnings[opt] = true;
|
|
5839
|
+
console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
|
|
5802
5840
|
}
|
|
5803
5841
|
return validator2 ? validator2(value, opt, opts) : true;
|
|
5804
5842
|
};
|
|
@@ -6330,6 +6368,8 @@ class RTCEndpoint extends Event$1 {
|
|
|
6330
6368
|
return this._localStream;
|
|
6331
6369
|
}
|
|
6332
6370
|
}
|
|
6371
|
+
console.log("build date:", BUILD_DATE);
|
|
6372
|
+
console.log("version:", VERSION$1);
|
|
6333
6373
|
const Events = Events$1;
|
|
6334
6374
|
const Endpoint = RTCEndpoint;
|
|
6335
6375
|
|
|
@@ -6397,6 +6437,7 @@ class WebRtcMt$1 {
|
|
|
6397
6437
|
if (res.code === 0) {
|
|
6398
6438
|
this.startPlay(plays);
|
|
6399
6439
|
} else {
|
|
6440
|
+
console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
|
|
6400
6441
|
setTimeout(() => {
|
|
6401
6442
|
this.rePlay();
|
|
6402
6443
|
}, 3 * 60 * 1e3);
|
|
@@ -6404,6 +6445,7 @@ class WebRtcMt$1 {
|
|
|
6404
6445
|
resolve(res);
|
|
6405
6446
|
});
|
|
6406
6447
|
}).catch(err => {
|
|
6448
|
+
console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
|
|
6407
6449
|
setTimeout(() => {
|
|
6408
6450
|
this.rePlay();
|
|
6409
6451
|
}, 3 * 60 * 1e3);
|
|
@@ -6414,6 +6456,11 @@ class WebRtcMt$1 {
|
|
|
6414
6456
|
switch (type) {
|
|
6415
6457
|
case "err":
|
|
6416
6458
|
throw new Error(text);
|
|
6459
|
+
case "warn":
|
|
6460
|
+
console.log(text);
|
|
6461
|
+
break;
|
|
6462
|
+
default:
|
|
6463
|
+
console.log(text);
|
|
6417
6464
|
}
|
|
6418
6465
|
}
|
|
6419
6466
|
// 停止播放0
|
|
@@ -6457,6 +6504,7 @@ class WebRtcMt$1 {
|
|
|
6457
6504
|
this.rePlay(videoElm);
|
|
6458
6505
|
});
|
|
6459
6506
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6507
|
+
console.log("webrtc:" + state);
|
|
6460
6508
|
if (state === "disconnected" || state === "failed") {
|
|
6461
6509
|
this.rePlay(videoElm);
|
|
6462
6510
|
}
|
|
@@ -6464,8 +6512,10 @@ class WebRtcMt$1 {
|
|
|
6464
6512
|
}
|
|
6465
6513
|
// 重播
|
|
6466
6514
|
rePlay(videoElm) {
|
|
6515
|
+
console.log("\u5E95\u90E8\u505C\u6B62\u64AD\u653E");
|
|
6467
6516
|
this.stopPlay();
|
|
6468
6517
|
setTimeout(() => {
|
|
6518
|
+
console.log("\u5E95\u90E8\u91CD\u64AD");
|
|
6469
6519
|
this.init(this.opt);
|
|
6470
6520
|
}, 5 * 1e3);
|
|
6471
6521
|
}
|
|
@@ -6996,6 +7046,7 @@ const PageContent = vue.defineComponent({
|
|
|
6996
7046
|
iframeList.value.splice(idx, 1);
|
|
6997
7047
|
}
|
|
6998
7048
|
};
|
|
7049
|
+
console.log(loadAppList, appDomList, 777777777777777);
|
|
6999
7050
|
const extraPageList = vue.ref([]);
|
|
7000
7051
|
const handleExtraPageClose = tab => {
|
|
7001
7052
|
const idx = extraPageList.value.findIndex(item => item.key === tab.key && item.uniqueKey === tab.uniqueKey);
|
|
@@ -7121,6 +7172,7 @@ const PageContent = vue.defineComponent({
|
|
|
7121
7172
|
};
|
|
7122
7173
|
const activeMenu = useActiveMenu(() => props.menu, props.extraPages, false, false, extraIframeList);
|
|
7123
7174
|
vue.watch(activeMenu, (val, oldVal) => {
|
|
7175
|
+
console.log(val, oldVal, 888888888);
|
|
7124
7176
|
handleMenuChange(val);
|
|
7125
7177
|
function postIframeActive(id, active) {
|
|
7126
7178
|
const iframeEl = document.querySelector(`#iframe${id}`);
|
|
@@ -10558,6 +10610,7 @@ const CloudVideo = vue.defineComponent({
|
|
|
10558
10610
|
initVideo();
|
|
10559
10611
|
});
|
|
10560
10612
|
vue.onBeforeUnmount(() => {
|
|
10613
|
+
console.log("\u9500\u6BC1");
|
|
10561
10614
|
player?.stop();
|
|
10562
10615
|
});
|
|
10563
10616
|
return () => vue.createVNode("div", {
|
|
@@ -10647,6 +10700,11 @@ class WebRtcMt {
|
|
|
10647
10700
|
switch (type) {
|
|
10648
10701
|
case "err":
|
|
10649
10702
|
throw new Error(text);
|
|
10703
|
+
case "warn":
|
|
10704
|
+
console.warn(text);
|
|
10705
|
+
break;
|
|
10706
|
+
default:
|
|
10707
|
+
console.info(text);
|
|
10650
10708
|
}
|
|
10651
10709
|
}
|
|
10652
10710
|
// 停止播放0
|
|
@@ -13116,6 +13174,7 @@ const SszComment = vue.defineComponent({
|
|
|
13116
13174
|
token,
|
|
13117
13175
|
corpUser
|
|
13118
13176
|
} = await getZxUser(props.zxIp);
|
|
13177
|
+
console.log("corpUser", corpUser);
|
|
13119
13178
|
currentUserId.value = corpUser.id;
|
|
13120
13179
|
mobile.setAxiosOption({
|
|
13121
13180
|
baseURL: props.baseUrl,
|
|
@@ -13133,6 +13192,7 @@ const SszComment = vue.defineComponent({
|
|
|
13133
13192
|
}
|
|
13134
13193
|
});
|
|
13135
13194
|
} catch (e) {
|
|
13195
|
+
console.log(e);
|
|
13136
13196
|
mobile.setAxiosOption({
|
|
13137
13197
|
baseURL: props.baseUrl,
|
|
13138
13198
|
headers: {
|
|
@@ -13789,6 +13849,7 @@ const QaContext = vue.defineComponent({
|
|
|
13789
13849
|
}) {
|
|
13790
13850
|
const containerRef = vue.ref();
|
|
13791
13851
|
const onAnswerRender = text => {
|
|
13852
|
+
console.log("%c%s", "color: #bd08b7;", text);
|
|
13792
13853
|
containerRef.value.scrollTo({
|
|
13793
13854
|
top: containerRef.value.scrollHeight,
|
|
13794
13855
|
behavior: "smooth"
|
package/dist/components/index.js
CHANGED
|
@@ -507,6 +507,7 @@ const SideMenu$1 = defineComponent({
|
|
|
507
507
|
function useActiveApp() {
|
|
508
508
|
const route = useRoute();
|
|
509
509
|
const activeAppName = computed(() => {
|
|
510
|
+
console.log(4444444444, route);
|
|
510
511
|
return route.path.split("/")[1];
|
|
511
512
|
});
|
|
512
513
|
return activeAppName;
|
|
@@ -515,12 +516,13 @@ function useActiveApp() {
|
|
|
515
516
|
const loadedApp = /* @__PURE__ */new Map();
|
|
516
517
|
function useMicroApp(appList) {
|
|
517
518
|
const route = useRoute();
|
|
518
|
-
const activeAppName = useActiveApp();
|
|
519
519
|
const loadAppList = ref(Array.from(loadedApp.values()));
|
|
520
520
|
const appContainerList = ref([]);
|
|
521
521
|
const handleRouteChange = useThrottleFn(async () => {
|
|
522
|
+
const activeAppName = useActiveApp();
|
|
522
523
|
const microAppName = activeAppName.value;
|
|
523
524
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
525
|
+
console.log(555555555555555, activeAppName.value);
|
|
524
526
|
const domId = `microApp_${microAppName}`;
|
|
525
527
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
526
528
|
appContainerList.value.push({
|
|
@@ -646,6 +648,8 @@ const Events$1 = {
|
|
|
646
648
|
WEBRTC_ON_DATA_CHANNEL_MSG: "WEBRTC_ON_DATA_CHANNEL_MSG",
|
|
647
649
|
CAPTURE_STREAM_FAILED: "CAPTURE_STREAM_FAILED"
|
|
648
650
|
};
|
|
651
|
+
const VERSION$1 = "1.0.1";
|
|
652
|
+
const BUILD_DATE = "Sat Mar 30 2024 13:57:14 GMT+0800 (\u4E2D\u56FD\u6807\u51C6\u65F6\u95F4)";
|
|
649
653
|
function isFirefox() {
|
|
650
654
|
return window.navigator.userAgent.match("Firefox") !== null;
|
|
651
655
|
}
|
|
@@ -675,6 +679,7 @@ class Resolution {
|
|
|
675
679
|
}
|
|
676
680
|
}
|
|
677
681
|
let logDisabled_ = true;
|
|
682
|
+
let deprecationWarnings_ = true;
|
|
678
683
|
function extractVersion(uastring, expr, pos) {
|
|
679
684
|
const match = uastring.match(expr);
|
|
680
685
|
return match && match.length >= pos && parseInt(match[pos], 10);
|
|
@@ -752,6 +757,7 @@ function disableWarnings(bool) {
|
|
|
752
757
|
if (typeof bool !== "boolean") {
|
|
753
758
|
return new Error("Argument type: " + typeof bool + ". Please use a boolean.");
|
|
754
759
|
}
|
|
760
|
+
deprecationWarnings_ = !bool;
|
|
755
761
|
return "adapter.js deprecation warnings " + (bool ? "disabled" : "enabled");
|
|
756
762
|
}
|
|
757
763
|
function log$1() {
|
|
@@ -759,7 +765,16 @@ function log$1() {
|
|
|
759
765
|
if (logDisabled_) {
|
|
760
766
|
return;
|
|
761
767
|
}
|
|
768
|
+
if (typeof console !== "undefined" && typeof console.log === "function") {
|
|
769
|
+
console.log.apply(console, arguments);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
function deprecated(oldMethod, newMethod) {
|
|
774
|
+
if (!deprecationWarnings_) {
|
|
775
|
+
return;
|
|
762
776
|
}
|
|
777
|
+
console.warn(oldMethod + " is deprecated, please use " + newMethod + " instead.");
|
|
763
778
|
}
|
|
764
779
|
function detectBrowser(window2) {
|
|
765
780
|
const result = {
|
|
@@ -1019,6 +1034,7 @@ function shimGetDisplayMedia$2(window2, getSourceId) {
|
|
|
1019
1034
|
return;
|
|
1020
1035
|
}
|
|
1021
1036
|
if (typeof getSourceId !== "function") {
|
|
1037
|
+
console.error("shimGetDisplayMedia: getSourceId argument is not a function");
|
|
1022
1038
|
return;
|
|
1023
1039
|
}
|
|
1024
1040
|
window2.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {
|
|
@@ -1604,7 +1620,9 @@ function filterIceServers$1(iceServers, edgeVersion) {
|
|
|
1604
1620
|
return iceServers.filter(server => {
|
|
1605
1621
|
if (server && (server.urls || server.url)) {
|
|
1606
1622
|
let urls = server.urls || server.url;
|
|
1607
|
-
if (server.url && !server.urls)
|
|
1623
|
+
if (server.url && !server.urls) {
|
|
1624
|
+
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
1625
|
+
}
|
|
1608
1626
|
const isString2 = typeof urls === "string";
|
|
1609
1627
|
if (isString2) {
|
|
1610
1628
|
urls = [urls];
|
|
@@ -2276,7 +2294,9 @@ function filterIceServers(iceServers, edgeVersion) {
|
|
|
2276
2294
|
return iceServers.filter(function (server) {
|
|
2277
2295
|
if (server && (server.urls || server.url)) {
|
|
2278
2296
|
var urls = server.urls || server.url;
|
|
2279
|
-
if (server.url && !server.urls)
|
|
2297
|
+
if (server.url && !server.urls) {
|
|
2298
|
+
console.warn("RTCIceServer.url is deprecated! Use urls instead.");
|
|
2299
|
+
}
|
|
2280
2300
|
var isString2 = typeof urls === "string";
|
|
2281
2301
|
if (isString2) {
|
|
2282
2302
|
urls = [urls];
|
|
@@ -3135,6 +3155,7 @@ var rtcpeerconnection = function (window2, edgeVersion) {
|
|
|
3135
3155
|
}
|
|
3136
3156
|
pc.transceivers.forEach(function (transceiver) {
|
|
3137
3157
|
if (transceiver.iceTransport && transceiver.iceTransport.state === "new" && transceiver.iceTransport.getRemoteCandidates().length > 0) {
|
|
3158
|
+
console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification");
|
|
3138
3159
|
transceiver.iceTransport.addRemoteCandidate({});
|
|
3139
3160
|
}
|
|
3140
3161
|
});
|
|
@@ -3717,6 +3738,7 @@ function shimGetUserMedia$1(window2, browserDetails) {
|
|
|
3717
3738
|
const navigator2 = window2 && window2.navigator;
|
|
3718
3739
|
const MediaStreamTrack = window2 && window2.MediaStreamTrack;
|
|
3719
3740
|
navigator2.getUserMedia = function (constraints, onSuccess, onError) {
|
|
3741
|
+
deprecated("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia");
|
|
3720
3742
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
|
3721
3743
|
};
|
|
3722
3744
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
|
@@ -3897,6 +3919,7 @@ function shimRemoveStream(window2) {
|
|
|
3897
3919
|
return;
|
|
3898
3920
|
}
|
|
3899
3921
|
window2.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
|
|
3922
|
+
deprecated("removeStream", "removeTrack");
|
|
3900
3923
|
this.getSenders().forEach(sender => {
|
|
3901
3924
|
if (sender.track && stream.getTracks().includes(sender.track)) {
|
|
3902
3925
|
this.removeTrack(sender);
|
|
@@ -4228,6 +4251,7 @@ function shimRTCIceServerUrls(window2) {
|
|
|
4228
4251
|
for (let i = 0; i < pcConfig.iceServers.length; i++) {
|
|
4229
4252
|
let server = pcConfig.iceServers[i];
|
|
4230
4253
|
if (!server.hasOwnProperty("urls") && server.hasOwnProperty("url")) {
|
|
4254
|
+
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
4231
4255
|
server = JSON.parse(JSON.stringify(server));
|
|
4232
4256
|
server.urls = server.url;
|
|
4233
4257
|
delete server.url;
|
|
@@ -4607,6 +4631,7 @@ function adapterFactory({
|
|
|
4607
4631
|
shimEdge: true,
|
|
4608
4632
|
shimSafari: true
|
|
4609
4633
|
}) {
|
|
4634
|
+
const logging2 = log$1;
|
|
4610
4635
|
const browserDetails = detectBrowser(window2);
|
|
4611
4636
|
const adapter = {
|
|
4612
4637
|
browserDetails,
|
|
@@ -4618,11 +4643,14 @@ function adapterFactory({
|
|
|
4618
4643
|
switch (browserDetails.browser) {
|
|
4619
4644
|
case "chrome":
|
|
4620
4645
|
if (!chromeShim || !shimPeerConnection$2 || !options.shimChrome) {
|
|
4646
|
+
logging2("Chrome shim is not included in this adapter release.");
|
|
4621
4647
|
return adapter;
|
|
4622
4648
|
}
|
|
4623
4649
|
if (browserDetails.version === null) {
|
|
4650
|
+
logging2("Chrome shim can not determine version, not shimming.");
|
|
4624
4651
|
return adapter;
|
|
4625
4652
|
}
|
|
4653
|
+
logging2("adapter.js shimming chrome.");
|
|
4626
4654
|
adapter.browserShim = chromeShim;
|
|
4627
4655
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4628
4656
|
shimGetUserMedia$3(window2, browserDetails);
|
|
@@ -4642,8 +4670,10 @@ function adapterFactory({
|
|
|
4642
4670
|
break;
|
|
4643
4671
|
case "firefox":
|
|
4644
4672
|
if (!firefoxShim || !shimPeerConnection || !options.shimFirefox) {
|
|
4673
|
+
logging2("Firefox shim is not included in this adapter release.");
|
|
4645
4674
|
return adapter;
|
|
4646
4675
|
}
|
|
4676
|
+
logging2("adapter.js shimming firefox.");
|
|
4647
4677
|
adapter.browserShim = firefoxShim;
|
|
4648
4678
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4649
4679
|
shimGetUserMedia$1(window2, browserDetails);
|
|
@@ -4664,8 +4694,10 @@ function adapterFactory({
|
|
|
4664
4694
|
break;
|
|
4665
4695
|
case "edge":
|
|
4666
4696
|
if (!edgeShim || !shimPeerConnection$1 || !options.shimEdge) {
|
|
4697
|
+
logging2("MS edge shim is not included in this adapter release.");
|
|
4667
4698
|
return adapter;
|
|
4668
4699
|
}
|
|
4700
|
+
logging2("adapter.js shimming edge.");
|
|
4669
4701
|
adapter.browserShim = edgeShim;
|
|
4670
4702
|
shimGetUserMedia$2(window2);
|
|
4671
4703
|
shimGetDisplayMedia$1(window2);
|
|
@@ -4676,8 +4708,10 @@ function adapterFactory({
|
|
|
4676
4708
|
break;
|
|
4677
4709
|
case "safari":
|
|
4678
4710
|
if (!safariShim || !options.shimSafari) {
|
|
4711
|
+
logging2("Safari shim is not included in this adapter release.");
|
|
4679
4712
|
return adapter;
|
|
4680
4713
|
}
|
|
4714
|
+
logging2("adapter.js shimming safari.");
|
|
4681
4715
|
adapter.browserShim = safariShim;
|
|
4682
4716
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4683
4717
|
shimRTCIceServerUrls(window2);
|
|
@@ -4693,6 +4727,9 @@ function adapterFactory({
|
|
|
4693
4727
|
shimSendThrowTypeError(window2);
|
|
4694
4728
|
removeExtmapAllowMixed(window2, browserDetails);
|
|
4695
4729
|
break;
|
|
4730
|
+
default:
|
|
4731
|
+
logging2("Unsupported browser!");
|
|
4732
|
+
break;
|
|
4696
4733
|
}
|
|
4697
4734
|
return adapter;
|
|
4698
4735
|
}
|
|
@@ -5771,6 +5808,7 @@ validators$1.transitional = function transitional2(validator2, version, message)
|
|
|
5771
5808
|
}
|
|
5772
5809
|
if (version && !deprecatedWarnings[opt]) {
|
|
5773
5810
|
deprecatedWarnings[opt] = true;
|
|
5811
|
+
console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
|
|
5774
5812
|
}
|
|
5775
5813
|
return validator2 ? validator2(value, opt, opts) : true;
|
|
5776
5814
|
};
|
|
@@ -6302,6 +6340,8 @@ class RTCEndpoint extends Event$1 {
|
|
|
6302
6340
|
return this._localStream;
|
|
6303
6341
|
}
|
|
6304
6342
|
}
|
|
6343
|
+
console.log("build date:", BUILD_DATE);
|
|
6344
|
+
console.log("version:", VERSION$1);
|
|
6305
6345
|
const Events = Events$1;
|
|
6306
6346
|
const Endpoint = RTCEndpoint;
|
|
6307
6347
|
|
|
@@ -6369,6 +6409,7 @@ class WebRtcMt$1 {
|
|
|
6369
6409
|
if (res.code === 0) {
|
|
6370
6410
|
this.startPlay(plays);
|
|
6371
6411
|
} else {
|
|
6412
|
+
console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
|
|
6372
6413
|
setTimeout(() => {
|
|
6373
6414
|
this.rePlay();
|
|
6374
6415
|
}, 3 * 60 * 1e3);
|
|
@@ -6376,6 +6417,7 @@ class WebRtcMt$1 {
|
|
|
6376
6417
|
resolve(res);
|
|
6377
6418
|
});
|
|
6378
6419
|
}).catch(err => {
|
|
6420
|
+
console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
|
|
6379
6421
|
setTimeout(() => {
|
|
6380
6422
|
this.rePlay();
|
|
6381
6423
|
}, 3 * 60 * 1e3);
|
|
@@ -6386,6 +6428,11 @@ class WebRtcMt$1 {
|
|
|
6386
6428
|
switch (type) {
|
|
6387
6429
|
case "err":
|
|
6388
6430
|
throw new Error(text);
|
|
6431
|
+
case "warn":
|
|
6432
|
+
console.log(text);
|
|
6433
|
+
break;
|
|
6434
|
+
default:
|
|
6435
|
+
console.log(text);
|
|
6389
6436
|
}
|
|
6390
6437
|
}
|
|
6391
6438
|
// 停止播放0
|
|
@@ -6429,6 +6476,7 @@ class WebRtcMt$1 {
|
|
|
6429
6476
|
this.rePlay(videoElm);
|
|
6430
6477
|
});
|
|
6431
6478
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6479
|
+
console.log("webrtc:" + state);
|
|
6432
6480
|
if (state === "disconnected" || state === "failed") {
|
|
6433
6481
|
this.rePlay(videoElm);
|
|
6434
6482
|
}
|
|
@@ -6436,8 +6484,10 @@ class WebRtcMt$1 {
|
|
|
6436
6484
|
}
|
|
6437
6485
|
// 重播
|
|
6438
6486
|
rePlay(videoElm) {
|
|
6487
|
+
console.log("\u5E95\u90E8\u505C\u6B62\u64AD\u653E");
|
|
6439
6488
|
this.stopPlay();
|
|
6440
6489
|
setTimeout(() => {
|
|
6490
|
+
console.log("\u5E95\u90E8\u91CD\u64AD");
|
|
6441
6491
|
this.init(this.opt);
|
|
6442
6492
|
}, 5 * 1e3);
|
|
6443
6493
|
}
|
|
@@ -6968,6 +7018,7 @@ const PageContent = defineComponent({
|
|
|
6968
7018
|
iframeList.value.splice(idx, 1);
|
|
6969
7019
|
}
|
|
6970
7020
|
};
|
|
7021
|
+
console.log(loadAppList, appDomList, 777777777777777);
|
|
6971
7022
|
const extraPageList = ref([]);
|
|
6972
7023
|
const handleExtraPageClose = tab => {
|
|
6973
7024
|
const idx = extraPageList.value.findIndex(item => item.key === tab.key && item.uniqueKey === tab.uniqueKey);
|
|
@@ -7093,6 +7144,7 @@ const PageContent = defineComponent({
|
|
|
7093
7144
|
};
|
|
7094
7145
|
const activeMenu = useActiveMenu(() => props.menu, props.extraPages, false, false, extraIframeList);
|
|
7095
7146
|
watch(activeMenu, (val, oldVal) => {
|
|
7147
|
+
console.log(val, oldVal, 888888888);
|
|
7096
7148
|
handleMenuChange(val);
|
|
7097
7149
|
function postIframeActive(id, active) {
|
|
7098
7150
|
const iframeEl = document.querySelector(`#iframe${id}`);
|
|
@@ -10530,6 +10582,7 @@ const CloudVideo = defineComponent({
|
|
|
10530
10582
|
initVideo();
|
|
10531
10583
|
});
|
|
10532
10584
|
onBeforeUnmount(() => {
|
|
10585
|
+
console.log("\u9500\u6BC1");
|
|
10533
10586
|
player?.stop();
|
|
10534
10587
|
});
|
|
10535
10588
|
return () => createVNode("div", {
|
|
@@ -10619,6 +10672,11 @@ class WebRtcMt {
|
|
|
10619
10672
|
switch (type) {
|
|
10620
10673
|
case "err":
|
|
10621
10674
|
throw new Error(text);
|
|
10675
|
+
case "warn":
|
|
10676
|
+
console.warn(text);
|
|
10677
|
+
break;
|
|
10678
|
+
default:
|
|
10679
|
+
console.info(text);
|
|
10622
10680
|
}
|
|
10623
10681
|
}
|
|
10624
10682
|
// 停止播放0
|
|
@@ -13088,6 +13146,7 @@ const SszComment = defineComponent({
|
|
|
13088
13146
|
token,
|
|
13089
13147
|
corpUser
|
|
13090
13148
|
} = await getZxUser(props.zxIp);
|
|
13149
|
+
console.log("corpUser", corpUser);
|
|
13091
13150
|
currentUserId.value = corpUser.id;
|
|
13092
13151
|
setAxiosOption({
|
|
13093
13152
|
baseURL: props.baseUrl,
|
|
@@ -13105,6 +13164,7 @@ const SszComment = defineComponent({
|
|
|
13105
13164
|
}
|
|
13106
13165
|
});
|
|
13107
13166
|
} catch (e) {
|
|
13167
|
+
console.log(e);
|
|
13108
13168
|
setAxiosOption({
|
|
13109
13169
|
baseURL: props.baseUrl,
|
|
13110
13170
|
headers: {
|
|
@@ -13761,6 +13821,7 @@ const QaContext = defineComponent({
|
|
|
13761
13821
|
}) {
|
|
13762
13822
|
const containerRef = ref();
|
|
13763
13823
|
const onAnswerRender = text => {
|
|
13824
|
+
console.log("%c%s", "color: #bd08b7;", text);
|
|
13764
13825
|
containerRef.value.scrollTo({
|
|
13765
13826
|
top: containerRef.value.scrollHeight,
|
|
13766
13827
|
behavior: "smooth"
|