react_hsbc_teller 1.9.18 → 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 +51 -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,6 +1787,7 @@ class Video extends Component {
|
|
|
1746
1787
|
this.customerFaceClick(this.state.customerList[this.state.customerSelect - 1])
|
|
1747
1788
|
}
|
|
1748
1789
|
}
|
|
1790
|
+
// 线下demo静音处理
|
|
1749
1791
|
if (JSON.parse(msg).typeId == 4004 && this.state.sessionId == JSON.parse(msg).data.sessionId) {
|
|
1750
1792
|
if (this.isFileSuccuse()) {
|
|
1751
1793
|
if (!this.state.voiceStatue) {
|
|
@@ -1771,6 +1813,9 @@ class Video extends Component {
|
|
|
1771
1813
|
// console.log(data)
|
|
1772
1814
|
})
|
|
1773
1815
|
}
|
|
1816
|
+
document.getElementById('audio1').muted = true
|
|
1817
|
+
console.log('音频流静音')
|
|
1818
|
+
console.log(document.getElementById('audio1').muted)
|
|
1774
1819
|
setTimeout(() => {
|
|
1775
1820
|
callNimIM('sendCustomCmdMsg', {
|
|
1776
1821
|
customId: this.state.imRoomId,
|
|
@@ -1784,7 +1829,7 @@ class Video extends Component {
|
|
|
1784
1829
|
}, 1000);
|
|
1785
1830
|
}
|
|
1786
1831
|
}
|
|
1787
|
-
this.saveLog('mrtc OnReceiveTextMsg info:'
|
|
1832
|
+
this.saveLog('mrtc OnReceiveTextMsg info:' + msg)
|
|
1788
1833
|
}
|
|
1789
1834
|
this.test_controller.StreamFilterHandler = async (publish_tag, stream, stream_type, publish_device, media_type) => {
|
|
1790
1835
|
console.log(`stream processed by client, publish_device=${publish_device}, media_type=${media_type}, publish_tag=${publish_tag},stream_type=${stream_type}`);
|
|
@@ -2251,16 +2296,9 @@ class Video extends Component {
|
|
|
2251
2296
|
})
|
|
2252
2297
|
}
|
|
2253
2298
|
}
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
// videoOneName: '',
|
|
2258
|
-
// voiceVideoOne: false,
|
|
2259
|
-
// noVideoOne: false
|
|
2260
|
-
// },()=>{
|
|
2261
|
-
// this.videoListClick()
|
|
2262
|
-
// })
|
|
2263
|
-
// }
|
|
2299
|
+
if (!document.getElementById("video1").name) {
|
|
2300
|
+
document.getElementById('audio1').muted = false
|
|
2301
|
+
}
|
|
2264
2302
|
this.state.analyserData.delete(sid)
|
|
2265
2303
|
if (this.state.isPictureInPicture) {
|
|
2266
2304
|
this.pictureInPicture('Refresh')
|
|
@@ -2974,7 +3012,7 @@ class Video extends Component {
|
|
|
2974
3012
|
}
|
|
2975
3013
|
}
|
|
2976
3014
|
componentWillMount() {
|
|
2977
|
-
console.log('hsbc_teller_sdk', '1.9.
|
|
3015
|
+
console.log('hsbc_teller_sdk', '1.9.19')
|
|
2978
3016
|
let arr = []
|
|
2979
3017
|
for(let i=1;i<=12;i++){
|
|
2980
3018
|
arr.push({
|