react_hsbc_teller 0.2.3 → 0.2.4

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.
@@ -20,7 +20,7 @@ import Spin from "antd/lib/spin";
20
20
  import 'antd/lib/spin/style'
21
21
  import { Button } from '../../../node_modules/antd/lib/index';
22
22
  import CanvasDraw from "react-canvas-draw";
23
- import { FormattedMessage, injectIntl } from 'react-intl';
23
+ import { FormattedMessage, injectIntl } from 'react-intl';
24
24
  const LEAVE_TYPE = {
25
25
  TELLER_EXIT: '1', // 坐席退出
26
26
  ROOM_DESTROYED: '-1', // 房间异常
@@ -29,6 +29,8 @@ const LEAVE_TYPE = {
29
29
  class Video extends Component {
30
30
  signCanvas = React.createRef();
31
31
  state = {
32
+ isWhiteboard: false,
33
+ isSelect: 'video',
32
34
  isPDF: false,
33
35
  loading: false,
34
36
  isModalVisibleSign: false,
@@ -50,7 +52,7 @@ class Video extends Component {
50
52
  voiceStatue: false,
51
53
  voiceImg: voiceImgOpen,
52
54
  isBigVideo: 'video1',
53
- isCustomer: false,
55
+ isCustomer: true,
54
56
  publishDevic: 1,
55
57
  isSharedScreen: false,
56
58
  isSuspend: false,
@@ -416,25 +418,25 @@ class Video extends Component {
416
418
  };
417
419
  // 画中画
418
420
  pictureInPicture = () => {
419
- const publish_config = {};
420
- publish_config.media_type = 1;
421
- publish_config.publish_device = 4;
422
- publish_config.need_volume_analyser = true;
423
- publish_config.video_profile_type = 3;
424
- publish_config.part_of_screen_id = 'touBoxItem';
425
- publish_config.publish_video_id = 'video3';
426
- publish_config.publish_streamId_id = 'subscribe_streamId3';
427
- // publish_config.publish_tag = 'sharedScreen'
428
- this.test_controller.Publish(publish_config);
429
- callNimIM('sendCustomCmdMsg', {
430
- customId: this.state.imRoomId,
431
- content: JSON.stringify({
432
- 'typeId': 2030,
433
- 'sessionId': this.state.sessionId,
434
- 'sharedScreen': 1,
435
- 'tellerId': this.props.tellerAccount
436
- })
437
- });
421
+ // const publish_config = {};
422
+ // publish_config.media_type = 1;
423
+ // publish_config.publish_device = 4;
424
+ // publish_config.need_volume_analyser = true;
425
+ // publish_config.video_profile_type = 3;
426
+ // publish_config.part_of_screen_id = 'touBoxItem';
427
+ // publish_config.publish_video_id = 'video3';
428
+ // publish_config.publish_streamId_id = 'subscribe_streamId3';
429
+ // // publish_config.publish_tag = 'sharedScreen'
430
+ // this.test_controller.Publish(publish_config);
431
+ // callNimIM('sendCustomCmdMsg', {
432
+ // customId: this.state.imRoomId,
433
+ // content: JSON.stringify({
434
+ // 'typeId': 2030,
435
+ // 'sessionId': this.state.sessionId,
436
+ // 'sharedScreen': 1,
437
+ // 'tellerId': this.props.tellerAccount
438
+ // })
439
+ // });
438
440
  if (this.isFileSuccuse()) {
439
441
  const width = 640;
440
442
  const height = 480;
@@ -511,6 +513,16 @@ class Video extends Component {
511
513
  if (Mival.sessionId == this.state.sessionId) {
512
514
  this.endSession('customerHangUp')
513
515
  }
516
+ } else if (Mival.typeId == 1215) {
517
+ // 一炒多的图片
518
+ if (Mival.sessionId == this.state.sessionId) {
519
+ this.props.imgCallback(Mival.data.type, Mival.data.file) // 文字抄录和风险抄录,3--风险,,2--文字
520
+ }
521
+ } else if (Mival.typeId == 1216) {
522
+ // 签字回调
523
+ if (Mival.sessionId == this.state.sessionId) {
524
+ this.props.signatureCallback()
525
+ }
514
526
  }
515
527
  };
516
528
 
@@ -614,7 +626,7 @@ class Video extends Component {
614
626
 
615
627
  this.test_controller.OnCreateRoomSucc = (room_id, rtoken) => {
616
628
  console.log('创建房间成功', room_id, rtoken);
617
- this.setState({
629
+ this.setState({
618
630
  channelId: room_id,
619
631
  rtoken: rtoken
620
632
  });
@@ -1045,7 +1057,8 @@ class Video extends Component {
1045
1057
  tellerId: this.props.tellerAccount
1046
1058
  });
1047
1059
  this.setState({
1048
- isCustomer: false
1060
+ isCustomer: false,
1061
+ isWhiteboard: false,
1049
1062
  });
1050
1063
  this.props.onLeaveRoom({
1051
1064
  code: LEAVE_TYPE.TELLER_EXIT,
@@ -1084,7 +1097,7 @@ class Video extends Component {
1084
1097
  this.setState({
1085
1098
  loading: true,
1086
1099
  })
1087
- console.log( this.props.resourcePath + "/log4b.js")
1100
+ console.log(this.props.resourcePath + "/log4b.js")
1088
1101
  const _dependScripts = [
1089
1102
  // https://counter-web.leimondata.cn:7199
1090
1103
  this.props.resourcePath + "/log4b.js",
@@ -1169,8 +1182,8 @@ class Video extends Component {
1169
1182
  } else {
1170
1183
  setTimeout(() => {
1171
1184
  this.setState({
1172
- screenName: this.props.intl.formatMessage({id: 'shareScreen'}),
1173
- suspendName: this.props.intl.formatMessage({id: 'suspend'}),
1185
+ screenName: this.props.intl.formatMessage({ id: 'shareScreen' }),
1186
+ suspendName: this.props.intl.formatMessage({ id: 'suspend' }),
1174
1187
  })
1175
1188
  }, 50);
1176
1189
  this.addToScript()
@@ -1288,24 +1301,60 @@ class Video extends Component {
1288
1301
  if (this.isFileSuccuse()) {
1289
1302
  const publish_config = {};
1290
1303
  if (this.state.isSharedScreen) {
1291
- publish_config.publish_device = 1;
1292
- publish_config.media_type = 1;
1293
- publish_config.sid = document.getElementById('publish_video1').name;
1294
- publish_config.video_profile_type = 5;
1295
- this.test_controller.ChangeMediaStream(publish_config);
1304
+ if (this.state.isWhiteboard) {
1305
+ publish_config.publish_device = 4
1306
+ publish_config.media_type = 1
1307
+ publish_config.sid = document.getElementById('video10').name
1308
+ publish_config.part_of_screen_id = 'touBoxItem'
1309
+ publish_config.video_profile_type = 5
1310
+ this.test_controller.ChangeMediaStream(publish_config);
1311
+ this.setState({
1312
+ isPDF: true,
1313
+ isSelect: 'noVideo',
1314
+ })
1315
+ } else {
1316
+ this.test_controller.UnPublish(document.getElementById('video10').name)
1317
+ this.setState({
1318
+ isPDF: false,
1319
+ isSelect: 'video',
1320
+ })
1321
+ }
1296
1322
  this.setState({
1297
1323
  publishDevic: 1,
1298
1324
  isSharedScreen: false,
1325
+
1299
1326
  screenName: '投屏'
1300
1327
  });
1301
1328
  } else {
1302
- publish_config.media_type = 1;
1303
- publish_config.publish_device = 2;
1304
- publish_config.video_profile_type = 5;
1305
- publish_config.sid = document.getElementById('publish_video1').name;
1306
- this.test_controller.ChangeMediaStream(publish_config);
1329
+ if (document.getElementById('video10').name) {
1330
+ publish_config.media_type = 1;
1331
+ publish_config.publish_device = 2;
1332
+ publish_config.video_profile_type = 5;
1333
+ publish_config.sid = document.getElementById('video10').name;
1334
+ this.test_controller.ChangeMediaStream(publish_config);
1335
+ } else {
1336
+ publish_config.media_type = 1
1337
+ publish_config.publish_device = 2
1338
+ publish_config.need_volume_analyser = true
1339
+ publish_config.video_profile_type = 5
1340
+ publish_config.publish_video_id = 'video10'
1341
+ publish_config.publish_streamId_id = 'subscribe_streamId10'
1342
+ publish_config.publish_tag = ''
1343
+ this.test_controller.Publish(publish_config)
1344
+ }
1345
+
1346
+
1347
+ // publish_config.media_type = 1;
1348
+ // publish_config.publish_device = 2;
1349
+ // publish_config.video_profile_type = 5;
1350
+ // publish_config.sid = document.getElementById('publish_video1').name;
1351
+ // this.test_controller.ChangeMediaStream(publish_config);
1307
1352
  this.setState({
1308
- publishDevic: 2
1353
+ publishDevic: 2,
1354
+ isSelect: 'noVideo',
1355
+ isSharedScreen: true,
1356
+ screenName: '取消共享',
1357
+ isPDF: false
1309
1358
  })
1310
1359
  }
1311
1360
  }
@@ -1493,7 +1542,7 @@ class Video extends Component {
1493
1542
  })
1494
1543
  }
1495
1544
  componentWillReceiveProps(props) {
1496
- this.setState({
1545
+ this.setState({
1497
1546
  channelId: props.roomId,
1498
1547
  rtoken: props.mtoken,
1499
1548
  sessionId: props.sessionId,
@@ -1541,96 +1590,158 @@ class Video extends Component {
1541
1590
  file: this.signCanvas.current.canvas.drawing.toDataURL('image/png')
1542
1591
  })
1543
1592
  }
1544
- switchExternal=()=>{
1545
- if(this.state.isPDF){
1593
+ switchExternal = () => {
1594
+ if(!this.state.isWhiteboard) {
1595
+ const publish_config = {};
1546
1596
  this.setState({
1547
- isPDF: false,
1548
- isBigVideo: 'video1'
1597
+ isPDF: true,
1598
+ isWhiteboard: true,
1599
+ isSelect: 'noVideo',
1549
1600
  })
1601
+ if (document.getElementById('video10').name) {
1602
+ // 代表已经有了进行切流
1603
+ publish_config.publish_device = 4
1604
+ publish_config.media_type = 1
1605
+ publish_config.sid = document.getElementById('video10').name
1606
+ publish_config.part_of_screen_id = 'touBoxItem'
1607
+ publish_config.video_profile_type = 5
1608
+ this.test_controller.ChangeMediaStream(publish_config);
1609
+ } else {
1610
+
1611
+ publish_config.media_type = 1
1612
+ publish_config.publish_device = 4
1613
+ publish_config.need_volume_analyser = true
1614
+ publish_config.video_profile_type = 5
1615
+ publish_config.part_of_screen_id = 'touBoxItem';
1616
+ publish_config.publish_video_id = 'video10'
1617
+ publish_config.publish_streamId_id = 'subscribe_streamId10'
1618
+ publish_config.publish_tag = ''
1619
+ this.test_controller.Publish(publish_config)
1620
+ }
1550
1621
  } else{
1622
+ message.success('当前已经切换RM白板')
1623
+ }
1624
+
1625
+
1626
+ }
1627
+ switchSelect = () => {
1628
+ if (this.state.isSelect == 'video') {
1629
+ if (document.getElementById('video10').name) {
1630
+ this.setState({
1631
+ isSelect: 'noVideo',
1632
+ })
1633
+ } else {
1634
+ message.success('当前无签字白板')
1635
+ }
1636
+
1637
+ } else {
1551
1638
  this.setState({
1552
- isPDF: true,
1553
- isBigVideo: 'video6'
1639
+ isSelect: 'video',
1554
1640
  })
1555
1641
  }
1556
-
1557
1642
  }
1558
1643
  render() {
1559
- const pdfChildren = React.cloneElement(this.props.children,{width: 100, height: 100, id: 12})
1644
+ var pdfChildren
1645
+ if (this.props.children) {
1646
+ pdfChildren = React.cloneElement(this.props.children, { width: 100, height: 100, id: 12 })
1647
+ }
1560
1648
  return (
1561
-
1562
1649
  <div className="all">
1563
1650
  <Spin spinning={this.state.loading} tip="视频初始化中...">
1564
- <Header></Header>
1565
- <div className="health">
1566
- <div className="wrapper">
1567
- <div
1568
- className={`itemed ${this.state.isBigVideo == 'video1' ? 'item1' : ""}`}
1569
- // className="itemed item1"
1570
- style={{ position: "relative" }}
1571
- onClick={this.enlargeClick.bind(this, 'isLangVideo1')}
1572
- >
1573
- {
1574
- this.state.customAudioed && <img
1575
- alt=""
1576
- src={require("../../assets/img/yingpin.png").default}
1577
- style={{ width: "100%", height: "100%" }}
1578
- ></img>
1579
- }
1580
- <div className="video1Div" style={{ display: (!this.state.customAudioed) ? '' : 'none', }}>
1581
- <video
1582
- id="video1"
1583
- autoPlay
1584
- muted={true}
1585
- className="video1"
1586
- />
1587
- <audio id="audio1" autoPlay />
1588
- <label style={{ display: 'none' }} id="feedId1" type="text" />
1589
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView1" width="70" height="70"></canvas>
1651
+ <Header></Header>
1652
+ <div className="health">
1653
+ <div className="projection">
1654
+ <div className="button">
1655
+ <div className={`${this.state.isSelect == 'video' ? 'selectSee' : "noSelest"}`} onClick={this.switchSelect.bind(this)}>视频画面</div>
1656
+ <div className={`${this.state.isSelect == 'noVideo' ? 'selectSee' : "noSelest"}`} onClick={this.switchSelect.bind(this)}>投屏白板</div>
1657
+ </div>
1658
+ <div className="videoDiv" style={{ display: (this.state.isSelect == 'noVideo') ? '' : 'none', }}>
1659
+ <div style={{ display: (this.state.isPDF) ? '' : 'none', }} id="touBoxItem">
1660
+ {pdfChildren}
1661
+ </div>
1662
+ <div style={this.state.isPDF ? { display: 'none' } : {}}>
1663
+ <video
1664
+ id="video10"
1665
+ autoPlay
1666
+ muted={true}
1667
+ className="video"
1668
+ />
1669
+ <audio id="audio10" autoPlay />
1670
+ <label style={{ display: 'none' }} id="feedId10" type="text" />
1671
+ {/* <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView10" width="70" height="70"></canvas> */}
1672
+
1673
+ </div>
1674
+
1590
1675
  </div>
1591
1676
  </div>
1592
- <div
1593
- className={`itemed ${this.state.isSharedScreen || this.state.publishDevic == 4 ? '' : (this.state.isBigVideo == 'publish_video1' ? 'item1 isBack' : (this.state.isCustomer ? 'isBack' : 'itemPublic'))}`}
1594
- onClick={this.enlargeClick.bind(this, 'isLangPublishVideo1')}
1595
- >
1596
- <div className="publishVideoDiv">
1677
+ <div className="wrapper">
1678
+ <div
1679
+ className={`itemed ${this.state.isBigVideo == 'video1' ? 'item1' : ""}`}
1680
+ // className="itemed item1"
1681
+ style={{ position: "relative" }}
1682
+ onClick={this.enlargeClick.bind(this, 'isLangVideo1')}
1683
+ >
1597
1684
  {
1598
- this.state.audioed && <img
1685
+ this.state.customAudioed && <img
1599
1686
  alt=""
1600
1687
  src={require("../../assets/img/yingpin.png").default}
1601
- className="imgClass"
1602
- />
1688
+ style={{ width: "100%", height: "100%" }}
1689
+ ></img>
1603
1690
  }
1604
- {
1605
- this.state.isSuspend && <img
1606
- alt=""
1607
- src={require("../../assets/img/zanTing.png").default}
1608
- className="imgClass"
1691
+ <div className="video1Div" style={{ display: (!this.state.customAudioed) ? '' : 'none', }}>
1692
+ <video
1693
+ id="video1"
1694
+ autoPlay
1695
+ muted={true}
1696
+ className="video1"
1609
1697
  />
1610
- }
1611
- {
1698
+ <audio id="audio1" autoPlay />
1699
+ <label style={{ display: 'none' }} id="feedId1" type="text" />
1700
+ <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView1" width="70" height="70"></canvas>
1701
+ </div>
1702
+ </div>
1703
+ <div
1704
+ className={`itemed ${this.state.publishDevic == 4 ? '' : (this.state.isBigVideo == 'publish_video1' ? 'item1 isBack' : (this.state.isCustomer ? 'isBack' : 'itemPublic'))}`}
1705
+ onClick={this.enlargeClick.bind(this, 'isLangPublishVideo1')}
1706
+ >
1707
+ <div className="publishVideoDiv">
1708
+ {
1709
+ this.state.audioed && <img
1710
+ alt=""
1711
+ src={require("../../assets/img/yingpin.png").default}
1712
+ className="imgClass"
1713
+ />
1714
+ }
1715
+ {
1716
+ this.state.isSuspend && <img
1717
+ alt=""
1718
+ src={require("../../assets/img/zanTing.png").default}
1719
+ className="imgClass"
1720
+ />
1721
+ }
1722
+ {/* {
1612
1723
  this.state.isSharedScreen && <span
1613
1724
  className="sharedScreen"
1614
1725
  >
1615
1726
  屏幕共享中
1616
1727
  </span>
1617
- }
1618
- <video
1619
- style={{ display: (!this.state.audioed && !this.state.isSuspend) ? '' : 'none', }}
1620
- id="publish_video1"
1621
- className={`publishVideoClass ${this.state.isCustomer ? '' : "videoFit"}`}
1622
- onClick={this.enlargeClick.bind(this, 'isLangVideo2')}
1623
- autoPlay
1624
- muted={true}
1625
- />
1626
- <audio id="audio1" autoPlay />
1627
- <label style={{ display: 'none' }} id="publish_streamId1" type="text" />
1628
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="70" height="70"></canvas>
1728
+ } */}
1729
+ <video
1730
+ style={{ display: (!this.state.audioed && !this.state.isSuspend) ? '' : 'none', }}
1731
+ id="publish_video1"
1732
+ className={`publishVideoClass ${this.state.isCustomer ? '' : "videoFit"}`}
1733
+ onClick={this.enlargeClick.bind(this, 'isLangVideo2')}
1734
+ autoPlay
1735
+ muted={true}
1736
+ />
1737
+ <audio id="audio1" autoPlay />
1738
+ <label style={{ display: 'none' }} id="publish_streamId1" type="text" />
1739
+ <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="70" height="70"></canvas>
1740
+ </div>
1741
+
1629
1742
  </div>
1743
+ <div className={`itemed ${this.state.isBigVideo == 'video2' ? 'item1' : ""}`}>
1630
1744
 
1631
- </div>
1632
- <div className={`itemed ${this.state.isBigVideo == 'video2' ? 'item1' : ""}`}>
1633
-
1634
1745
  <div onClick={this.enlargeClick.bind(this, 'isLangVideo2')}>
1635
1746
  <video
1636
1747
  id="video2"
@@ -1642,141 +1753,139 @@ class Video extends Component {
1642
1753
  <label style={{ display: 'none' }} id="feedId2" type="text" />
1643
1754
  <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView2" width="70" height="70"></canvas>
1644
1755
  </div>
1645
- </div>
1646
- <div className={`itemed ${this.state.isBigVideo == 'video3' ? 'item1' : ""}`}
1647
- onClick={this.enlargeClick.bind(this, 'isLangVideo3')}>
1648
- <video
1649
- id="video3"
1650
- autoPlay
1651
- muted={true}
1652
- className="video"
1653
- />
1654
- <audio id="audio3" autoPlay />
1655
- <label style={{ display: 'none' }} id="feedId3" type="text" />
1656
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView3" width="70" height="70"></canvas>
1657
- </div>
1658
- <div className={`itemed ${this.state.isBigVideo == 'video4' ? 'item1' : ""}`}
1659
- onClick={this.enlargeClick.bind(this, 'isLangVideo4')}>
1660
- <video
1661
- id="video4"
1662
- autoPlay
1663
- muted={true}
1664
- className="video"
1665
- />
1666
- <audio id="audio4" autoPlay />
1667
- <label style={{ display: 'none' }} id="feedId4" type="text" />
1668
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView4" width="70" height="70"></canvas>
1669
- </div>
1670
- <div className={`itemed ${this.state.isBigVideo == 'video5' ? 'item1' : ""}`}
1671
- onClick={this.enlargeClick.bind(this, 'isLangVideo5')}>
1672
- <video
1673
- id="video5"
1674
- autoPlay
1675
- muted={true}
1676
- className="video"
1677
- />
1678
- <audio id="audio5" autoPlay />
1679
- <label style={{ display: 'none' }} id="feedId5" type="text" />
1680
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView5" width="70" height="70"></canvas>
1681
- </div>
1682
- <div onClick={this.enlargeClick.bind(this, 'isLangVideo6')} className={`${this.state.isBigVideo == 'video6' ? (this.state.isPDF ? 'item1' : 'item1 itemed') : "itemed"}`}>
1683
- <div style={{ display: (this.state.isPDF) ? '' : 'none', }} id="touBoxItem">
1756
+ </div>
1757
+ <div className={`itemed ${this.state.isBigVideo == 'video3' ? 'item1' : ""}`}
1758
+ onClick={this.enlargeClick.bind(this, 'isLangVideo3')}>
1759
+ <video
1760
+ id="video3"
1761
+ autoPlay
1762
+ muted={true}
1763
+ className="video"
1764
+ />
1765
+ <audio id="audio3" autoPlay />
1766
+ <label style={{ display: 'none' }} id="feedId3" type="text" />
1767
+ <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView3" width="70" height="70"></canvas>
1768
+ </div>
1769
+ <div className={`itemed ${this.state.isBigVideo == 'video4' ? 'item1' : ""}`}
1770
+ onClick={this.enlargeClick.bind(this, 'isLangVideo4')}>
1771
+ <video
1772
+ id="video4"
1773
+ autoPlay
1774
+ muted={true}
1775
+ className="video"
1776
+ />
1777
+ <audio id="audio4" autoPlay />
1778
+ <label style={{ display: 'none' }} id="feedId4" type="text" />
1779
+ <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView4" width="70" height="70"></canvas>
1780
+ </div>
1781
+ <div className={`itemed ${this.state.isBigVideo == 'video5' ? 'item1' : ""}`}
1782
+ onClick={this.enlargeClick.bind(this, 'isLangVideo5')}>
1783
+ <video
1784
+ id="video5"
1785
+ autoPlay
1786
+ muted={true}
1787
+ className="video"
1788
+ />
1789
+ <audio id="audio5" autoPlay />
1790
+ <label style={{ display: 'none' }} id="feedId5" type="text" />
1791
+ <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView5" width="70" height="70"></canvas>
1792
+ </div>
1793
+ <div onClick={this.enlargeClick.bind(this, 'isLangVideo6')} className={`${this.state.isBigVideo == 'video6' ? 'item1' : "itemed"}`}>
1794
+ {/* <div style={{ display: (this.state.isPDF) ? '' : 'none', }} id="touBoxItem">
1684
1795
  {pdfChildren}
1685
- </div>
1686
- <div style={this.state.isPDF ? {display: 'none'}: {}}>
1687
- <video
1688
- id="video6"
1689
- autoPlay
1690
- muted={true}
1691
- className="video"
1692
- />
1693
- <audio id="audio6" autoPlay/>
1694
- <label style={{display: 'none'}} id="feedId6" type="text"/>
1695
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView6" width="70" height="70"></canvas>
1696
- </div>
1697
-
1796
+ </div> */}
1797
+ {/* <div style={this.state.isPDF ? {display: 'none'}: {}}> */}
1798
+ <video
1799
+ id="video6"
1800
+ autoPlay
1801
+ muted={true}
1802
+ className="video"
1803
+ />
1804
+ <audio id="audio6" autoPlay />
1805
+ <label style={{ display: 'none' }} id="feedId6" type="text" />
1806
+ <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView6" width="70" height="70"></canvas>
1807
+ {/* </div> */}
1808
+
1698
1809
  </div>
1699
- </div>
1810
+ </div>
1700
1811
 
1701
- </div>
1702
- <Foot
1703
- img={this.state.voiceImg}
1704
- screenName={this.state.screenName}
1705
- suspendName={this.state.suspendName}
1706
- cameraImg={this.state.cameraImg}
1707
- customerList={this.state.customerList}
1708
- suspend={this.suspend}
1709
- voice={this.voice}
1710
- cameraClick={this.cameraClick}
1711
- sharedScreen={this.sharedScreen}
1712
- endSession={this.endSession}
1713
- facialRecognition={this.facialRecognition}
1714
- pictureInPicture={this.pictureInPicture}
1715
- transcribingClick={this.transcribingClick}
1716
- invitationClick={this.invitationClick}
1717
- customerFaceClick={this.customerFaceClick}
1718
- ocrClick={this.ocrClick}
1719
- switchExternal={this.switchExternal}
1720
- ></Foot>
1721
- <Modal cancelText="取消" okText="确定" visible={this.state.isModalVisible} onOk={this.handleOk}
1722
- onCancel={this.handleCancel}>
1723
- {
1724
- this.state.isSuspend && <span>确定是否恢复会话?</span>
1725
- }
1726
- {
1727
- !this.state.isSuspend && <span>确定是否暂停会话?</span>
1728
- }
1729
- </Modal>
1730
- <Modal cancelText="取消" okText="确定" visible={this.state.isModalVisibleEnd} onOk={this.handleOkEnd}
1731
- onCancel={this.handleCancelEnd}>
1732
- <span>确定是否结束会话?</span>
1733
- </Modal>
1734
- <Modal title={this.state.titleModal} cancelText="取消" okText="确定" visible={this.state.isModalVisibleFacial}
1735
- onOk={this.handleOkFacial} onCancel={this.handleCancelFacial}>
1736
- <div className="faceBody">
1737
- <img className="faceImg" src={this.state.facialImg} alt=""></img>
1738
1812
  </div>
1813
+ <Foot
1814
+ img={this.state.voiceImg}
1815
+ screenName={this.state.screenName}
1816
+ suspendName={this.state.suspendName}
1817
+ cameraImg={this.state.cameraImg}
1818
+ customerList={this.state.customerList}
1819
+ suspend={this.suspend}
1820
+ voice={this.voice}
1821
+ cameraClick={this.cameraClick}
1822
+ sharedScreen={this.sharedScreen}
1823
+ endSession={this.endSession}
1824
+ facialRecognition={this.facialRecognition}
1825
+ pictureInPicture={this.pictureInPicture}
1826
+ transcribingClick={this.transcribingClick}
1827
+ invitationClick={this.invitationClick}
1828
+ customerFaceClick={this.customerFaceClick}
1829
+ ocrClick={this.ocrClick}
1830
+ switchExternal={this.switchExternal}
1831
+ ></Foot>
1832
+ <Modal cancelText="取消" okText="确定" visible={this.state.isModalVisible} onOk={this.handleOk}
1833
+ onCancel={this.handleCancel}>
1834
+ {
1835
+ this.state.isSuspend && <span>确定是否恢复会话?</span>
1836
+ }
1837
+ {
1838
+ !this.state.isSuspend && <span>确定是否暂停会话?</span>
1839
+ }
1840
+ </Modal>
1841
+ <Modal cancelText="取消" okText="确定" visible={this.state.isModalVisibleEnd} onOk={this.handleOkEnd}
1842
+ onCancel={this.handleCancelEnd}>
1843
+ <span>确定是否结束会话?</span>
1844
+ </Modal>
1845
+ <Modal title={this.state.titleModal} cancelText="取消" okText="确定" visible={this.state.isModalVisibleFacial}
1846
+ onOk={this.handleOkFacial} onCancel={this.handleCancelFacial}>
1847
+ <div className="faceBody">
1848
+ <img className="faceImg" src={this.state.facialImg} alt=""></img>
1849
+ </div>
1739
1850
 
1740
- </Modal>
1741
- <Modal title="新增预约" visible={this.state.isModalVisibleInvitation} footer={[
1742
- <Button type="primary" danger onClick={this.handleOkInvitation}>发送</Button>,
1743
- <Button onClick={this.handleCancelInvitation}>取消</Button>
1744
- ]}>
1745
- <div>
1746
- <div>输入员工号:</div>
1747
- <div className="invitationDiv">
1748
- <input className="inputClick" placeholder="请输入员工号" value={this.state.employeeNumber} onChange={e => this.handleChange(e)}></input>
1749
- <span className="invitationSpan" onClick={this.queryStaff}>查 询</span>
1851
+ </Modal>
1852
+ <Modal title="新增预约" visible={this.state.isModalVisibleInvitation} footer={[
1853
+ <Button type="primary" danger onClick={this.handleOkInvitation}>发送</Button>,
1854
+ <Button onClick={this.handleCancelInvitation}>取消</Button>
1855
+ ]}>
1856
+ <div>
1857
+ <div>输入员工号:</div>
1858
+ <div className="invitationDiv">
1859
+ <input className="inputClick" placeholder="请输入员工号" value={this.state.employeeNumber} onChange={e => this.handleChange(e)}></input>
1860
+ <span className="invitationSpan" onClick={this.queryStaff}>查 询</span>
1861
+ </div>
1862
+ <div className="invitationDiv">
1863
+ <input className="inputClick" readonly value={this.state.employeeName}></input>
1864
+ </div>
1750
1865
  </div>
1751
- <div className="invitationDiv">
1752
- <input className="inputClick" readonly value={this.state.employeeName}></input>
1866
+ </Modal>
1867
+ <Modal title="签字白板" closable={false} visible={this.state.isModalVisibleSign} footer={
1868
+ [
1869
+ <Button type="primary" danger onClick={this.handleOkSign}>确定</Button>
1870
+ ]
1871
+ }>
1872
+ <div className="content">
1873
+ <CanvasDraw
1874
+ ref={this.signCanvas}
1875
+ brushColor="#000"
1876
+ brushRadius={3}
1877
+ lazyRadius={2}
1878
+ canvasWidth="100%"
1879
+ canvasHeight="100%"
1880
+ hideGrid={true}
1881
+ ></CanvasDraw>
1753
1882
  </div>
1754
- </div>
1755
- </Modal>
1756
- <Modal title="签字白板" closable={false} visible={this.state.isModalVisibleSign} footer={
1757
- [
1758
- <Button type="primary" danger onClick={this.handleOkSign}>确定</Button>
1759
- ]
1760
- }>
1761
- <div className="content">
1762
- <CanvasDraw
1763
- ref={this.signCanvas}
1764
- brushColor="#000"
1765
- brushRadius={3}
1766
- lazyRadius={2}
1767
- canvasWidth="100%"
1768
- canvasHeight="100%"
1769
- hideGrid={true}
1770
- ></CanvasDraw>
1771
- </div>
1772
- </Modal>
1773
- <video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"
1774
- webkit-playsinline="true" playsInline={true} x5-playsinline="x5-playsinline"
1775
- x-webkit-airplay="true"></video>
1776
- </Spin>
1777
- </div>
1778
-
1779
- );
1883
+ </Modal>
1884
+ <video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"
1885
+ webkit-playsinline="true" playsInline={true} x5-playsinline="x5-playsinline"
1886
+ x-webkit-airplay="true"></video>
1887
+ </Spin>
1888
+ </div>);
1780
1889
  }
1781
1890
  }
1782
1891
  Video.defaultProps = {
@@ -1784,6 +1893,6 @@ Video.defaultProps = {
1784
1893
  businessNumber: '123',
1785
1894
  callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
1786
1895
  roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
1787
- resourcePath:'https://counter-web.leimondata.cn:7199',
1896
+ resourcePath: 'https://counter-web.leimondata.cn:7199',
1788
1897
  }
1789
1898
  export default Video