react_hsbc_teller 1.0.1 → 1.0.2
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 +82 -146
package/package.json
CHANGED
|
@@ -41,6 +41,8 @@ class Video extends Component {
|
|
|
41
41
|
cancel = axios.CancelToken.source()
|
|
42
42
|
signCanvas = React.createRef();
|
|
43
43
|
state = {
|
|
44
|
+
whiteboardWidth: '',
|
|
45
|
+
whiteboardHeight: '',
|
|
44
46
|
laveRoomSharedScreen: false,
|
|
45
47
|
isJoinRoom: false,
|
|
46
48
|
sessionType: false,
|
|
@@ -68,7 +70,6 @@ class Video extends Component {
|
|
|
68
70
|
voiceImg: voiceImgOpen,
|
|
69
71
|
voiceName: '静音',
|
|
70
72
|
isCustomer: false,
|
|
71
|
-
publishDevic: 1,
|
|
72
73
|
isSharedScreen: false,
|
|
73
74
|
isSuspend: false,
|
|
74
75
|
audioed: false,
|
|
@@ -152,9 +153,10 @@ class Video extends Component {
|
|
|
152
153
|
mtoken: this.state.rtoken
|
|
153
154
|
});
|
|
154
155
|
console.log(result);
|
|
156
|
+
this.state.imRoomId = result.imRoomId,
|
|
157
|
+
this.state.sessionId = result.sessionId,
|
|
155
158
|
this.setState({
|
|
156
|
-
|
|
157
|
-
sessionId: result.sessionId,
|
|
159
|
+
|
|
158
160
|
loading: false,
|
|
159
161
|
});
|
|
160
162
|
let publish_config = {}
|
|
@@ -169,9 +171,7 @@ class Video extends Component {
|
|
|
169
171
|
// eslint-disable-next-line no-undef
|
|
170
172
|
if(this.state.imStatus) {
|
|
171
173
|
joinRoom((this.props.tellerAccount + '@' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname), this.state.imRoomId)
|
|
172
|
-
|
|
173
|
-
imJoinRoom:true
|
|
174
|
-
})
|
|
174
|
+
this.state.imJoinRoom =true
|
|
175
175
|
console.log('加入IM房间')
|
|
176
176
|
}
|
|
177
177
|
this.props.createRoomCallback({
|
|
@@ -187,10 +187,8 @@ class Video extends Component {
|
|
|
187
187
|
})
|
|
188
188
|
} catch (err) {
|
|
189
189
|
console.error(err);
|
|
190
|
-
|
|
191
|
-
this.
|
|
192
|
-
sessionType: false
|
|
193
|
-
})
|
|
190
|
+
|
|
191
|
+
this.state.sessionType = false
|
|
194
192
|
if(err.status == 502 || err.status== 404) {
|
|
195
193
|
this.roomCallBack(2, '连接服务器失败','SYS-02')
|
|
196
194
|
} else {
|
|
@@ -214,11 +212,9 @@ class Video extends Component {
|
|
|
214
212
|
let result = await API.mpaasSig({ account: data.account, type: data.type });
|
|
215
213
|
console.log(result);
|
|
216
214
|
window.sessionStorage.setItem('alimpassSig', result.mpsSig);
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
bizName: result.bizName
|
|
221
|
-
});
|
|
215
|
+
this.state.workSpaceId = result.workSpaceId,
|
|
216
|
+
this.state.appId = result.appId,
|
|
217
|
+
this.state.bizName = result.bizName
|
|
222
218
|
// const data1={
|
|
223
219
|
// hostname: 'im.uat.dsp.hsbcfts.com.cn',
|
|
224
220
|
// webPort: '443',
|
|
@@ -569,8 +565,8 @@ class Video extends Component {
|
|
|
569
565
|
// 人脸识别
|
|
570
566
|
facialRecognition = () => {
|
|
571
567
|
if (this.isFileSuccuse()) {
|
|
568
|
+
this.state.faceCustomerType = 1
|
|
572
569
|
this.setState({
|
|
573
|
-
faceCustomerType: 1,
|
|
574
570
|
titleModal: '人脸识别'
|
|
575
571
|
})
|
|
576
572
|
this.selectCustomer('facial')
|
|
@@ -578,8 +574,8 @@ class Video extends Component {
|
|
|
578
574
|
};
|
|
579
575
|
ocrClick = () => {
|
|
580
576
|
if (this.isFileSuccuse()) {
|
|
577
|
+
this.state.faceCustomerType = 2
|
|
581
578
|
this.setState({
|
|
582
|
-
faceCustomerType: 2,
|
|
583
579
|
titleModal: 'OCR识别'
|
|
584
580
|
})
|
|
585
581
|
this.selectCustomer('ocr')
|
|
@@ -873,18 +869,14 @@ class Video extends Component {
|
|
|
873
869
|
//可获取画中画窗口的一些数据,如宽高等
|
|
874
870
|
pictureInPictureVideo.style.display = 'block';
|
|
875
871
|
pictureInPictureVideo.play();
|
|
876
|
-
|
|
877
|
-
isPictureInPicture: true
|
|
878
|
-
})
|
|
872
|
+
this.state.isPictureInPicture = true
|
|
879
873
|
});
|
|
880
874
|
|
|
881
875
|
pictureInPictureVideo.addEventListener('leavepictureinpicture', (event) => {
|
|
882
876
|
pictureInPictureVideo.srcObject = null;
|
|
883
877
|
pictureInPictureVideo.style.display = "none";
|
|
884
878
|
clearInterval(interval);
|
|
885
|
-
this.
|
|
886
|
-
isPictureInPicture: false
|
|
887
|
-
})
|
|
879
|
+
this.state.isPictureInPicture = false
|
|
888
880
|
});
|
|
889
881
|
}
|
|
890
882
|
roomCallBack = (type, manege,code) => {
|
|
@@ -1141,14 +1133,10 @@ class Video extends Component {
|
|
|
1141
1133
|
} else if (Mival.type == 2) {
|
|
1142
1134
|
this.tabTitlesClick('RMWhiteboard', 'delect')
|
|
1143
1135
|
if (this.state.isSharedScreen) {
|
|
1144
|
-
this.
|
|
1145
|
-
isWhiteboard: false,
|
|
1146
|
-
})
|
|
1136
|
+
this.state.isWhiteboard = false
|
|
1147
1137
|
} else {
|
|
1148
1138
|
this.test_controller.UnPublish(document.getElementById('video20').name)
|
|
1149
|
-
this.
|
|
1150
|
-
isWhiteboard: false,
|
|
1151
|
-
})
|
|
1139
|
+
this.state.isWhiteboard = false
|
|
1152
1140
|
}
|
|
1153
1141
|
}
|
|
1154
1142
|
|
|
@@ -1331,19 +1319,13 @@ class Video extends Component {
|
|
|
1331
1319
|
window.IMOpenfire = msg =>{
|
|
1332
1320
|
console.log('im登录', msg)
|
|
1333
1321
|
if(!msg) {
|
|
1334
|
-
this.
|
|
1335
|
-
sessionType: false
|
|
1336
|
-
})
|
|
1322
|
+
this.state.sessionType = false
|
|
1337
1323
|
this.roomCallBack(2, 'im建立连接失败',5)
|
|
1338
1324
|
} else {
|
|
1339
|
-
|
|
1340
|
-
imStatus: msg
|
|
1341
|
-
})
|
|
1325
|
+
this.state.imStatus = msg
|
|
1342
1326
|
if(this.state.imRoomId && !this.state.imJoinRoom) {
|
|
1343
1327
|
joinRoom((this.props.tellerAccount + '@' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname), this.state.imRoomId)
|
|
1344
|
-
|
|
1345
|
-
imJoinRoom:true
|
|
1346
|
-
})
|
|
1328
|
+
this.state.imJoinRoom =true
|
|
1347
1329
|
console.log('加入im房间')
|
|
1348
1330
|
}
|
|
1349
1331
|
}
|
|
@@ -1456,9 +1438,7 @@ class Video extends Component {
|
|
|
1456
1438
|
// 获取设备失败
|
|
1457
1439
|
this.test_controller.OnGetDevicesFailed = (code, msg) => {
|
|
1458
1440
|
console.log('获取设备失败', code, msg)
|
|
1459
|
-
this.
|
|
1460
|
-
sessionType: false
|
|
1461
|
-
})
|
|
1441
|
+
this.state.sessionType = false
|
|
1462
1442
|
this.messageClick('获取设备失败,请检查摄像头设备是否可用或是否禁用摄像头','error')
|
|
1463
1443
|
this.roomCallBack(2, '获取设备失败',1)
|
|
1464
1444
|
};
|
|
@@ -1469,9 +1449,7 @@ class Video extends Component {
|
|
|
1469
1449
|
};
|
|
1470
1450
|
this.test_controller.OnConnectFailed = (code, msg) => {
|
|
1471
1451
|
console.log('建立连接失败', code, msg)
|
|
1472
|
-
this.
|
|
1473
|
-
sessionType: false
|
|
1474
|
-
})
|
|
1452
|
+
this.state.sessionType = false
|
|
1475
1453
|
this.roomCallBack(2, '连接失败',2)
|
|
1476
1454
|
};
|
|
1477
1455
|
// 断开连接回调
|
|
@@ -1486,9 +1464,7 @@ class Video extends Component {
|
|
|
1486
1464
|
// 初始化房间失败
|
|
1487
1465
|
this.test_controller.OnInitRoomConfigFail = (err_code, err_msg) => {
|
|
1488
1466
|
console.log('初始化房间失败', err_code, err_msg)
|
|
1489
|
-
this.
|
|
1490
|
-
sessionType: false
|
|
1491
|
-
})
|
|
1467
|
+
this.state.sessionType = false
|
|
1492
1468
|
this.roomCallBack(2, '初始化失败',3)
|
|
1493
1469
|
};
|
|
1494
1470
|
// 初始化成功回调
|
|
@@ -1506,18 +1482,14 @@ class Video extends Component {
|
|
|
1506
1482
|
|
|
1507
1483
|
this.test_controller.OnCreateRoomSucc = (room_id, rtoken) => {
|
|
1508
1484
|
console.log('创建房间成功', room_id, rtoken);
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
rtoken: rtoken
|
|
1512
|
-
});
|
|
1485
|
+
this.state.channelId = room_id,
|
|
1486
|
+
this.state.rtoken = rtoken
|
|
1513
1487
|
this.createRoom()
|
|
1514
1488
|
};
|
|
1515
1489
|
// 创建房间失败
|
|
1516
1490
|
this.test_controller.OnCreateRoomFailed = (err_code, err_msg) => {
|
|
1517
1491
|
console.log('创建房间失败', err_code, err_msg)
|
|
1518
|
-
this.
|
|
1519
|
-
sessionType: false
|
|
1520
|
-
})
|
|
1492
|
+
this.state.sessionType = false
|
|
1521
1493
|
this.roomCallBack(2, '创建房间失败',7)
|
|
1522
1494
|
};
|
|
1523
1495
|
// 初始化⾳视频成功
|
|
@@ -1554,12 +1526,10 @@ class Video extends Component {
|
|
|
1554
1526
|
// isJoinRoom: true
|
|
1555
1527
|
// })
|
|
1556
1528
|
// this.roomCallBack(2, '加入失败',-5)
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
imRoomId: ''
|
|
1562
|
-
});
|
|
1529
|
+
this.state.channelId = '',
|
|
1530
|
+
this.state.rtoken = '',
|
|
1531
|
+
this.state.sessionId = '',
|
|
1532
|
+
this.state.imRoomId = ''
|
|
1563
1533
|
|
|
1564
1534
|
this.test_controller.Disconnect()
|
|
1565
1535
|
let data = {
|
|
@@ -1572,9 +1542,7 @@ class Video extends Component {
|
|
|
1572
1542
|
// 发布媒体流成功
|
|
1573
1543
|
this.test_controller.OnPublishSucc = (sid) => {
|
|
1574
1544
|
console.log('发布媒体流成功', sid)
|
|
1575
|
-
this.
|
|
1576
|
-
sessionType: true
|
|
1577
|
-
})
|
|
1545
|
+
this.state.sessionType = true
|
|
1578
1546
|
if (sid == document.getElementById('video20').name) {
|
|
1579
1547
|
callNimIM('sendCustomCmdMsg', {
|
|
1580
1548
|
customId: this.state.imRoomId,
|
|
@@ -1612,9 +1580,7 @@ class Video extends Component {
|
|
|
1612
1580
|
// 发布媒体流失败
|
|
1613
1581
|
this.test_controller.OnPublishFailed = (sid, err_code, err_msg) => {
|
|
1614
1582
|
console.log('发布媒体流失败', sid, err_code, err_msg)
|
|
1615
|
-
this.
|
|
1616
|
-
sessionType: false
|
|
1617
|
-
})
|
|
1583
|
+
this.state.sessionType = false
|
|
1618
1584
|
this.roomCallBack(2, '发布失败',4)
|
|
1619
1585
|
};
|
|
1620
1586
|
// 订阅媒体流成功
|
|
@@ -1644,9 +1610,7 @@ class Video extends Component {
|
|
|
1644
1610
|
tag: itemOne.tag
|
|
1645
1611
|
});
|
|
1646
1612
|
console.log(array, newArray, this.state.roomCustomerList);
|
|
1647
|
-
|
|
1648
|
-
roomCustomerList: newArray
|
|
1649
|
-
})
|
|
1613
|
+
this.state.roomCustomerList = newArray
|
|
1650
1614
|
let config_param
|
|
1651
1615
|
if (itemOne.tag == 'VIDEO_SOURCE_SCREEN') {
|
|
1652
1616
|
config_param = {
|
|
@@ -1787,11 +1751,7 @@ class Video extends Component {
|
|
|
1787
1751
|
this.test_controller.OnNewJoinerIn = (participant) => {
|
|
1788
1752
|
console.log('新加⼊房间者', participant);
|
|
1789
1753
|
// this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 5)
|
|
1790
|
-
|
|
1791
|
-
{
|
|
1792
|
-
isCustomer: true
|
|
1793
|
-
}
|
|
1794
|
-
)
|
|
1754
|
+
this.state.isCustomer= true
|
|
1795
1755
|
};
|
|
1796
1756
|
// 推送“有新发布”给与会者
|
|
1797
1757
|
this.test_controller.OnNewPublish = (feed) => {
|
|
@@ -1848,9 +1808,7 @@ class Video extends Component {
|
|
|
1848
1808
|
tag: feed.tag
|
|
1849
1809
|
});
|
|
1850
1810
|
console.log(array, newArray, this.state.roomCustomerList);
|
|
1851
|
-
this.
|
|
1852
|
-
roomCustomerList: newArray
|
|
1853
|
-
})
|
|
1811
|
+
this.state.roomCustomerList = newArray
|
|
1854
1812
|
let config_param
|
|
1855
1813
|
if (feed.uid != this.state.tellerAccount) {
|
|
1856
1814
|
if (feed.tag == 'VIDEO_SOURCE_SCREEN') {
|
|
@@ -2036,11 +1994,11 @@ class Video extends Component {
|
|
|
2036
1994
|
'tellerId': this.props.tellerAccount
|
|
2037
1995
|
})
|
|
2038
1996
|
})
|
|
1997
|
+
this.state.sessionType = false
|
|
1998
|
+
this.state.isSharedScreen = false
|
|
2039
1999
|
this.setState({
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
screenName: '投屏',
|
|
2043
|
-
sessionType: false
|
|
2000
|
+
|
|
2001
|
+
screenName: '投屏'
|
|
2044
2002
|
});
|
|
2045
2003
|
this.tabTitlesClick('RMScreen', 'delect')
|
|
2046
2004
|
if (this.state.isPictureInPicture) {
|
|
@@ -2146,9 +2104,8 @@ class Video extends Component {
|
|
|
2146
2104
|
|
|
2147
2105
|
if (this.state.roomCustomerList.length == 0) {
|
|
2148
2106
|
// this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 3)
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
})
|
|
2107
|
+
this.state.isCustomer = false
|
|
2108
|
+
|
|
2152
2109
|
}
|
|
2153
2110
|
};
|
|
2154
2111
|
// 推送“取消订阅”给与会者 OnUnSubscribe(unsubscriber,feed)
|
|
@@ -2179,9 +2136,7 @@ class Video extends Component {
|
|
|
2179
2136
|
// 开始服务端录制成功
|
|
2180
2137
|
this.test_controller.OnStartRemoteRecordSucc = (record_id) => {
|
|
2181
2138
|
console.log('开始服务端录制成功', record_id);
|
|
2182
|
-
this.
|
|
2183
|
-
recordId: record_id
|
|
2184
|
-
});
|
|
2139
|
+
this.state.recordId = record_id
|
|
2185
2140
|
};
|
|
2186
2141
|
// 开始服务端录制失败
|
|
2187
2142
|
this.test_controller.OnStartRemoteRecordFailed = (
|
|
@@ -2442,38 +2397,21 @@ class Video extends Component {
|
|
|
2442
2397
|
ctx.fillRect(startX, startY, width, height)
|
|
2443
2398
|
if(document.getElementById('publish_video1').name == sid) {
|
|
2444
2399
|
this.state.analyserHeight.set(sid,energy/80)
|
|
2445
|
-
|
|
2446
|
-
analyserHeight: this.state.analyserHeight
|
|
2447
|
-
})
|
|
2400
|
+
this.state.analyserHeight = this.state.analyserHeight
|
|
2448
2401
|
}
|
|
2449
2402
|
|
|
2450
2403
|
}
|
|
2451
2404
|
requestAnimationFrame(this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser));
|
|
2452
2405
|
|
|
2453
2406
|
this.state.analyserData.set(sid, analyser)
|
|
2454
|
-
|
|
2455
|
-
analyserData: this.state.analyserData
|
|
2456
|
-
})
|
|
2407
|
+
this.state.analyserData = this.state.analyserData
|
|
2457
2408
|
}
|
|
2458
2409
|
// 停止共享
|
|
2459
2410
|
this.test_controller.OnDesktopDisplayClosed = () => {
|
|
2460
2411
|
console.log('OnDesktopDisplayClosed', this.state.isSharedScreen ,this.state.laveRoomSharedScreen)
|
|
2461
|
-
// if(this.state.laveRoomSharedScreen) {
|
|
2462
|
-
// if (this.state.roomCustomerList.length == 0 && this.state.sessionType) {
|
|
2463
|
-
// this.finishSessionClick()
|
|
2464
|
-
// }
|
|
2465
|
-
// if (this.test_controller&&this.state.sessionType) {
|
|
2466
|
-
// this.test_controller.LeaveRoom()
|
|
2467
|
-
// this.test_controller.Disconnect()
|
|
2468
|
-
// }
|
|
2469
|
-
// if(this.state.imStatus) {
|
|
2470
|
-
// disconnect();
|
|
2471
|
-
// }
|
|
2472
|
-
// } else {
|
|
2473
2412
|
if (!this.state.laveRoomSharedScreen && this.state.isSharedScreen) {
|
|
2474
2413
|
this.sharedScreen()
|
|
2475
2414
|
}
|
|
2476
|
-
// }
|
|
2477
2415
|
|
|
2478
2416
|
}
|
|
2479
2417
|
}
|
|
@@ -2553,10 +2491,9 @@ class Video extends Component {
|
|
|
2553
2491
|
this.timer && clearInterval(this.timer);
|
|
2554
2492
|
if(this.state.isSharedScreen) {
|
|
2555
2493
|
this.setState({
|
|
2556
|
-
publishDevic: 1,
|
|
2557
|
-
isSharedScreen: false,
|
|
2558
2494
|
screenName: '投屏',
|
|
2559
2495
|
})
|
|
2496
|
+
this.state.isSharedScreen = false
|
|
2560
2497
|
this.state.laveRoomSharedScreen = true
|
|
2561
2498
|
// this.test_controller.UnPublish(document.getElementById('video20').name)
|
|
2562
2499
|
if (this.state.isPictureInPicture) {
|
|
@@ -2569,10 +2506,9 @@ class Video extends Component {
|
|
|
2569
2506
|
})
|
|
2570
2507
|
} else {
|
|
2571
2508
|
this.setState({
|
|
2572
|
-
publishDevic: 1,
|
|
2573
|
-
isSharedScreen: false,
|
|
2574
2509
|
screenName: '投屏',
|
|
2575
2510
|
});
|
|
2511
|
+
this.state.isSharedScreen = false
|
|
2576
2512
|
this.state.laveRoomSharedScreen = true
|
|
2577
2513
|
this.props.onLeaveRoom({
|
|
2578
2514
|
code: LEAVE_TYPE.TELLER_EXIT,
|
|
@@ -2591,12 +2527,10 @@ class Video extends Component {
|
|
|
2591
2527
|
if (result.code == 200 && result.data.roomStatus == 1) {
|
|
2592
2528
|
this.addToScript()
|
|
2593
2529
|
} else {
|
|
2594
|
-
this.
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
imRoomId: ''
|
|
2599
|
-
});
|
|
2530
|
+
this.state.channelId = '',
|
|
2531
|
+
this.state.rtoken = '',
|
|
2532
|
+
this.state.sessionId = '',
|
|
2533
|
+
this.state.imRoomId = ''
|
|
2600
2534
|
this.addToScript()
|
|
2601
2535
|
// this.setState({
|
|
2602
2536
|
// sessionType: false
|
|
@@ -2608,12 +2542,10 @@ class Video extends Component {
|
|
|
2608
2542
|
// })
|
|
2609
2543
|
}
|
|
2610
2544
|
} catch (err) {
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
imRoomId: ''
|
|
2616
|
-
});
|
|
2545
|
+
this.state.channelId = '',
|
|
2546
|
+
this.state.rtoken = '',
|
|
2547
|
+
this.state.sessionId = '',
|
|
2548
|
+
this.state.imRoomId = ''
|
|
2617
2549
|
this.addToScript()
|
|
2618
2550
|
// this.setState({
|
|
2619
2551
|
// sessionType: false
|
|
@@ -2633,8 +2565,8 @@ class Video extends Component {
|
|
|
2633
2565
|
axios.get(this.props.resourcePath + "/beauty/beauty.js")
|
|
2634
2566
|
.then(response => this.addToScriptClick()).catch(function (error) {
|
|
2635
2567
|
console.log(error);
|
|
2568
|
+
that.state.sessionType = false
|
|
2636
2569
|
that.setState({
|
|
2637
|
-
sessionType: false,
|
|
2638
2570
|
loading: false
|
|
2639
2571
|
})
|
|
2640
2572
|
that.roomCallBack(2, '加载资源失败','SYS-01')
|
|
@@ -2784,8 +2716,9 @@ class Video extends Component {
|
|
|
2784
2716
|
cameraClick = () => {
|
|
2785
2717
|
if (this.isFileSuccuse()) {
|
|
2786
2718
|
if (!this.state.audioed) {
|
|
2719
|
+
this.state.audioed = true,
|
|
2787
2720
|
this.setState({
|
|
2788
|
-
|
|
2721
|
+
|
|
2789
2722
|
cameraImg: cameraImgCloe
|
|
2790
2723
|
});
|
|
2791
2724
|
let sid = document.getElementById('publish_video1').name;
|
|
@@ -2806,8 +2739,8 @@ class Video extends Component {
|
|
|
2806
2739
|
console.log(data)
|
|
2807
2740
|
})
|
|
2808
2741
|
} else if (this.state.audioed) {
|
|
2742
|
+
this.state.audioed = false,
|
|
2809
2743
|
this.setState({
|
|
2810
|
-
audioed: false,
|
|
2811
2744
|
cameraImg: cameraImgOpen
|
|
2812
2745
|
});
|
|
2813
2746
|
let sid = document.getElementById('publish_video1').name;
|
|
@@ -2848,9 +2781,8 @@ class Video extends Component {
|
|
|
2848
2781
|
} else {
|
|
2849
2782
|
this.test_controller.UnPublish(document.getElementById('video20').name)
|
|
2850
2783
|
}
|
|
2784
|
+
this.state.isSharedScreen = false
|
|
2851
2785
|
this.setState({
|
|
2852
|
-
publishDevic: 1,
|
|
2853
|
-
isSharedScreen: false,
|
|
2854
2786
|
screenName: '投屏'
|
|
2855
2787
|
});
|
|
2856
2788
|
console.log(pictureInPictureVideo)
|
|
@@ -2875,9 +2807,8 @@ class Video extends Component {
|
|
|
2875
2807
|
publish_config.publish_tag = 'projectionWhiteboard'
|
|
2876
2808
|
this.test_controller.Publish(publish_config)
|
|
2877
2809
|
}
|
|
2810
|
+
this.state.isSharedScreen = true
|
|
2878
2811
|
this.setState({
|
|
2879
|
-
publishDevic: 2,
|
|
2880
|
-
isSharedScreen: true,
|
|
2881
2812
|
screenName: '取消共享',
|
|
2882
2813
|
isPDF: false
|
|
2883
2814
|
})
|
|
@@ -3022,12 +2953,13 @@ class Video extends Component {
|
|
|
3022
2953
|
})
|
|
3023
2954
|
};
|
|
3024
2955
|
invitationClick = () => {
|
|
2956
|
+
this.state.linkData = ''
|
|
3025
2957
|
this.setState({
|
|
3026
2958
|
isModalVisibleInvitation: true,
|
|
3027
2959
|
employeeNumber: '',
|
|
3028
2960
|
employeeName: '',
|
|
3029
2961
|
employeeError: '',
|
|
3030
|
-
|
|
2962
|
+
|
|
3031
2963
|
})
|
|
3032
2964
|
|
|
3033
2965
|
}
|
|
@@ -3094,22 +3026,21 @@ class Video extends Component {
|
|
|
3094
3026
|
sid = document.getElementById('video12').name;
|
|
3095
3027
|
}
|
|
3096
3028
|
console.log(sid)
|
|
3029
|
+
this.state.faceCustomerUid = item.customId,
|
|
3097
3030
|
this.setState({
|
|
3098
3031
|
clickedFacial: false,
|
|
3099
3032
|
clickedOcr: false,
|
|
3100
|
-
|
|
3033
|
+
|
|
3101
3034
|
isModalVisibleFacial: true,
|
|
3102
3035
|
facialImg: this.test_controller.TakePicture(1, undefined, undefined, sid, 'png')
|
|
3103
3036
|
})
|
|
3104
3037
|
}
|
|
3105
3038
|
componentWillReceiveProps(props) {
|
|
3106
3039
|
console.log('componentWillReceiveProps',props)
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
imRoomId: props.imRoomId
|
|
3112
|
-
});
|
|
3040
|
+
this.state.channelId = props.roomId,
|
|
3041
|
+
this.state.rtoken = props.mtoken,
|
|
3042
|
+
this.state.sessionId = props.sessionId,
|
|
3043
|
+
this.state.imRoomId = props.imRoomId
|
|
3113
3044
|
}
|
|
3114
3045
|
appGetUsername = async (sid) => {
|
|
3115
3046
|
console.log(sid)
|
|
@@ -3249,9 +3180,8 @@ class Video extends Component {
|
|
|
3249
3180
|
employeeError: result.data.staffName ? '' : '查无此人',
|
|
3250
3181
|
})
|
|
3251
3182
|
if(result.data.staffName){
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
})
|
|
3183
|
+
this.state.linkData = 'https://wp-staff-gateway.wealth-platform.uat.ali.cloud.cn.hsbc/meeting-ui/OHB/CN/HSBC?chnlID=OHB&locale=zh_CN&chnlCC=CN&chnlGMC=HSBC&targetFunc=supervisorMeeting&sourceFunc=rmMeeting&appointmentID='+ this.props.businessNumber + '&staffID='+this.state.employeeNumber+'&staffName='+ encodeURIComponent(result.data.staffName)
|
|
3184
|
+
|
|
3255
3185
|
}
|
|
3256
3186
|
} else {
|
|
3257
3187
|
this.messageClick('查询失败','error')
|
|
@@ -3292,9 +3222,7 @@ class Video extends Component {
|
|
|
3292
3222
|
switchExternal = () => {
|
|
3293
3223
|
if (!this.state.isWhiteboard) {
|
|
3294
3224
|
const publish_config = {};
|
|
3295
|
-
this.
|
|
3296
|
-
isWhiteboard: true,
|
|
3297
|
-
})
|
|
3225
|
+
this.state.isWhiteboard = true
|
|
3298
3226
|
this.tabTitlesClick({
|
|
3299
3227
|
value: 'RMWhiteboard',
|
|
3300
3228
|
name: 'RM白板'
|
|
@@ -3372,11 +3300,19 @@ class Video extends Component {
|
|
|
3372
3300
|
microphoneValue: event.target.value
|
|
3373
3301
|
})
|
|
3374
3302
|
}
|
|
3303
|
+
componentDidMount() {
|
|
3304
|
+
var box=document.getElementById("whiteboardDIV");
|
|
3305
|
+
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
3306
|
+
this.state.whiteboardWidth = box.offsetWidth,
|
|
3307
|
+
this.state.whiteboardHeight = box.offsetHeight,
|
|
3308
|
+
console.log('whiteboardDIV', this.state.whiteboardHeight,this.state.whiteboardWidth)
|
|
3309
|
+
}
|
|
3310
|
+
}
|
|
3375
3311
|
render() {
|
|
3376
3312
|
const { meetingInfo } = this.props
|
|
3377
3313
|
var pdfChildren
|
|
3378
3314
|
if (this.props.children) {
|
|
3379
|
-
pdfChildren = React.cloneElement(this.props.children, { width:
|
|
3315
|
+
pdfChildren = React.cloneElement(this.props.children, { width: this.state.whiteboardWidth, height: this.state.whiteboardHeight, show: this.state.isSelect == 'RMWhiteboard'})
|
|
3380
3316
|
}
|
|
3381
3317
|
const customerNameList = (
|
|
3382
3318
|
<span className='labelClass'>
|
|
@@ -3478,7 +3414,7 @@ class Video extends Component {
|
|
|
3478
3414
|
<div className="projection">
|
|
3479
3415
|
{tabTitleList}
|
|
3480
3416
|
<img style={sectionStyle} src={require("../../assets/img/placeholder_bg.png").default} alt="" />
|
|
3481
|
-
<div style={{height: this.state.tabTitles.length > 0 ? 'calc(100% - 33px)' : '100%'}}>
|
|
3417
|
+
<div id="whiteboardDIV" style={{height: this.state.tabTitles.length > 0 ? 'calc(100% - 33px)' : '100%'}}>
|
|
3482
3418
|
|
|
3483
3419
|
<div className="videoDiv" style={{ display: (this.state.isSelect == 'RMScreen') ? '' : 'none', }}>
|
|
3484
3420
|
<div className="videoDiv">
|
|
@@ -3538,7 +3474,7 @@ class Video extends Component {
|
|
|
3538
3474
|
</div>
|
|
3539
3475
|
<div className="wrapper" style={{ width: '20%', }}>
|
|
3540
3476
|
<div
|
|
3541
|
-
className={`itemed
|
|
3477
|
+
className={`itemed`}
|
|
3542
3478
|
>
|
|
3543
3479
|
<div className="publishVideoDiv">
|
|
3544
3480
|
|