react_hsbc_teller 2.0.87 → 2.0.89
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/README.md +5 -0
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +17 -12
package/package.json
CHANGED
|
@@ -66,7 +66,7 @@ import axios from 'axios';
|
|
|
66
66
|
import CryptoJS from "crypto-js";
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
const SDK_VERISON = '2.0.
|
|
69
|
+
const SDK_VERISON = '2.0.89'
|
|
70
70
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
71
71
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
72
72
|
const { Option } = Select;
|
|
@@ -2229,6 +2229,11 @@ class Video extends Component {
|
|
|
2229
2229
|
this.props.closePdfCallback({
|
|
2230
2230
|
step: Mival.data.step
|
|
2231
2231
|
})
|
|
2232
|
+
} else if (Mival.typeId == 4200) {
|
|
2233
|
+
this.saveLog('IM TYPE ' + Mival.typeId + this.state.sessionId + Mival.data.sessionId )
|
|
2234
|
+
if(this.state.sessionId == Mival.data.sessionId ) {
|
|
2235
|
+
this.messageClick('客户端音量过低', 'error')
|
|
2236
|
+
}
|
|
2232
2237
|
}
|
|
2233
2238
|
}
|
|
2234
2239
|
getUserTitle = (userId) => {
|
|
@@ -2607,11 +2612,11 @@ class Video extends Component {
|
|
|
2607
2612
|
const playAudioTip = (code) => {
|
|
2608
2613
|
this.messageClick('媒体流服务异常断开,请刷新', 'error')
|
|
2609
2614
|
if(code == 5003) {
|
|
2610
|
-
this.state.mediaErrorModalMessage = '媒体流获取失败,请刷新('+ code + ')'
|
|
2615
|
+
this.state.mediaErrorModalMessage = '媒体流获取失败,请刷新('+ code + '),如您当前正在投屏操作,请在浏览器刷新后重新投屏'
|
|
2611
2616
|
} else if(code == 5004 || code == 5010) {
|
|
2612
|
-
this.state.mediaErrorModalMessage = '媒体流网络异常,请刷新('+ code + ')'
|
|
2617
|
+
this.state.mediaErrorModalMessage = '媒体流网络异常,请刷新('+ code + '),如您当前正在投屏操作,请在浏览器刷新后重新投屏'
|
|
2613
2618
|
} else {
|
|
2614
|
-
this.state.mediaErrorModalMessage = '媒体流服务异常,请刷新('+ code + ')'
|
|
2619
|
+
this.state.mediaErrorModalMessage = '媒体流服务异常,请刷新('+ code + '),如您当前正在投屏操作,请在浏览器刷新后重新投屏'
|
|
2615
2620
|
}
|
|
2616
2621
|
this.setState({
|
|
2617
2622
|
mediaErrorModalVisible: true,
|
|
@@ -3959,13 +3964,13 @@ class Video extends Component {
|
|
|
3959
3964
|
switch (sid) {
|
|
3960
3965
|
case publish_sid:
|
|
3961
3966
|
volumeView = "publish_volumeView";
|
|
3962
|
-
if (!this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) == 0) {
|
|
3963
|
-
|
|
3964
|
-
}
|
|
3965
|
-
if (this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) != 0) {
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
}
|
|
3967
|
+
// if (!this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) == 0) {
|
|
3968
|
+
// this.volumeFunctionTimer = setTimeout(this.volumeFunction.bind(this, sid), 15000)
|
|
3969
|
+
// }
|
|
3970
|
+
// if (this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) != 0) {
|
|
3971
|
+
// clearTimeout(this.volumeFunctionTimer)
|
|
3972
|
+
// this.volumeFunctionTimer = null
|
|
3973
|
+
// }
|
|
3969
3974
|
break;
|
|
3970
3975
|
case subscribe_sid1:
|
|
3971
3976
|
volumeView = "subscribe_volumeView1";
|
|
@@ -4362,7 +4367,7 @@ class Video extends Component {
|
|
|
4362
4367
|
clearTimeout(this.ipadLowPowerPlayTimer)
|
|
4363
4368
|
clearTimeout(this.mediaErrorPlayTimer)
|
|
4364
4369
|
clearTimeout(this.screenSharedTimer)
|
|
4365
|
-
clearTimeout(this.volumeFunctionTimer)
|
|
4370
|
+
// clearTimeout(this.volumeFunctionTimer)
|
|
4366
4371
|
clearTimeout(this.volumePlayTimer)
|
|
4367
4372
|
clearInterval(this.state.drawCanvasInterval)
|
|
4368
4373
|
clearInterval(this.state.faceDetectionTimer);
|