react_hsbc_teller 0.3.9 → 0.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "0.3.9",
3
+ "version": "0.4.0",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
Binary file
@@ -52,7 +52,6 @@ class Video extends Component {
52
52
  cameraImg: cameraImgOpen,
53
53
  voiceStatue: false,
54
54
  voiceImg: voiceImgOpen,
55
- isBigVideo: 'video1',
56
55
  isCustomer: false,
57
56
  publishDevic: 1,
58
57
  isSharedScreen: false,
@@ -78,7 +77,14 @@ class Video extends Component {
78
77
  videoFiveName: '',
79
78
  videoSixName: '',
80
79
  tabTitles: [
81
- ]
80
+ ],
81
+ videoList: [],
82
+ voiceVideoOne: false,
83
+ voiceVideoTwo: false,
84
+ voiceVideoThree: false,
85
+ voiceVideoFour: false,
86
+ voiceVideoFive: false,
87
+ voiceVideoSix: false,
82
88
  };
83
89
  // eslint-disable-next-line no-undef
84
90
  test_controller = '';
@@ -426,38 +432,6 @@ class Video extends Component {
426
432
  endSessionValue = () => {
427
433
  this.test_controller.LeaveRoom()
428
434
  };
429
- // 放大对应的视频
430
- enlargeClick = (val) => {
431
- if (val == 'isLangVideo1') {
432
- if (document.getElementById('video1').name) {
433
- this.setState({ isBigVideo: 'video1' })
434
- }
435
- } else if (val == 'isLangPublishVideo1') {
436
- if (document.getElementById('publish_video1').name && this.state.isCustomer) {
437
- this.setState({ isBigVideo: 'publish_video1' })
438
- }
439
- } else if (val == 'isLangVideo2') {
440
- if (document.getElementById('video2').name) {
441
- this.setState({ isBigVideo: 'video2' })
442
- }
443
- } else if (val == 'isLangVideo3') {
444
- if (document.getElementById('video3').name) {
445
- this.setState({ isBigVideo: 'video3' })
446
- }
447
- } else if (val == 'isLangVideo4') {
448
- if (document.getElementById('video4').name) {
449
- this.setState({ isBigVideo: 'video4' })
450
- }
451
- } else if (val == 'isLangVideo5') {
452
- if (document.getElementById('video5').name) {
453
- this.setState({ isBigVideo: 'video5' })
454
- }
455
- } else if (val == 'isLangVideo6') {
456
- if (document.getElementById('video6').name) {
457
- this.setState({ isBigVideo: 'video6' })
458
- }
459
- }
460
- };
461
435
  // 画中画
462
436
  pictureInPicture = () => {
463
437
  let interval
@@ -745,6 +719,81 @@ class Video extends Component {
745
719
 
746
720
  }
747
721
 
722
+ } else if (Mival.typeId == 3100) {
723
+ if(Mival.data.sessionId == this.state.sessionId) {
724
+ if(Mival.data.userId == this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid) {
725
+ if(Mival.muteStatus == 0) {
726
+ this.setState({
727
+ voiceVideoOne: false
728
+ })
729
+ } else if(Mival.muteStatus == 1) {
730
+ this.setState({
731
+ voiceVideoOne: true
732
+ })
733
+ }
734
+
735
+ }
736
+ if(Mival.data.userId == (document.getElementById("feedId2").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid : '')) {
737
+ if(Mival.muteStatus == 0) {
738
+ this.setState({
739
+ voiceVideoTwo: false
740
+ })
741
+ } else if(Mival.muteStatus == 1) {
742
+ this.setState({
743
+ voiceVideoTwo: true
744
+ })
745
+ }
746
+
747
+ }
748
+ if(Mival.data.userId == (document.getElementById("feedId3").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid : '')) {
749
+ if(Mival.muteStatus == 0) {
750
+ this.setState({
751
+ voiceVideoThree: false
752
+ })
753
+ } else if(Mival.muteStatus == 1) {
754
+ this.setState({
755
+ voiceVideoThree: true
756
+ })
757
+ }
758
+
759
+ }
760
+ if(Mival.data.userId == (document.getElementById("feedId4").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid : '')) {
761
+ if(Mival.muteStatus == 0) {
762
+ this.setState({
763
+ voiceVideoFour: false
764
+ })
765
+ } else if(Mival.muteStatus == 1) {
766
+ this.setState({
767
+ voiceVideoFour: true
768
+ })
769
+ }
770
+
771
+ }
772
+ if(Mival.data.userId == (document.getElementById("feedId5").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid : '')) {
773
+ if(Mival.muteStatus == 0) {
774
+ this.setState({
775
+ voiceVideoFive: false
776
+ })
777
+ } else if(Mival.muteStatus == 1) {
778
+ this.setState({
779
+ voiceVideoFive: true
780
+ })
781
+ }
782
+
783
+ }
784
+ if(Mival.data.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
785
+ if(Mival.muteStatus == 0) {
786
+ this.setState({
787
+ voiceVideoSix: false
788
+ })
789
+ } else if(Mival.muteStatus == 1) {
790
+ this.setState({
791
+ voiceVideoSix: true
792
+ })
793
+ }
794
+
795
+ }
796
+ }
748
797
  }
749
798
  };
