react_hsbc_teller 1.3.6 → 1.3.7
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 +9 -1
package/package.json
CHANGED
|
@@ -296,6 +296,7 @@ class Video extends Component {
|
|
|
296
296
|
// initWebSocket('wss://im.uat.dsp.hsbcfts.com.cn:443/wealth/im/ws/')
|
|
297
297
|
// initWebSocket('wss://' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname + ':' + '15603' + '/ws/');
|
|
298
298
|
if(!this.state.imStatus){
|
|
299
|
+
this.state.manualClose = false
|
|
299
300
|
initWebSocket('wss://' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname + ':' + JSON.parse(window.sessionStorage.getItem('sigData')).webPort + '/ws/');
|
|
300
301
|
|
|
301
302
|
}
|
|
@@ -1872,6 +1873,13 @@ class Video extends Component {
|
|
|
1872
1873
|
this.state.rtoken = '',
|
|
1873
1874
|
this.state.sessionId = '',
|
|
1874
1875
|
this.state.imRoomId = ''
|
|
1876
|
+
this.state.imJoinRoom = false
|
|
1877
|
+
if(this.state.imStatus) {
|
|
1878
|
+
console.log('disconnect断开连接')
|
|
1879
|
+
this.state.manualClose = true
|
|
1880
|
+
this.state.imStatus = false
|
|
1881
|
+
disconnect();
|
|
1882
|
+
}
|
|
1875
1883
|
this.test_controller.Disconnect()
|
|
1876
1884
|
let data = {
|
|
1877
1885
|
account: this.props.tellerAccount,
|
|
@@ -4011,7 +4019,7 @@ class Video extends Component {
|
|
|
4011
4019
|
|
|
4012
4020
|
// console.log('addEventListener',x,y,width,height1,height)
|
|
4013
4021
|
|
|
4014
|
-
cobj.drawImage(videoMedia, x, y, width, height, 0, 0,
|
|
4022
|
+
cobj.drawImage(videoMedia, x, y, width, height, 0, 0,1280, 720);
|
|
4015
4023
|
setTimeout(loop, 1000 / 10); // drawing at 30fps
|
|
4016
4024
|
}
|
|
4017
4025
|
}
|