mtxt-ui3 0.0.45 → 0.0.46
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 +3 -19
- package/dist/components/index.js +3 -19
- package/dist/hooks/index.cjs +3 -19
- package/dist/hooks/index.js +3 -19
- package/dist/index.cjs +4 -20
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -20
- package/dist/video/index.cjs +3 -19
- package/dist/video/index.js +3 -19
- package/package.json +1 -1
|
@@ -6508,25 +6508,9 @@ class WebRtcMt$1 {
|
|
|
6508
6508
|
// 拉流创建播放器
|
|
6509
6509
|
createVideo(plays) {
|
|
6510
6510
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
return new Promise((resolve, reject) => {
|
|
6515
|
-
fetch(addRtspProxyUrl, {
|
|
6516
|
-
method: "GET"
|
|
6517
|
-
}).then(response => {
|
|
6518
|
-
response.json().then(res => {
|
|
6519
|
-
if (res.code === 0) {
|
|
6520
|
-
this.startPlay(plays);
|
|
6521
|
-
resolve(res);
|
|
6522
|
-
} else {
|
|
6523
|
-
reject("error");
|
|
6524
|
-
}
|
|
6525
|
-
});
|
|
6526
|
-
}).catch(err => {
|
|
6527
|
-
reject("error");
|
|
6528
|
-
});
|
|
6529
|
-
});
|
|
6511
|
+
this.createRtspUrl(plays);
|
|
6512
|
+
this.startPlay(plays);
|
|
6513
|
+
return "success";
|
|
6530
6514
|
}
|
|
6531
6515
|
log(type, text) {
|
|
6532
6516
|
switch (type) {
|
package/dist/components/index.js
CHANGED
|
@@ -6498,25 +6498,9 @@ class WebRtcMt$1 {
|
|
|
6498
6498
|
// 拉流创建播放器
|
|
6499
6499
|
createVideo(plays) {
|
|
6500
6500
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
return new Promise((resolve, reject) => {
|
|
6505
|
-
fetch(addRtspProxyUrl, {
|
|
6506
|
-
method: "GET"
|
|
6507
|
-
}).then(response => {
|
|
6508
|
-
response.json().then(res => {
|
|
6509
|
-
if (res.code === 0) {
|
|
6510
|
-
this.startPlay(plays);
|
|
6511
|
-
resolve(res);
|
|
6512
|
-
} else {
|
|
6513
|
-
reject("error");
|
|
6514
|
-
}
|
|
6515
|
-
});
|
|
6516
|
-
}).catch(err => {
|
|
6517
|
-
reject("error");
|
|
6518
|
-
});
|
|
6519
|
-
});
|
|
6501
|
+
this.createRtspUrl(plays);
|
|
6502
|
+
this.startPlay(plays);
|
|
6503
|
+
return "success";
|
|
6520
6504
|
}
|
|
6521
6505
|
log(type, text) {
|
|
6522
6506
|
switch (type) {
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -5919,25 +5919,9 @@ class WebRtcMt {
|
|
|
5919
5919
|
// 拉流创建播放器
|
|
5920
5920
|
createVideo(plays) {
|
|
5921
5921
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
return new Promise((resolve, reject) => {
|
|
5926
|
-
fetch(addRtspProxyUrl, {
|
|
5927
|
-
method: "GET"
|
|
5928
|
-
}).then(response => {
|
|
5929
|
-
response.json().then(res => {
|
|
5930
|
-
if (res.code === 0) {
|
|
5931
|
-
this.startPlay(plays);
|
|
5932
|
-
resolve(res);
|
|
5933
|
-
} else {
|
|
5934
|
-
reject("error");
|
|
5935
|
-
}
|
|
5936
|
-
});
|
|
5937
|
-
}).catch(err => {
|
|
5938
|
-
reject("error");
|
|
5939
|
-
});
|
|
5940
|
-
});
|
|
5922
|
+
this.createRtspUrl(plays);
|
|
5923
|
+
this.startPlay(plays);
|
|
5924
|
+
return "success";
|
|
5941
5925
|
}
|
|
5942
5926
|
log(type, text) {
|
|
5943
5927
|
switch (type) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -5910,25 +5910,9 @@ class WebRtcMt {
|
|
|
5910
5910
|
// 拉流创建播放器
|
|
5911
5911
|
createVideo(plays) {
|
|
5912
5912
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
return new Promise((resolve, reject) => {
|
|
5917
|
-
fetch(addRtspProxyUrl, {
|
|
5918
|
-
method: "GET"
|
|
5919
|
-
}).then(response => {
|
|
5920
|
-
response.json().then(res => {
|
|
5921
|
-
if (res.code === 0) {
|
|
5922
|
-
this.startPlay(plays);
|
|
5923
|
-
resolve(res);
|
|
5924
|
-
} else {
|
|
5925
|
-
reject("error");
|
|
5926
|
-
}
|
|
5927
|
-
});
|
|
5928
|
-
}).catch(err => {
|
|
5929
|
-
reject("error");
|
|
5930
|
-
});
|
|
5931
|
-
});
|
|
5913
|
+
this.createRtspUrl(plays);
|
|
5914
|
+
this.startPlay(plays);
|
|
5915
|
+
return "success";
|
|
5932
5916
|
}
|
|
5933
5917
|
log(type, text) {
|
|
5934
5918
|
switch (type) {
|
package/dist/index.cjs
CHANGED
|
@@ -21,7 +21,7 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
|
21
21
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
22
22
|
var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
|
|
23
23
|
|
|
24
|
-
var version = "0.0.
|
|
24
|
+
var version = "0.0.45";
|
|
25
25
|
|
|
26
26
|
const setRem = opt => {
|
|
27
27
|
const fontSize = opt.fontSize || 14;
|
|
@@ -6523,25 +6523,9 @@ class WebRtcMt$1 {
|
|
|
6523
6523
|
// 拉流创建播放器
|
|
6524
6524
|
createVideo(plays) {
|
|
6525
6525
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
return new Promise((resolve, reject) => {
|
|
6530
|
-
fetch(addRtspProxyUrl, {
|
|
6531
|
-
method: "GET"
|
|
6532
|
-
}).then(response => {
|
|
6533
|
-
response.json().then(res => {
|
|
6534
|
-
if (res.code === 0) {
|
|
6535
|
-
this.startPlay(plays);
|
|
6536
|
-
resolve(res);
|
|
6537
|
-
} else {
|
|
6538
|
-
reject("error");
|
|
6539
|
-
}
|
|
6540
|
-
});
|
|
6541
|
-
}).catch(err => {
|
|
6542
|
-
reject("error");
|
|
6543
|
-
});
|
|
6544
|
-
});
|
|
6526
|
+
this.createRtspUrl(plays);
|
|
6527
|
+
this.startPlay(plays);
|
|
6528
|
+
return "success";
|
|
6545
6529
|
}
|
|
6546
6530
|
log(type, text) {
|
|
6547
6531
|
switch (type) {
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { SearchOutlined, CaretUpOutlined, CaretRightOutlined, CaretDownOutlined,
|
|
|
9
9
|
import 'ant-design-vue/dist/antd.less';
|
|
10
10
|
import zhCN from 'dayjs/locale/zh-cn';
|
|
11
11
|
|
|
12
|
-
var version = "0.0.
|
|
12
|
+
var version = "0.0.45";
|
|
13
13
|
|
|
14
14
|
const setRem = opt => {
|
|
15
15
|
const fontSize = opt.fontSize || 14;
|
|
@@ -6511,25 +6511,9 @@ class WebRtcMt$1 {
|
|
|
6511
6511
|
// 拉流创建播放器
|
|
6512
6512
|
createVideo(plays) {
|
|
6513
6513
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
return new Promise((resolve, reject) => {
|
|
6518
|
-
fetch(addRtspProxyUrl, {
|
|
6519
|
-
method: "GET"
|
|
6520
|
-
}).then(response => {
|
|
6521
|
-
response.json().then(res => {
|
|
6522
|
-
if (res.code === 0) {
|
|
6523
|
-
this.startPlay(plays);
|
|
6524
|
-
resolve(res);
|
|
6525
|
-
} else {
|
|
6526
|
-
reject("error");
|
|
6527
|
-
}
|
|
6528
|
-
});
|
|
6529
|
-
}).catch(err => {
|
|
6530
|
-
reject("error");
|
|
6531
|
-
});
|
|
6532
|
-
});
|
|
6514
|
+
this.createRtspUrl(plays);
|
|
6515
|
+
this.startPlay(plays);
|
|
6516
|
+
return "success";
|
|
6533
6517
|
}
|
|
6534
6518
|
log(type, text) {
|
|
6535
6519
|
switch (type) {
|
package/dist/video/index.cjs
CHANGED
|
@@ -5736,25 +5736,9 @@ class WebRtcMt$1 {
|
|
|
5736
5736
|
// 拉流创建播放器
|
|
5737
5737
|
createVideo(plays) {
|
|
5738
5738
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
return new Promise((resolve, reject) => {
|
|
5743
|
-
fetch(addRtspProxyUrl, {
|
|
5744
|
-
method: "GET"
|
|
5745
|
-
}).then(response => {
|
|
5746
|
-
response.json().then(res => {
|
|
5747
|
-
if (res.code === 0) {
|
|
5748
|
-
this.startPlay(plays);
|
|
5749
|
-
resolve(res);
|
|
5750
|
-
} else {
|
|
5751
|
-
reject("error");
|
|
5752
|
-
}
|
|
5753
|
-
});
|
|
5754
|
-
}).catch(err => {
|
|
5755
|
-
reject("error");
|
|
5756
|
-
});
|
|
5757
|
-
});
|
|
5739
|
+
this.createRtspUrl(plays);
|
|
5740
|
+
this.startPlay(plays);
|
|
5741
|
+
return "success";
|
|
5758
5742
|
}
|
|
5759
5743
|
log(type, text) {
|
|
5760
5744
|
switch (type) {
|
package/dist/video/index.js
CHANGED
|
@@ -5728,25 +5728,9 @@ class WebRtcMt$1 {
|
|
|
5728
5728
|
// 拉流创建播放器
|
|
5729
5729
|
createVideo(plays) {
|
|
5730
5730
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
return new Promise((resolve, reject) => {
|
|
5735
|
-
fetch(addRtspProxyUrl, {
|
|
5736
|
-
method: "GET"
|
|
5737
|
-
}).then(response => {
|
|
5738
|
-
response.json().then(res => {
|
|
5739
|
-
if (res.code === 0) {
|
|
5740
|
-
this.startPlay(plays);
|
|
5741
|
-
resolve(res);
|
|
5742
|
-
} else {
|
|
5743
|
-
reject("error");
|
|
5744
|
-
}
|
|
5745
|
-
});
|
|
5746
|
-
}).catch(err => {
|
|
5747
|
-
reject("error");
|
|
5748
|
-
});
|
|
5749
|
-
});
|
|
5731
|
+
this.createRtspUrl(plays);
|
|
5732
|
+
this.startPlay(plays);
|
|
5733
|
+
return "success";
|
|
5750
5734
|
}
|
|
5751
5735
|
log(type, text) {
|
|
5752
5736
|
switch (type) {
|