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