inl-ui 0.1.123 → 0.1.125
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 +30 -5
- package/dist/components/index.js +30 -5
- package/dist/hooks/index.cjs +30 -5
- package/dist/hooks/index.js +30 -5
- package/dist/index.cjs +31 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +31 -6
- package/dist/tplib/index.cjs +30 -5
- package/dist/tplib/index.js +30 -5
- package/dist/video/index.cjs +30 -5
- package/dist/video/index.js +30 -5
- package/dist/videoMobile/index.cjs +30 -5
- package/dist/videoMobile/index.js +30 -5
- package/package.json +1 -1
|
@@ -6492,25 +6492,49 @@ class WebRtcMt$1 {
|
|
|
6492
6492
|
playEvent(player, videoElm, sdpUrl) {
|
|
6493
6493
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
6494
6494
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
6495
|
-
this.
|
|
6495
|
+
this.log("warn", e);
|
|
6496
|
+
});
|
|
6497
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
6498
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
6499
|
+
this.log("warn", e);
|
|
6500
|
+
});
|
|
6501
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
6502
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
6503
|
+
this.log("warn", e);
|
|
6504
|
+
});
|
|
6505
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6506
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
6507
|
+
this.log("warn", e);
|
|
6508
|
+
});
|
|
6509
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
6510
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
6511
|
+
this.log("warn", e);
|
|
6512
|
+
});
|
|
6513
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
6514
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
6515
|
+
this.log("warn", e);
|
|
6516
|
+
});
|
|
6517
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
6518
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
6519
|
+
this.log("warn", e);
|
|
6496
6520
|
});
|
|
6497
6521
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6498
6522
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
6499
6523
|
});
|
|
6500
6524
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
6501
6525
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
6502
|
-
this.
|
|
6526
|
+
this.log("warn", e);
|
|
6503
6527
|
});
|
|
6504
6528
|
player.on(Events.DISCONNECTED, e => {
|
|
6505
6529
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
6506
|
-
this.
|
|
6530
|
+
this.log("warn", e);
|
|
6507
6531
|
});
|
|
6508
6532
|
player.on(Events.LOST_SERVER, e => {
|
|
6509
6533
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
6510
|
-
this.
|
|
6534
|
+
this.log("warn", e);
|
|
6511
6535
|
});
|
|
6512
6536
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6513
|
-
|
|
6537
|
+
this.log("warn", state);
|
|
6514
6538
|
if (state === "disconnected" || state === "failed") {
|
|
6515
6539
|
this.rePlay(videoElm);
|
|
6516
6540
|
}
|
|
@@ -6527,6 +6551,7 @@ class WebRtcMt$1 {
|
|
|
6527
6551
|
}
|
|
6528
6552
|
// 播放
|
|
6529
6553
|
play(videoElm) {
|
|
6554
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6530
6555
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6531
6556
|
const {
|
|
6532
6557
|
sdpUrl
|
package/dist/components/index.js
CHANGED
|
@@ -6464,25 +6464,49 @@ class WebRtcMt$1 {
|
|
|
6464
6464
|
playEvent(player, videoElm, sdpUrl) {
|
|
6465
6465
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
6466
6466
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
6467
|
-
this.
|
|
6467
|
+
this.log("warn", e);
|
|
6468
|
+
});
|
|
6469
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
6470
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
6471
|
+
this.log("warn", e);
|
|
6472
|
+
});
|
|
6473
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
6474
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
6475
|
+
this.log("warn", e);
|
|
6476
|
+
});
|
|
6477
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6478
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
6479
|
+
this.log("warn", e);
|
|
6480
|
+
});
|
|
6481
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
6482
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
6483
|
+
this.log("warn", e);
|
|
6484
|
+
});
|
|
6485
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
6486
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
6487
|
+
this.log("warn", e);
|
|
6488
|
+
});
|
|
6489
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
6490
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
6491
|
+
this.log("warn", e);
|
|
6468
6492
|
});
|
|
6469
6493
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6470
6494
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
6471
6495
|
});
|
|
6472
6496
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
6473
6497
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
6474
|
-
this.
|
|
6498
|
+
this.log("warn", e);
|
|
6475
6499
|
});
|
|
6476
6500
|
player.on(Events.DISCONNECTED, e => {
|
|
6477
6501
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
6478
|
-
this.
|
|
6502
|
+
this.log("warn", e);
|
|
6479
6503
|
});
|
|
6480
6504
|
player.on(Events.LOST_SERVER, e => {
|
|
6481
6505
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
6482
|
-
this.
|
|
6506
|
+
this.log("warn", e);
|
|
6483
6507
|
});
|
|
6484
6508
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6485
|
-
|
|
6509
|
+
this.log("warn", state);
|
|
6486
6510
|
if (state === "disconnected" || state === "failed") {
|
|
6487
6511
|
this.rePlay(videoElm);
|
|
6488
6512
|
}
|
|
@@ -6499,6 +6523,7 @@ class WebRtcMt$1 {
|
|
|
6499
6523
|
}
|
|
6500
6524
|
// 播放
|
|
6501
6525
|
play(videoElm) {
|
|
6526
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6502
6527
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6503
6528
|
const {
|
|
6504
6529
|
sdpUrl
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -6099,25 +6099,49 @@ class WebRtcMt {
|
|
|
6099
6099
|
playEvent(player, videoElm, sdpUrl) {
|
|
6100
6100
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
6101
6101
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
6102
|
-
this.
|
|
6102
|
+
this.log("warn", e);
|
|
6103
|
+
});
|
|
6104
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
6105
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
6106
|
+
this.log("warn", e);
|
|
6107
|
+
});
|
|
6108
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
6109
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
6110
|
+
this.log("warn", e);
|
|
6111
|
+
});
|
|
6112
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6113
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
6114
|
+
this.log("warn", e);
|
|
6115
|
+
});
|
|
6116
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
6117
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
6118
|
+
this.log("warn", e);
|
|
6119
|
+
});
|
|
6120
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
6121
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
6122
|
+
this.log("warn", e);
|
|
6123
|
+
});
|
|
6124
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
6125
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
6126
|
+
this.log("warn", e);
|
|
6103
6127
|
});
|
|
6104
6128
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6105
6129
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
6106
6130
|
});
|
|
6107
6131
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
6108
6132
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
6109
|
-
this.
|
|
6133
|
+
this.log("warn", e);
|
|
6110
6134
|
});
|
|
6111
6135
|
player.on(Events.DISCONNECTED, e => {
|
|
6112
6136
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
6113
|
-
this.
|
|
6137
|
+
this.log("warn", e);
|
|
6114
6138
|
});
|
|
6115
6139
|
player.on(Events.LOST_SERVER, e => {
|
|
6116
6140
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
6117
|
-
this.
|
|
6141
|
+
this.log("warn", e);
|
|
6118
6142
|
});
|
|
6119
6143
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6120
|
-
|
|
6144
|
+
this.log("warn", state);
|
|
6121
6145
|
if (state === "disconnected" || state === "failed") {
|
|
6122
6146
|
this.rePlay(videoElm);
|
|
6123
6147
|
}
|
|
@@ -6134,6 +6158,7 @@ class WebRtcMt {
|
|
|
6134
6158
|
}
|
|
6135
6159
|
// 播放
|
|
6136
6160
|
play(videoElm) {
|
|
6161
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6137
6162
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6138
6163
|
const {
|
|
6139
6164
|
sdpUrl
|
package/dist/hooks/index.js
CHANGED
|
@@ -6090,25 +6090,49 @@ class WebRtcMt {
|
|
|
6090
6090
|
playEvent(player, videoElm, sdpUrl) {
|
|
6091
6091
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
6092
6092
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
6093
|
-
this.
|
|
6093
|
+
this.log("warn", e);
|
|
6094
|
+
});
|
|
6095
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
6096
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
6097
|
+
this.log("warn", e);
|
|
6098
|
+
});
|
|
6099
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
6100
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
6101
|
+
this.log("warn", e);
|
|
6102
|
+
});
|
|
6103
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6104
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
6105
|
+
this.log("warn", e);
|
|
6106
|
+
});
|
|
6107
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
6108
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
6109
|
+
this.log("warn", e);
|
|
6110
|
+
});
|
|
6111
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
6112
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
6113
|
+
this.log("warn", e);
|
|
6114
|
+
});
|
|
6115
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
6116
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
6117
|
+
this.log("warn", e);
|
|
6094
6118
|
});
|
|
6095
6119
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6096
6120
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
6097
6121
|
});
|
|
6098
6122
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
6099
6123
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
6100
|
-
this.
|
|
6124
|
+
this.log("warn", e);
|
|
6101
6125
|
});
|
|
6102
6126
|
player.on(Events.DISCONNECTED, e => {
|
|
6103
6127
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
6104
|
-
this.
|
|
6128
|
+
this.log("warn", e);
|
|
6105
6129
|
});
|
|
6106
6130
|
player.on(Events.LOST_SERVER, e => {
|
|
6107
6131
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
6108
|
-
this.
|
|
6132
|
+
this.log("warn", e);
|
|
6109
6133
|
});
|
|
6110
6134
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6111
|
-
|
|
6135
|
+
this.log("warn", state);
|
|
6112
6136
|
if (state === "disconnected" || state === "failed") {
|
|
6113
6137
|
this.rePlay(videoElm);
|
|
6114
6138
|
}
|
|
@@ -6125,6 +6149,7 @@ class WebRtcMt {
|
|
|
6125
6149
|
}
|
|
6126
6150
|
// 播放
|
|
6127
6151
|
play(videoElm) {
|
|
6152
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6128
6153
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6129
6154
|
const {
|
|
6130
6155
|
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.124";
|
|
47
47
|
|
|
48
48
|
const setTheme = theme => {
|
|
49
49
|
if (theme === "dark") {
|
|
@@ -6791,25 +6791,49 @@ class WebRtcMt$1 {
|
|
|
6791
6791
|
playEvent(player, videoElm, sdpUrl) {
|
|
6792
6792
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
6793
6793
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
6794
|
-
this.
|
|
6794
|
+
this.log("warn", e);
|
|
6795
|
+
});
|
|
6796
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
6797
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
6798
|
+
this.log("warn", e);
|
|
6799
|
+
});
|
|
6800
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
6801
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
6802
|
+
this.log("warn", e);
|
|
6803
|
+
});
|
|
6804
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6805
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
6806
|
+
this.log("warn", e);
|
|
6807
|
+
});
|
|
6808
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
6809
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
6810
|
+
this.log("warn", e);
|
|
6811
|
+
});
|
|
6812
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
6813
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
6814
|
+
this.log("warn", e);
|
|
6815
|
+
});
|
|
6816
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
6817
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
6818
|
+
this.log("warn", e);
|
|
6795
6819
|
});
|
|
6796
6820
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6797
6821
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
6798
6822
|
});
|
|
6799
6823
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
6800
6824
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
6801
|
-
this.
|
|
6825
|
+
this.log("warn", e);
|
|
6802
6826
|
});
|
|
6803
6827
|
player.on(Events.DISCONNECTED, e => {
|
|
6804
6828
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
6805
|
-
this.
|
|
6829
|
+
this.log("warn", e);
|
|
6806
6830
|
});
|
|
6807
6831
|
player.on(Events.LOST_SERVER, e => {
|
|
6808
6832
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
6809
|
-
this.
|
|
6833
|
+
this.log("warn", e);
|
|
6810
6834
|
});
|
|
6811
6835
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6812
|
-
|
|
6836
|
+
this.log("warn", state);
|
|
6813
6837
|
if (state === "disconnected" || state === "failed") {
|
|
6814
6838
|
this.rePlay(videoElm);
|
|
6815
6839
|
}
|
|
@@ -6826,6 +6850,7 @@ class WebRtcMt$1 {
|
|
|
6826
6850
|
}
|
|
6827
6851
|
// 播放
|
|
6828
6852
|
play(videoElm) {
|
|
6853
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6829
6854
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6830
6855
|
const {
|
|
6831
6856
|
sdpUrl
|
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.124";
|
|
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.124";
|
|
17
17
|
|
|
18
18
|
const setTheme = theme => {
|
|
19
19
|
if (theme === "dark") {
|
|
@@ -6761,25 +6761,49 @@ class WebRtcMt$1 {
|
|
|
6761
6761
|
playEvent(player, videoElm, sdpUrl) {
|
|
6762
6762
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
6763
6763
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
6764
|
-
this.
|
|
6764
|
+
this.log("warn", e);
|
|
6765
|
+
});
|
|
6766
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
6767
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
6768
|
+
this.log("warn", e);
|
|
6769
|
+
});
|
|
6770
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
6771
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
6772
|
+
this.log("warn", e);
|
|
6773
|
+
});
|
|
6774
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6775
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
6776
|
+
this.log("warn", e);
|
|
6777
|
+
});
|
|
6778
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
6779
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
6780
|
+
this.log("warn", e);
|
|
6781
|
+
});
|
|
6782
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
6783
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
6784
|
+
this.log("warn", e);
|
|
6785
|
+
});
|
|
6786
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
6787
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
6788
|
+
this.log("warn", e);
|
|
6765
6789
|
});
|
|
6766
6790
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
6767
6791
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
6768
6792
|
});
|
|
6769
6793
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
6770
6794
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
6771
|
-
this.
|
|
6795
|
+
this.log("warn", e);
|
|
6772
6796
|
});
|
|
6773
6797
|
player.on(Events.DISCONNECTED, e => {
|
|
6774
6798
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
6775
|
-
this.
|
|
6799
|
+
this.log("warn", e);
|
|
6776
6800
|
});
|
|
6777
6801
|
player.on(Events.LOST_SERVER, e => {
|
|
6778
6802
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
6779
|
-
this.
|
|
6803
|
+
this.log("warn", e);
|
|
6780
6804
|
});
|
|
6781
6805
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6782
|
-
|
|
6806
|
+
this.log("warn", state);
|
|
6783
6807
|
if (state === "disconnected" || state === "failed") {
|
|
6784
6808
|
this.rePlay(videoElm);
|
|
6785
6809
|
}
|
|
@@ -6796,6 +6820,7 @@ class WebRtcMt$1 {
|
|
|
6796
6820
|
}
|
|
6797
6821
|
// 播放
|
|
6798
6822
|
play(videoElm) {
|
|
6823
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
6799
6824
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
6800
6825
|
const {
|
|
6801
6826
|
sdpUrl
|
package/dist/tplib/index.cjs
CHANGED
|
@@ -5865,25 +5865,49 @@ class WebRtcMt {
|
|
|
5865
5865
|
playEvent(player, videoElm, sdpUrl) {
|
|
5866
5866
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
5867
5867
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
5868
|
-
this.
|
|
5868
|
+
this.log("warn", e);
|
|
5869
|
+
});
|
|
5870
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
5871
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
5872
|
+
this.log("warn", e);
|
|
5873
|
+
});
|
|
5874
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
5875
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
5876
|
+
this.log("warn", e);
|
|
5877
|
+
});
|
|
5878
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5879
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
5880
|
+
this.log("warn", e);
|
|
5881
|
+
});
|
|
5882
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
5883
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
5884
|
+
this.log("warn", e);
|
|
5885
|
+
});
|
|
5886
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
5887
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
5888
|
+
this.log("warn", e);
|
|
5889
|
+
});
|
|
5890
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
5891
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
5892
|
+
this.log("warn", e);
|
|
5869
5893
|
});
|
|
5870
5894
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5871
5895
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
5872
5896
|
});
|
|
5873
5897
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
5874
5898
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
5875
|
-
this.
|
|
5899
|
+
this.log("warn", e);
|
|
5876
5900
|
});
|
|
5877
5901
|
player.on(Events.DISCONNECTED, e => {
|
|
5878
5902
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
5879
|
-
this.
|
|
5903
|
+
this.log("warn", e);
|
|
5880
5904
|
});
|
|
5881
5905
|
player.on(Events.LOST_SERVER, e => {
|
|
5882
5906
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
5883
|
-
this.
|
|
5907
|
+
this.log("warn", e);
|
|
5884
5908
|
});
|
|
5885
5909
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5886
|
-
|
|
5910
|
+
this.log("warn", state);
|
|
5887
5911
|
if (state === "disconnected" || state === "failed") {
|
|
5888
5912
|
this.rePlay(videoElm);
|
|
5889
5913
|
}
|
|
@@ -5900,6 +5924,7 @@ class WebRtcMt {
|
|
|
5900
5924
|
}
|
|
5901
5925
|
// 播放
|
|
5902
5926
|
play(videoElm) {
|
|
5927
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5903
5928
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5904
5929
|
const {
|
|
5905
5930
|
sdpUrl
|
package/dist/tplib/index.js
CHANGED
|
@@ -5861,25 +5861,49 @@ class WebRtcMt {
|
|
|
5861
5861
|
playEvent(player, videoElm, sdpUrl) {
|
|
5862
5862
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
5863
5863
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
5864
|
-
this.
|
|
5864
|
+
this.log("warn", e);
|
|
5865
|
+
});
|
|
5866
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
5867
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
5868
|
+
this.log("warn", e);
|
|
5869
|
+
});
|
|
5870
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
5871
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
5872
|
+
this.log("warn", e);
|
|
5873
|
+
});
|
|
5874
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5875
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
5876
|
+
this.log("warn", e);
|
|
5877
|
+
});
|
|
5878
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
5879
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
5880
|
+
this.log("warn", e);
|
|
5881
|
+
});
|
|
5882
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
5883
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
5884
|
+
this.log("warn", e);
|
|
5885
|
+
});
|
|
5886
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
5887
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
5888
|
+
this.log("warn", e);
|
|
5865
5889
|
});
|
|
5866
5890
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5867
5891
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
5868
5892
|
});
|
|
5869
5893
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
5870
5894
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
5871
|
-
this.
|
|
5895
|
+
this.log("warn", e);
|
|
5872
5896
|
});
|
|
5873
5897
|
player.on(Events.DISCONNECTED, e => {
|
|
5874
5898
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
5875
|
-
this.
|
|
5899
|
+
this.log("warn", e);
|
|
5876
5900
|
});
|
|
5877
5901
|
player.on(Events.LOST_SERVER, e => {
|
|
5878
5902
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
5879
|
-
this.
|
|
5903
|
+
this.log("warn", e);
|
|
5880
5904
|
});
|
|
5881
5905
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5882
|
-
|
|
5906
|
+
this.log("warn", state);
|
|
5883
5907
|
if (state === "disconnected" || state === "failed") {
|
|
5884
5908
|
this.rePlay(videoElm);
|
|
5885
5909
|
}
|
|
@@ -5896,6 +5920,7 @@ class WebRtcMt {
|
|
|
5896
5920
|
}
|
|
5897
5921
|
// 播放
|
|
5898
5922
|
play(videoElm) {
|
|
5923
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5899
5924
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5900
5925
|
const {
|
|
5901
5926
|
sdpUrl
|
package/dist/video/index.cjs
CHANGED
|
@@ -5870,25 +5870,49 @@ class WebRtcMt$1 {
|
|
|
5870
5870
|
playEvent(player, videoElm, sdpUrl) {
|
|
5871
5871
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
5872
5872
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
5873
|
-
this.
|
|
5873
|
+
this.log("warn", e);
|
|
5874
|
+
});
|
|
5875
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
5876
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
5877
|
+
this.log("warn", e);
|
|
5878
|
+
});
|
|
5879
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
5880
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
5881
|
+
this.log("warn", e);
|
|
5882
|
+
});
|
|
5883
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5884
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
5885
|
+
this.log("warn", e);
|
|
5886
|
+
});
|
|
5887
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
5888
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
5889
|
+
this.log("warn", e);
|
|
5890
|
+
});
|
|
5891
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
5892
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
5893
|
+
this.log("warn", e);
|
|
5894
|
+
});
|
|
5895
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
5896
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
5897
|
+
this.log("warn", e);
|
|
5874
5898
|
});
|
|
5875
5899
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5876
5900
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
5877
5901
|
});
|
|
5878
5902
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
5879
5903
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
5880
|
-
this.
|
|
5904
|
+
this.log("warn", e);
|
|
5881
5905
|
});
|
|
5882
5906
|
player.on(Events.DISCONNECTED, e => {
|
|
5883
5907
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
5884
|
-
this.
|
|
5908
|
+
this.log("warn", e);
|
|
5885
5909
|
});
|
|
5886
5910
|
player.on(Events.LOST_SERVER, e => {
|
|
5887
5911
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
5888
|
-
this.
|
|
5912
|
+
this.log("warn", e);
|
|
5889
5913
|
});
|
|
5890
5914
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5891
|
-
|
|
5915
|
+
this.log("warn", state);
|
|
5892
5916
|
if (state === "disconnected" || state === "failed") {
|
|
5893
5917
|
this.rePlay(videoElm);
|
|
5894
5918
|
}
|
|
@@ -5905,6 +5929,7 @@ class WebRtcMt$1 {
|
|
|
5905
5929
|
}
|
|
5906
5930
|
// 播放
|
|
5907
5931
|
play(videoElm) {
|
|
5932
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5908
5933
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5909
5934
|
const {
|
|
5910
5935
|
sdpUrl
|
package/dist/video/index.js
CHANGED
|
@@ -5844,25 +5844,49 @@ class WebRtcMt$1 {
|
|
|
5844
5844
|
playEvent(player, videoElm, sdpUrl) {
|
|
5845
5845
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
5846
5846
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
5847
|
-
this.
|
|
5847
|
+
this.log("warn", e);
|
|
5848
|
+
});
|
|
5849
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
5850
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
5851
|
+
this.log("warn", e);
|
|
5852
|
+
});
|
|
5853
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
5854
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
5855
|
+
this.log("warn", e);
|
|
5856
|
+
});
|
|
5857
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5858
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
5859
|
+
this.log("warn", e);
|
|
5860
|
+
});
|
|
5861
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
5862
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
5863
|
+
this.log("warn", e);
|
|
5864
|
+
});
|
|
5865
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
5866
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
5867
|
+
this.log("warn", e);
|
|
5868
|
+
});
|
|
5869
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
5870
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
5871
|
+
this.log("warn", e);
|
|
5848
5872
|
});
|
|
5849
5873
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5850
5874
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
5851
5875
|
});
|
|
5852
5876
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
5853
5877
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
5854
|
-
this.
|
|
5878
|
+
this.log("warn", e);
|
|
5855
5879
|
});
|
|
5856
5880
|
player.on(Events.DISCONNECTED, e => {
|
|
5857
5881
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
5858
|
-
this.
|
|
5882
|
+
this.log("warn", e);
|
|
5859
5883
|
});
|
|
5860
5884
|
player.on(Events.LOST_SERVER, e => {
|
|
5861
5885
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
5862
|
-
this.
|
|
5886
|
+
this.log("warn", e);
|
|
5863
5887
|
});
|
|
5864
5888
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5865
|
-
|
|
5889
|
+
this.log("warn", state);
|
|
5866
5890
|
if (state === "disconnected" || state === "failed") {
|
|
5867
5891
|
this.rePlay(videoElm);
|
|
5868
5892
|
}
|
|
@@ -5879,6 +5903,7 @@ class WebRtcMt$1 {
|
|
|
5879
5903
|
}
|
|
5880
5904
|
// 播放
|
|
5881
5905
|
play(videoElm) {
|
|
5906
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5882
5907
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5883
5908
|
const {
|
|
5884
5909
|
sdpUrl
|
|
@@ -5832,25 +5832,49 @@ class WebRtcMt {
|
|
|
5832
5832
|
playEvent(player, videoElm, sdpUrl) {
|
|
5833
5833
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
5834
5834
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
5835
|
-
this.
|
|
5835
|
+
this.log("warn", e);
|
|
5836
|
+
});
|
|
5837
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
5838
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
5839
|
+
this.log("warn", e);
|
|
5840
|
+
});
|
|
5841
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
5842
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
5843
|
+
this.log("warn", e);
|
|
5844
|
+
});
|
|
5845
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5846
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
5847
|
+
this.log("warn", e);
|
|
5848
|
+
});
|
|
5849
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
5850
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
5851
|
+
this.log("warn", e);
|
|
5852
|
+
});
|
|
5853
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
5854
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
5855
|
+
this.log("warn", e);
|
|
5856
|
+
});
|
|
5857
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
5858
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
5859
|
+
this.log("warn", e);
|
|
5836
5860
|
});
|
|
5837
5861
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5838
5862
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
5839
5863
|
});
|
|
5840
5864
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
5841
5865
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
5842
|
-
this.
|
|
5866
|
+
this.log("warn", e);
|
|
5843
5867
|
});
|
|
5844
5868
|
player.on(Events.DISCONNECTED, e => {
|
|
5845
5869
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
5846
|
-
this.
|
|
5870
|
+
this.log("warn", e);
|
|
5847
5871
|
});
|
|
5848
5872
|
player.on(Events.LOST_SERVER, e => {
|
|
5849
5873
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
5850
|
-
this.
|
|
5874
|
+
this.log("warn", e);
|
|
5851
5875
|
});
|
|
5852
5876
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5853
|
-
|
|
5877
|
+
this.log("warn", state);
|
|
5854
5878
|
if (state === "disconnected" || state === "failed") {
|
|
5855
5879
|
this.rePlay(videoElm);
|
|
5856
5880
|
}
|
|
@@ -5867,6 +5891,7 @@ class WebRtcMt {
|
|
|
5867
5891
|
}
|
|
5868
5892
|
// 播放
|
|
5869
5893
|
play(videoElm) {
|
|
5894
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5870
5895
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5871
5896
|
const {
|
|
5872
5897
|
sdpUrl
|
|
@@ -5824,25 +5824,49 @@ class WebRtcMt {
|
|
|
5824
5824
|
playEvent(player, videoElm, sdpUrl) {
|
|
5825
5825
|
player.on(Events.WEBRTC_ICE_CANDIDATE_ERROR, e => {
|
|
5826
5826
|
this.log("warn", "ICE \u534F\u5546\u51FA\u9519");
|
|
5827
|
-
this.
|
|
5827
|
+
this.log("warn", e);
|
|
5828
|
+
});
|
|
5829
|
+
player.on(Events.WEBRTC_NOT_SUPPORT, e => {
|
|
5830
|
+
this.log("warn", "WEBRTC_NOT_SUPPORT");
|
|
5831
|
+
this.log("warn", e);
|
|
5832
|
+
});
|
|
5833
|
+
player.on(Events.CAPTURE_STREAM_FAILED, e => {
|
|
5834
|
+
this.log("warn", "CAPTURE_STREAM_FAILED");
|
|
5835
|
+
this.log("warn", e);
|
|
5836
|
+
});
|
|
5837
|
+
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5838
|
+
this.log("warn", "WEBRTC_ON_REMOTE_STREAMS");
|
|
5839
|
+
this.log("warn", e);
|
|
5840
|
+
});
|
|
5841
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_MSG, e => {
|
|
5842
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_MSG");
|
|
5843
|
+
this.log("warn", e);
|
|
5844
|
+
});
|
|
5845
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_CLOSE, e => {
|
|
5846
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_CLOSE");
|
|
5847
|
+
this.log("warn", e);
|
|
5848
|
+
});
|
|
5849
|
+
player.on(Events.WEBRTC_ON_DATA_CHANNEL_ERR, e => {
|
|
5850
|
+
this.log("warn", "WEBRTC_ON_DATA_CHANNEL_ERR");
|
|
5851
|
+
this.log("warn", e);
|
|
5828
5852
|
});
|
|
5829
5853
|
player.on(Events.WEBRTC_ON_REMOTE_STREAMS, e => {
|
|
5830
5854
|
this.log("warn", "\u83B7\u53D6\u5230\u4E86\u8FDC\u7AEF\u6D41\uFF0C\u53EF\u4EE5\u64AD\u653E");
|
|
5831
5855
|
});
|
|
5832
5856
|
player.on(Events.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, e => {
|
|
5833
5857
|
this.log("warn", `offer anwser \u4EA4\u6362\u5931\u8D25\uFF0C\u83B7\u53D6\u89C6\u9891\u6D41\u5931\u8D25, ${e}`);
|
|
5834
|
-
this.
|
|
5858
|
+
this.log("warn", e);
|
|
5835
5859
|
});
|
|
5836
5860
|
player.on(Events.DISCONNECTED, e => {
|
|
5837
5861
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u8FDE\u63A5\u65AD\u5F00${videoElm}`);
|
|
5838
|
-
this.
|
|
5862
|
+
this.log("warn", e);
|
|
5839
5863
|
});
|
|
5840
5864
|
player.on(Events.LOST_SERVER, e => {
|
|
5841
5865
|
this.log("warn", `\u4E8B\u4EF6\u68C0\u6D4B\u5230\u89C6\u9891\u670D\u52A1\u5668\u4E22\u5931${videoElm}`);
|
|
5842
|
-
this.
|
|
5866
|
+
this.log("warn", e);
|
|
5843
5867
|
});
|
|
5844
5868
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
5845
|
-
|
|
5869
|
+
this.log("warn", state);
|
|
5846
5870
|
if (state === "disconnected" || state === "failed") {
|
|
5847
5871
|
this.rePlay(videoElm);
|
|
5848
5872
|
}
|
|
@@ -5859,6 +5883,7 @@ class WebRtcMt {
|
|
|
5859
5883
|
}
|
|
5860
5884
|
// 播放
|
|
5861
5885
|
play(videoElm) {
|
|
5886
|
+
console.log("\u5F00\u59CB\u89C6\u9891\u521D\u59CB\u5316");
|
|
5862
5887
|
const plays = this.mediaServerAddrMap.get(videoElm);
|
|
5863
5888
|
const {
|
|
5864
5889
|
sdpUrl
|