750
799
 
@@ -753,7 +802,7 @@ class Video extends Component {
753
802
  type: '2',
754
803
  sigType: 1
755
804
  };
756
- this.mpaasSig(data);
805
+
757
806
  this.test_controller.GetDevices();
758
807
  // 获取设备成功
759
808
  this.test_controller.OnGetDevicesSuccess = (devicesInfo) => {
@@ -806,11 +855,13 @@ class Video extends Component {
806
855
  obj2.push(b)
807
856
  }
808
857
  }
809
- console.log(obj, obj1)
858
+ this.mpaasSig(data);
810
859
  };
811
860
  // 获取设备失败
812
861
  this.test_controller.OnGetDevicesFailed = (code, msg) => {
813
862
  console.log('获取设备失败', code, msg)
863
+ message.success('获取设备失败,请检查摄像头设备是否可用或是否禁用摄像头')
864
+ this.roomCallBack(2,'获取失败失败')
814
865
  };
815
866
  // 建立连接成功
816
867
  this.test_controller.OnConnectOK = () => {
@@ -922,7 +973,7 @@ class Video extends Component {
922
973
  // 推送“新加⼊房间者”给与会者
923
974
  this.test_controller.OnNewJoinerIn = (participant) => {
924
975
  console.log('新加⼊房间者', participant);
925
- this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 5)
976
+ // this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 5)
926
977
  this.setState(
927
978
  {
928
979
  isCustomer: true
@@ -961,6 +1012,24 @@ class Video extends Component {
961
1012
  },'add'
962
1013
  )
963
1014
  } else {
1015
+ // let data_param = {
1016
+ // isVideo: true,
1017
+ // videoIndex: this.state.videoList.length + 1,
1018
+ // videoTwoName: ''
1019
+ // }
1020
+ // let videoList = []
1021
+ // console.log(data_param)
1022
+ // videoList.push(data_param)
1023
+ // this.setState({
1024
+ // videoList
1025
+ // })
1026
+ // config_param = {
1027
+ // subscribe_video_id: 'video' + this.state.videoList.length,
1028
+ // subscribe_audio_id: 'audio' + this.state.videoList.length,
1029
+ // subscribe_streamId_id: 'subscribe_streamId' + this.state.videoList.length,
1030
+ // feedId_id: 'feedId' + this.state.videoList.length,
1031
+ // feedId: feed.feedId
1032
+ // }
964
1033
  if(!document.getElementById('video1').name) {
965
1034
  config_param = {
966
1035
  subscribe_video_id: 'video1',
@@ -1020,6 +1089,7 @@ class Video extends Component {
1020
1089
  }
1021
1090
  if (config_param !== undefined) {
1022
1091
  config_param.need_volume_analyser = true
1092
+ console.log(config_param)
1023
1093
  this.test_controller.Subscribe(config_param)
1024
1094
  }
1025
1095
  };
@@ -1102,7 +1172,7 @@ class Video extends Component {
1102
1172
  }
1103
1173
 
1104
1174
  if(this.state.roomCustomerList.length == 0) {
1105
- this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 3)
1175
+ // this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 3)
1106
1176
  this.setState({
1107
1177
  isCustomer: false
1108
1178
  })
@@ -1571,7 +1641,7 @@ class Video extends Component {
1571
1641
  }
1572
1642
  };
1573
1643
  isFileSuccuse = () => {
1574
- if (!this.state.sessionId || this.state.isSuspend || !this.state.isCustomer) {
1644
+ if (!this.state.sessionId || this.state.isSuspend) {
1575
1645
  message.success(this.props.prohibitPrompt)
1576
1646
  return false
1577
1647
  } else {
@@ -1885,6 +1955,28 @@ class Video extends Component {
1885
1955
  appGetUsername = async (sid) => {
1886
1956
  console.log(sid)
1887
1957
  let userId = ''
1958
+ let index
1959
+ // this.state.videoList.map((item,index)=>{
1960
+ // let name = 'video' + item.videoIndex
1961
+ // if(document.getElementById(name).name == sid){
1962
+ // userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById(("feedId" + item.videoIndex)).innerText).uid
1963
+ // index = index
1964
+ // }
1965
+ // })
1966
+ // try {
1967
+ // let result = await API.appGetUsername({
1968
+ // userId: userId
1969
+ // });
1970
+ // console.log(result)
1971
+ // if (result.code == 200) {
1972
+ // let data = result.data.userInfo ? result.data.userInfo.userName ? result.data.userInfo.userName : '' : ''
1973
+ // this.state.videoList[index].videoOneName = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById(("feedId" + item.videoIndex)).innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户' + item.videoIndex
1974
+ // } else {
1975
+ // message.success('查询失败')
1976
+ // }
1977
+ // } catch (err) {
1978
+
1979
+ // }
1888
1980
  if(document.getElementById('video1').name == sid){
1889
1981
  userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid
1890
1982
  }
@@ -2051,7 +2143,7 @@ class Video extends Component {
2051
2143
  }
2052
2144
  }
2053
2145
  render() {
2054
- const {theme} = this.props
2146
+ const {meetingInfo} = this.props
2055
2147
  var pdfChildren
2056
2148
  if (this.props.children) {
2057
2149
  pdfChildren = React.cloneElement(this.props.children, { width: 100, height: 100, id: 12 })
@@ -2059,11 +2151,11 @@ class Video extends Component {
2059
2151
  const customerNameList = (
2060
2152
  <span>
2061
2153
  {
2062
- theme.customers.map((item,index)=>{
2154
+ meetingInfo.customers.map((item,index)=>{
2063
2155
  return <label>
2064
2156
  {item}
2065
2157
  {
2066
- theme.customers.length > 0 && index != theme.customers.length-1 &&<span>,</span>
2158
+ meetingInfo.customers.length > 0 && index != meetingInfo.customers.length-1 &&<span>,</span>
2067
2159
  }
2068
2160
 
2069
2161
  </label>
@@ -2082,13 +2174,33 @@ class Video extends Component {
2082
2174
  }
2083
2175
  </div>
2084
2176
  )
2177
+ // const videoCustomer =
2178
+ // this.state.videoList.map((item,index)=>{
2179
+ // return <div className={`itemed`} style={{ display: (item.isVideo) ? '' : 'none', }}>
2180
+ // <video
2181
+ // id={'video' + item.videoIndex}
2182
+ // autoPlay
2183
+ // muted={true}
2184
+ // className="video"
2185
+ // />
2186
+ // <audio id={'audio' + item.videoIndex} autoPlay />
2187
+ // <label style={{ display: 'none' }} id={'feedId' + item.videoIndex} type="text" />
2188
+ // <div className={`customerTitle titleSamlle`}>
2189
+ // <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2190
+ // {this.state.videoTwoName}
2191
+ // </div>
2192
+ // </div>
2193
+ // <canvas className="canvasClassOne" id={'subscribe_volumeView' + item.videoIndex} width="40" height="70"></canvas>
2194
+ // </div>
2195
+ // })
2196
+
2085
2197
  return (
2086
2198
  <div className="all">
2087
2199
  <Spin spinning={this.state.loading} tip="视频初始化中...">
2088
2200
  <Header></Header>
2089
2201
  {tabTitleList}
2090
2202
  <div className="health" style={{'margin-top': (this.state.tabTitles.length > 0) ? '0px' : '20px' }}>
2091
- <div className="projection" style={{ display: (this.state.isCustomer) ? '' : 'none', }}>
2203
+ <div className="projection">
2092
2204
  <div className="videoDiv" style={{ display: (this.state.isSelect == 'RMScreen') ? '' : 'none', }}>
2093
2205
  <div className="videoDiv">
2094
2206
  <video
@@ -2128,11 +2240,11 @@ class Video extends Component {
2128
2240
  <ul>
2129
2241
  <li>
2130
2242
  <span>会议主题:</span>
2131
- <label>{theme.title}</label>
2243
+ <label>{meetingInfo.title}</label>
2132
2244
  </li>
2133
2245
  <li>
2134
2246
  <span>支持人:</span>
2135
- <label>{theme.host}</label>
2247
+ <label>{meetingInfo.host}</label>
2136
2248
  </li>
2137
2249
  <li>
2138
2250
  <span>参会客户:</span>
@@ -2145,15 +2257,15 @@ class Video extends Component {
2145
2257
 
2146
2258
 
2147
2259
  </div>
2148
- <div className="wrapper" style={{ width: (this.state.isCustomer) ? '20%' : '100%', }}>
2260
+ <div className="wrapper" style={{ width: '20%' , }}>
2149
2261
  <div
2150
- className={`itemed ${this.state.publishDevic == 4 ? '' : (this.state.isBigVideo == 'publish_video1' ? 'isBack' : (this.state.isCustomer ? 'isBack' : ''))} ${this.state.isCustomer ? '' : 'video1Div'}`}
2262
+ className={`itemed ${this.state.publishDevic == 4 ? '' : 'isBack'} `}
2151
2263
  >
2152
2264
  <div className="publishVideoDiv">
2153
2265
 
2154
2266
  <video
2155
2267
  id="publish_video1"
2156
- className={`publishVideoClass ${this.state.isCustomer ? '' : "videoFit"}`}
2268
+ className={`publishVideoClass`}
2157
2269
  autoPlay
2158
2270
  muted={true}
2159
2271
  webkit-playsinline={true}
@@ -2163,21 +2275,23 @@ class Video extends Component {
2163
2275
  {
2164
2276
  this.state.voiceStatue && <img
2165
2277
  alt=""
2166
- src={require("../../assets/img/icon_MuteOne.png").default}
2167
- className="imgClass voiceClass"
2278
+ src={require("../../assets/img/jingyin.png").default}
2279
+ className="imgClassVoice voiceClass"
2168
2280
  />
2169
2281
  }
2170
- <div id="publish_video_div" style={{ display: (this.state.isCustomer) ? '' : 'none'}} className={`tellerTitle titleSamlle`}>
2282
+ <div id="publish_video_div" className={`tellerTitle titleSamlle`}>
2171
2283
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>坐席</div>
2172
2284
  </div>
2173
- <canvas style={{ display: (this.state.isCustomer && !this.state.voiceStatue) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
2285
+ <canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
2174
2286
  </div>
2175
2287
 
2176
2288
  </div>
2289
+ {/* {
2290
+ videoCustomer
2291
+ } */}
2177
2292
  <div style={{ display: (this.state.isCustomer) ? '' : 'none', }}>
2178
2293
  <div
2179
- className={`itemed ${this.state.isBigVideo == 'video1' ? 'item1' : ""}`}
2180
- // className="itemed item1"
2294
+ className={`itemed`}
2181
2295
  style={{ position: "relative"}}
2182
2296
  >
2183
2297
  {
@@ -2196,6 +2310,13 @@ class Video extends Component {
2196
2310
  />
2197
2311
  <audio id="audio1" autoPlay />
2198
2312
  <label style={{ display: 'none' }} id="feedId1" type="text" />
2313
+ {
2314
+ this.state.voiceVideoOne && <img
2315
+ alt=""
2316
+ src={require("../../assets/img/jingyin.png").default}
2317
+ className="imgClassVoice voiceVideoClass"
2318
+ />
2319
+ }
2199
2320
  <div style={{ display: (this.state.videoOneName) ? '' : 'none'}} className={`customerTitle titleSamlle`}>
2200
2321
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2201
2322
  {this.state.videoOneName}
@@ -2203,7 +2324,7 @@ class Video extends Component {
2203
2324
 
2204
2325
 
2205
2326
  </div>
2206
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
2327
+ <canvas style={{ display: (!this.state.voiceVideoOne) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
2207
2328
  </div>
2208
2329
  </div>
2209
2330
  <div className={`itemed`}>
@@ -2215,12 +2336,19 @@ class Video extends Component {
2215
2336
  />
2216
2337
  <audio id="audio2" autoPlay />
2217
2338
  <label style={{ display: 'none' }} id="feedId2" type="text" />
2339
+ {
2340
+ this.state.voiceVideoTwo && <img
2341
+ alt=""
2342
+ src={require("../../assets/img/jingyin.png").default}
2343
+ className="imgClassVoice voiceVideoClass"
2344
+ />
2345
+ }
2218
2346
  <div style={{ display: (this.state.videoTwoName) ? '' : 'none'}} className={`customerTitle titleSamlle`}>
2219
2347
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2220
2348
  {this.state.videoTwoName}
2221
2349
  </div>
2222
2350
  </div>
2223
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
2351
+ <canvas style={{ display: (!this.state.voiceVideoTwo) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
2224
2352
  </div>
2225
2353
  <div className={`itemed`}
2226
2354
  style={{'margin-top': '5px' }}>
@@ -2232,12 +2360,19 @@ class Video extends Component {
2232
2360
  />
2233
2361
  <audio id="audio3" autoPlay />
2234
2362
  <label style={{ display: 'none' }} id="feedId3" type="text" />
2363
+ {
2364
+ this.state.voiceVideoThree && <img
2365
+ alt=""
2366
+ src={require("../../assets/img/jingyin.png").default}
2367
+ className="imgClassVoice voiceVideoClass"
2368
+ />
2369
+ }
2235
2370
  <div style={{ display: (this.state.videoThreeName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
2236
2371
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2237
2372
  {this.state.videoThreeName}
2238
2373
  </div>
2239
2374
  </div>
2240
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
2375
+ <canvas style={{ display: (!this.state.voiceVideoThree) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
2241
2376
  </div>
2242
2377
  <div className={`itemed`}>
2243
2378
  <video
@@ -2248,12 +2383,19 @@ class Video extends Component {
2248
2383
  />
2249
2384
  <audio id="audio4" autoPlay />
2250
2385
  <label style={{ display: 'none' }} id="feedId4" type="text" />
2386
+ {
2387
+ this.state.voiceVideoFour && <img
2388
+ alt=""
2389
+ src={require("../../assets/img/jingyin.png").default}
2390
+ className="imgClassVoice voiceVideoClass"
2391
+ />
2392
+ }
2251
2393
  <div style={{ display: (this.state.videoFourName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
2252
2394
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2253
2395
  {this.state.videoFourName}
2254
2396
  </div>
2255
2397
  </div>
2256
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
2398
+ <canvas style={{ display: (!this.state.voiceVideoFour) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
2257
2399
  </div>
2258
2400
  <div className={`itemed`}
2259
2401
  style={{'margin-top': '5px' }}>
@@ -2265,14 +2407,21 @@ class Video extends Component {
2265
2407
  />
2266
2408
  <audio id="audio5" autoPlay />
2267
2409
  <label style={{ display: 'none' }} id="feedId5" type="text" />
2410
+ {
2411
+ this.state.voiceVideoFive && <img
2412
+ alt=""
2413
+ src={require("../../assets/img/jingyin.png").default}
2414
+ className="imgClassVoice voiceVideoClass"
2415
+ />
2416
+ }
2268
2417
  <div style={{ display: (this.state.videoFiveName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
2269
2418
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2270
2419
  {this.state.videoFiveName}
2271
2420
  </div>
2272
2421
  </div>
2273
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
2422
+ <canvas style={{ display: (!this.state.voiceVideoFive) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
2274
2423
  </div>
2275
- <div className={`"itemed"`}>
2424
+ <div className={`itemed`}>
2276
2425
  <video
2277
2426
  id="video6"
2278
2427
  autoPlay
@@ -2281,12 +2430,19 @@ class Video extends Component {
2281
2430
  />
2282
2431
  <audio id="audio6" autoPlay />
2283
2432
  <label style={{ display: 'none' }} id="feedId6" type="text" />
2433
+ {
2434
+ this.state.voiceVideoSix && <img
2435
+ alt=""
2436
+ src={require("../../assets/img/jingyin.png").default}
2437
+ className="imgClassVoice voiceVideoClass"
2438
+ />
2439
+ }
2284
2440
  <div style={{ display: (this.state.videoSixName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
2285
2441
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2286
2442
  {this.state.videoSixName}
2287
2443
  </div>
2288
2444
  </div>
2289
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
2445
+ <canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
2290
2446
 
2291
2447
  </div>
2292
2448
  </div>
@@ -2390,7 +2546,7 @@ Video.defaultProps = {
2390
2546
  fontSize: '14',
2391
2547
  fontFamily: 'auto',
2392
2548
  menus: ['SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP'],
2393
- theme: {
2549
+ meetingInfo: {
2394
2550
  title: '测试',
2395
2551
  host: 'wmz',
2396
2552
  customers: ['王三','张思']
@@ -12,6 +12,10 @@
12
12
  height: 100%;
13
13
  float: right
14
14
  }
15
+ .imgClassVoice{
16
+ width: 60px;
17
+ height: 60px;
18
+ }
15
19
  .sharedScreen{
16
20
  font-size: 10px;
17
21
  position: absolute;
@@ -227,4 +231,10 @@ border-radius: 0px 0px 2px 2px;
227
231
  position: absolute;
228
232
  bottom: 0;
229
233
  left: 0;
234
+ transform: rotateY(180deg);
235
+ }
236
+ .voiceVideoClass{
237
+ position: absolute;
238
+ bottom: 0;
239
+ right: 0;
230
240
  }