react_hsbc_teller 1.9.16 → 1.9.17
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 +17 -7
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ let videoName
|
|
|
59
59
|
let muteJson = new Map()
|
|
60
60
|
let dateTime = 0
|
|
61
61
|
let messageValue = ''
|
|
62
|
-
let beautyType = false
|
|
62
|
+
// let beautyType = false
|
|
63
63
|
// let beautyNum = 0 // 0-关闭 1--弱 2--中 5---高
|
|
64
64
|
let rateList = []
|
|
65
65
|
let beautyDiv = {};
|
|
@@ -108,6 +108,7 @@ function clearStreamRemain() {
|
|
|
108
108
|
document.body.removeChild(beautyDiv.beauty_div);
|
|
109
109
|
beautyDiv.beauty_div = null;
|
|
110
110
|
}
|
|
111
|
+
console.log('clearStreamRemain!!!!!')
|
|
111
112
|
beautyDiv = {};
|
|
112
113
|
};
|
|
113
114
|
async function startBeauty(stream) {
|
|
@@ -167,6 +168,7 @@ class Video extends Component {
|
|
|
167
168
|
}
|
|
168
169
|
cancel = axios.CancelToken.source()
|
|
169
170
|
state = {
|
|
171
|
+
beautyType: false,
|
|
170
172
|
beautyName: '开启美颜',
|
|
171
173
|
signNoClick: false,
|
|
172
174
|
listVideoPicture: [],
|
|
@@ -292,7 +294,7 @@ class Video extends Component {
|
|
|
292
294
|
saveLog = (val) => {
|
|
293
295
|
axios({
|
|
294
296
|
method: 'get',
|
|
295
|
-
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.17&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
296
298
|
|
|
297
299
|
}).then(res => {
|
|
298
300
|
|
|
@@ -808,7 +810,8 @@ class Video extends Component {
|
|
|
808
810
|
// faceFailReason: result.message
|
|
809
811
|
})
|
|
810
812
|
this.errorCodeClick('face',result.code)
|
|
811
|
-
this.saveLog('meeting ID&V error, code=' + result.code )
|
|
813
|
+
// this.saveLog('meeting ID&V error, code=' + result.code )
|
|
814
|
+
this.saveLog('face recognition api error code ' + result.code + '. [ LIVE_SIGN_ALI_FACE_RECOGNITION_ERROR ]')
|
|
812
815
|
}
|
|
813
816
|
|
|
814
817
|
|
|
@@ -2729,6 +2732,13 @@ class Video extends Component {
|
|
|
2729
2732
|
clearStreamRemain()
|
|
2730
2733
|
this.test_controller.LeaveRoom()
|
|
2731
2734
|
this.test_controller.Disconnect()
|
|
2735
|
+
try {
|
|
2736
|
+
beautySetMode('none');
|
|
2737
|
+
beautyStop();
|
|
2738
|
+
console.log('beautyStop!!')
|
|
2739
|
+
} catch (err){
|
|
2740
|
+
console.error(err)
|
|
2741
|
+
}
|
|
2732
2742
|
}
|
|
2733
2743
|
if (this.state.imStatus) {
|
|
2734
2744
|
console.log('disconnect断开连接')
|
|
@@ -2926,7 +2936,7 @@ class Video extends Component {
|
|
|
2926
2936
|
}
|
|
2927
2937
|
}
|
|
2928
2938
|
componentWillMount() {
|
|
2929
|
-
console.log('hsbc_teller_sdk', '1.9.
|
|
2939
|
+
console.log('hsbc_teller_sdk', '1.9.17')
|
|
2930
2940
|
let arr = []
|
|
2931
2941
|
for(let i=1;i<=12;i++){
|
|
2932
2942
|
arr.push({
|
|
@@ -4447,14 +4457,14 @@ class Video extends Component {
|
|
|
4447
4457
|
// publish_config.video_profile_diy={width:640, height:360, frameRate:15, bitrate:400}
|
|
4448
4458
|
// this.test_controller.ChangeMediaStream(publish_config)
|
|
4449
4459
|
// beautyNum = beautyNum == 0 ? 1 : 0
|
|
4450
|
-
if (beautyType) {
|
|
4451
|
-
beautyType = false
|
|
4460
|
+
if (this.state.beautyType) {
|
|
4461
|
+
this.state.beautyType = false
|
|
4452
4462
|
this.setState({
|
|
4453
4463
|
beautyName: '开启美颜'
|
|
4454
4464
|
})
|
|
4455
4465
|
beautySetMode('none')
|
|
4456
4466
|
} else {
|
|
4457
|
-
beautyType = true
|
|
4467
|
+
this.state.beautyType = true
|
|
4458
4468
|
beautySetMode('beauty')
|
|
4459
4469
|
this.setState({
|
|
4460
4470
|
beautyName: '关闭美颜'
|