react_hsbc_teller 1.9.17 → 1.9.19
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 +89 -13
package/package.json
CHANGED
|
@@ -294,7 +294,7 @@ class Video extends Component {
|
|
|
294
294
|
saveLog = (val) => {
|
|
295
295
|
axios({
|
|
296
296
|
method: 'get',
|
|
297
|
-
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.
|
|
297
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.19&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
298
298
|
|
|
299
299
|
}).then(res => {
|
|
300
300
|
|
|
@@ -1427,6 +1427,47 @@ class Video extends Component {
|
|
|
1427
1427
|
this.tabTitlesClick('customerScreen', 'delect')
|
|
1428
1428
|
this.saveLog('app stop sharing screen, typeId=4001, ')
|
|
1429
1429
|
|
|
1430
|
+
} else if (Mival.typeId == 4004) {
|
|
1431
|
+
// 线下demo静音处理
|
|
1432
|
+
if (Mival.data.sessionId == this.state.sessionId && this.isFileSuccuse()) {
|
|
1433
|
+
if (!this.state.voiceStatue) {
|
|
1434
|
+
// 静音本地
|
|
1435
|
+
this.setState({
|
|
1436
|
+
voiceStatue: true,
|
|
1437
|
+
voiceImg: voiceImgCloe,
|
|
1438
|
+
voiceName: '解除静音'
|
|
1439
|
+
});
|
|
1440
|
+
let sid = document.getElementById('publish_video1').name || document.getElementById('publish_streamId1').name;
|
|
1441
|
+
this.test_controller.SetLocalAudioEnable(0, parseInt(sid, 10));
|
|
1442
|
+
callNimIM('sendCustomCmdMsg', {
|
|
1443
|
+
customId: this.state.imRoomId,
|
|
1444
|
+
content: JSON.stringify({
|
|
1445
|
+
'typeId': 1013,
|
|
1446
|
+
'muteStatus': 1,
|
|
1447
|
+
'data': {
|
|
1448
|
+
'sessionId': this.state.sessionId,
|
|
1449
|
+
'userId': this.props.tellerAccount
|
|
1450
|
+
}
|
|
1451
|
+
})
|
|
1452
|
+
}, function (code, message, data) {
|
|
1453
|
+
// console.log(data)
|
|
1454
|
+
})
|
|
1455
|
+
}
|
|
1456
|
+
document.getElementById('audio1').muted = true
|
|
1457
|
+
console.log('音频流静音')
|
|
1458
|
+
console.log(document.getElementById('audio1').muted)
|
|
1459
|
+
setTimeout(() => {
|
|
1460
|
+
callNimIM('sendCustomCmdMsg', {
|
|
1461
|
+
customId: this.state.imRoomId,
|
|
1462
|
+
content: JSON.stringify({
|
|
1463
|
+
'typeId': 1223,
|
|
1464
|
+
'state': 1, // app解除静音
|
|
1465
|
+
'sessionId': this.state.sessionId,
|
|
1466
|
+
'userId': Mival.data.userId //this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
1467
|
+
})
|
|
1468
|
+
});
|
|
1469
|
+
}, 1000);
|
|
1470
|
+
}
|
|
1430
1471
|
} else if (Mival.typeId == 1401) {
|
|
1431
1472
|
// 用户修改名字
|
|
1432
1473
|
if (Mival.sessionId == this.state.sessionId) {
|
|
@@ -1746,7 +1787,49 @@ class Video extends Component {
|
|
|
1746
1787
|
this.customerFaceClick(this.state.customerList[this.state.customerSelect - 1])
|
|
1747
1788
|
}
|
|
1748
1789
|
}
|
|
1749
|
-
|
|
1790
|
+
// 线下demo静音处理
|
|
1791
|
+
if (JSON.parse(msg).typeId == 4004 && this.state.sessionId == JSON.parse(msg).data.sessionId) {
|
|
1792
|
+
if (this.isFileSuccuse()) {
|
|
1793
|
+
if (!this.state.voiceStatue) {
|
|
1794
|
+
// 静音本地
|
|
1795
|
+
this.setState({
|
|
1796
|
+
voiceStatue: true,
|
|
1797
|
+
voiceImg: voiceImgCloe,
|
|
1798
|
+
voiceName: '解除静音'
|
|
1799
|
+
});
|
|
1800
|
+
let sid = document.getElementById('publish_video1').name || document.getElementById('publish_streamId1').name;
|
|
1801
|
+
this.test_controller.SetLocalAudioEnable(0, parseInt(sid, 10));
|
|
1802
|
+
callNimIM('sendCustomCmdMsg', {
|
|
1803
|
+
customId: this.state.imRoomId,
|
|
1804
|
+
content: JSON.stringify({
|
|
1805
|
+
'typeId': 1013,
|
|
1806
|
+
'muteStatus': 1,
|
|
1807
|
+
'data': {
|
|
1808
|
+
'sessionId': this.state.sessionId,
|
|
1809
|
+
'userId': this.props.tellerAccount
|
|
1810
|
+
}
|
|
1811
|
+
})
|
|
1812
|
+
}, function (code, message, data) {
|
|
1813
|
+
// console.log(data)
|
|
1814
|
+
})
|
|
1815
|
+
}
|
|
1816
|
+
document.getElementById('audio1').muted = true
|
|
1817
|
+
console.log('音频流静音')
|
|
1818
|
+
console.log(document.getElementById('audio1').muted)
|
|
1819
|
+
setTimeout(() => {
|
|
1820
|
+
callNimIM('sendCustomCmdMsg', {
|
|
1821
|
+
customId: this.state.imRoomId,
|
|
1822
|
+
content: JSON.stringify({
|
|
1823
|
+
'typeId': 1223,
|
|
1824
|
+
'state': 1, // app解除静音
|
|
1825
|
+
'sessionId': this.state.sessionId,
|
|
1826
|
+
'userId': uid //this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
1827
|
+
})
|
|
1828
|
+
});
|
|
1829
|
+
}, 1000);
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
this.saveLog('mrtc OnReceiveTextMsg info:' + msg)
|
|
1750
1833
|
}
|
|
1751
1834
|
this.test_controller.StreamFilterHandler = async (publish_tag, stream, stream_type, publish_device, media_type) => {
|
|
1752
1835
|
console.log(`stream processed by client, publish_device=${publish_device}, media_type=${media_type}, publish_tag=${publish_tag},stream_type=${stream_type}`);
|
|
@@ -2213,16 +2296,9 @@ class Video extends Component {
|
|
|
2213
2296
|
})
|
|
2214
2297
|
}
|
|
2215
2298
|
}
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
// videoOneName: '',
|
|
2220
|
-
// voiceVideoOne: false,
|
|
2221
|
-
// noVideoOne: false
|
|
2222
|
-
// },()=>{
|
|
2223
|
-
// this.videoListClick()
|
|
2224
|
-
// })
|
|
2225
|
-
// }
|
|
2299
|
+
if (!document.getElementById("video1").name) {
|
|
2300
|
+
document.getElementById('audio1').muted = false
|
|
2301
|
+
}
|
|
2226
2302
|
this.state.analyserData.delete(sid)
|
|
2227
2303
|
if (this.state.isPictureInPicture) {
|
|
2228
2304
|
this.pictureInPicture('Refresh')
|
|
@@ -2936,7 +3012,7 @@ class Video extends Component {
|
|
|
2936
3012
|
}
|
|
2937
3013
|
}
|
|
2938
3014
|
componentWillMount() {
|
|
2939
|
-
console.log('hsbc_teller_sdk', '1.9.
|
|
3015
|
+
console.log('hsbc_teller_sdk', '1.9.19')
|
|
2940
3016
|
let arr = []
|
|
2941
3017
|
for(let i=1;i<=12;i++){
|
|
2942
3018
|
arr.push({
|