react_hsbc_teller 1.1.5 → 1.1.6
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/demo/demo.js +1 -1
- package/packages/pages/video/video.jsx +15 -4
package/package.json
CHANGED
package/packages/demo/demo.js
CHANGED
|
@@ -14,7 +14,7 @@ class Demo extends Component {
|
|
|
14
14
|
sessionId: '',
|
|
15
15
|
isVideo: false,
|
|
16
16
|
tellerAccount: '00000000',
|
|
17
|
-
callbackUrl: 'http://
|
|
17
|
+
callbackUrl: 'http://182.92.184.31:8720/hsbc/callback',
|
|
18
18
|
businessNumber: '',
|
|
19
19
|
lang: 'zh',
|
|
20
20
|
roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
@@ -726,6 +726,7 @@ class Video extends Component {
|
|
|
726
726
|
workerClick=()=>{
|
|
727
727
|
const canvas = document.createElement('canvas');
|
|
728
728
|
const cobj = canvas.getContext('2d'); // 获取绘图环境
|
|
729
|
+
let microTimerMap = new Map()
|
|
729
730
|
let blob = new Blob([
|
|
730
731
|
`
|
|
731
732
|
let timer;
|
|
@@ -842,6 +843,7 @@ class Video extends Component {
|
|
|
842
843
|
aou(analyser)
|
|
843
844
|
function aou(analyser){
|
|
844
845
|
if(analyser) {
|
|
846
|
+
cancelAnimationFrame(microTimerMap.get(sid))
|
|
845
847
|
let dataArray = new Uint8Array(analyser.frequencyBinCount);
|
|
846
848
|
analyser.getByteFrequencyData(dataArray);
|
|
847
849
|
let step = Math.round(dataArray.length / 60); //采样步长
|
|
@@ -865,7 +867,7 @@ class Video extends Component {
|
|
|
865
867
|
let startY = y1 - height // 绘制起始点y
|
|
866
868
|
cobj.fillRect(startX, startY, width, height )
|
|
867
869
|
}
|
|
868
|
-
requestAnimationFrame(aou.bind(this, analyser))
|
|
870
|
+
microTimerMap.set(sid,requestAnimationFrame(aou.bind(this, analyser)) )
|
|
869
871
|
}
|
|
870
872
|
|
|
871
873
|
|
|
@@ -1590,6 +1592,10 @@ class Video extends Component {
|
|
|
1590
1592
|
'tellerId': this.props.tellerAccount
|
|
1591
1593
|
})
|
|
1592
1594
|
});
|
|
1595
|
+
if(this.state.screenName == '取消共享') {
|
|
1596
|
+
this.state.isSharedScreen = true
|
|
1597
|
+
this.state.isScreenSwitching = false
|
|
1598
|
+
}
|
|
1593
1599
|
}
|
|
1594
1600
|
if(sid == document.getElementById('publish_video1').name) {
|
|
1595
1601
|
this.setState({
|
|
@@ -2331,7 +2337,12 @@ class Video extends Component {
|
|
|
2331
2337
|
loading: false
|
|
2332
2338
|
})
|
|
2333
2339
|
}
|
|
2334
|
-
|
|
2340
|
+
if (sid == document.getElementById('video20').name) {
|
|
2341
|
+
if(this.state.screenName == '取消共享') {
|
|
2342
|
+
this.state.isSharedScreen = true
|
|
2343
|
+
this.state.isScreenSwitching = false
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2335
2346
|
};
|
|
2336
2347
|
// 切流失败通知
|
|
2337
2348
|
this.test_controller.OnChangeMediaStreamFailed = (
|
|
@@ -2894,8 +2905,8 @@ class Video extends Component {
|
|
|
2894
2905
|
publish_config.publish_tag = 'projectionWhiteboard'
|
|
2895
2906
|
this.test_controller.Publish(publish_config)
|
|
2896
2907
|
}
|
|
2897
|
-
this.state.isSharedScreen = true
|
|
2898
|
-
this.state.isScreenSwitching = false
|
|
2908
|
+
// this.state.isSharedScreen = true
|
|
2909
|
+
// this.state.isScreenSwitching = false
|
|
2899
2910
|
this.setState({
|
|
2900
2911
|
screenName: '取消共享',
|
|
2901
2912
|
isPDF: false
|