react_hsbc_teller 1.9.22 → 1.9.24
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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +8 -21
package/package.json
CHANGED
|
@@ -296,7 +296,7 @@ class Video extends Component {
|
|
|
296
296
|
saveLog = (val) => {
|
|
297
297
|
axios({
|
|
298
298
|
method: 'get',
|
|
299
|
-
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.
|
|
299
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.24&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
300
300
|
|
|
301
301
|
}).then(res => {
|
|
302
302
|
|
|
@@ -1774,23 +1774,6 @@ class Video extends Component {
|
|
|
1774
1774
|
if (publish_tag == 'tag1') {
|
|
1775
1775
|
console.log('tag1', stream)
|
|
1776
1776
|
let newStream = stream;
|
|
1777
|
-
// if (stream.getVideoTracks()[0]) {
|
|
1778
|
-
// await startBeauty(newStream);
|
|
1779
|
-
// newStream = beautyCaptureStream();
|
|
1780
|
-
// // 清理原始流
|
|
1781
|
-
// newStream.oninactive = function () {
|
|
1782
|
-
// clearOriginStream(stream);
|
|
1783
|
-
// };
|
|
1784
|
-
// newStream.getVideoTracks()[0].onended = function () {
|
|
1785
|
-
// clearOriginStream(stream);
|
|
1786
|
-
// };
|
|
1787
|
-
// function clearOriginStream(stream) {
|
|
1788
|
-
// stream.getTracks().forEach((track) => {
|
|
1789
|
-
// track.stop();
|
|
1790
|
-
// });
|
|
1791
|
-
// stream = null;
|
|
1792
|
-
// }
|
|
1793
|
-
// };
|
|
1794
1777
|
if (stream.getVideoTracks()[0]) {
|
|
1795
1778
|
await startBeauty(newStream);
|
|
1796
1779
|
newStream = beautyCaptureStream();
|
|
@@ -1817,8 +1800,6 @@ class Video extends Component {
|
|
|
1817
1800
|
}
|
|
1818
1801
|
|
|
1819
1802
|
if (publish_tag == 'projectionWhiteboard' && publish_device == 2) {
|
|
1820
|
-
// this.graffiti()
|
|
1821
|
-
console.log('projectionWhiteboard', stream)
|
|
1822
1803
|
let newStream1 = stream;
|
|
1823
1804
|
if (stream.getVideoTracks()[0]) {
|
|
1824
1805
|
if (this.state.operateShow) {
|
|
@@ -1832,9 +1813,12 @@ class Video extends Component {
|
|
|
1832
1813
|
canvas.width = this.state.widthVideo
|
|
1833
1814
|
} else {
|
|
1834
1815
|
await startMix(newStream1, 'none');
|
|
1816
|
+
isGraffiti = false
|
|
1835
1817
|
}
|
|
1836
1818
|
|
|
1837
1819
|
newStream1 = mixCaptureStream();
|
|
1820
|
+
newStream1.getVideoTracks()[0].contentHint = "text"; // 解决清晰度问题
|
|
1821
|
+
|
|
1838
1822
|
console.log('projectionWhiteboard1', newStream1)
|
|
1839
1823
|
// 清理原始流
|
|
1840
1824
|
newStream1.oninactive = function () {
|
|
@@ -1850,6 +1834,9 @@ class Video extends Component {
|
|
|
1850
1834
|
stream = null;
|
|
1851
1835
|
}
|
|
1852
1836
|
}
|
|
1837
|
+
if (stream.getAudioTracks()[0] && newStream1.addTrack) {
|
|
1838
|
+
newStream1.addTrack(stream.getAudioTracks()[0])
|
|
1839
|
+
}
|
|
1853
1840
|
return newStream1
|
|
1854
1841
|
}
|
|
1855
1842
|
return stream
|
|
@@ -2947,7 +2934,7 @@ class Video extends Component {
|
|
|
2947
2934
|
}
|
|
2948
2935
|
}
|
|
2949
2936
|
componentWillMount() {
|
|
2950
|
-
console.log('hsbc_teller_sdk', '1.9.
|
|
2937
|
+
console.log('hsbc_teller_sdk', '1.9.24')
|
|
2951
2938
|
let arr = []
|
|
2952
2939
|
for(let i=1;i<=12;i++){
|
|
2953
2940
|
arr.push({
|