react_hsbc_teller 0.8.4 → 0.8.5

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.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -230,7 +230,7 @@ class Video extends Component {
230
230
  if(err.status == 502 || err.status== 404) {
231
231
  this.roomCallBack(2, '连接服务器失败','SYS-02')
232
232
  } else {
233
- this.roomCallBack(2, '签名失败',8)
233
+ this.roomCallBack(2, '签名失败',6)
234
234
  }
235
235
 
236
236
  }
@@ -1330,7 +1330,7 @@ class Video extends Component {
1330
1330
  this.setState({
1331
1331
  sessionType: false
1332
1332
  })
1333
- this.roomCallBack(2, 'im建立连接失败',7)
1333
+ this.roomCallBack(2, 'im建立连接失败',5)
1334
1334
  } else {
1335
1335
  this.setState({
1336
1336
  imStatus: msg
@@ -1514,7 +1514,7 @@ class Video extends Component {
1514
1514
  this.setState({
1515
1515
  sessionType: false
1516
1516
  })
1517
- this.roomCallBack(2, '创建房间失败',4)
1517
+ this.roomCallBack(2, '创建房间失败',7)
1518
1518
  };
1519
1519
  // 初始化⾳视频成功
1520
1520
  this.test_controller.OnMediaCallSucc = (sid) => {
@@ -1547,7 +1547,14 @@ class Video extends Component {
1547
1547
  sessionId: '',
1548
1548
  imRoomId: ''
1549
1549
  });
1550
- this.addToScript()
1550
+
1551
+ this.test_controller.Disconnect()
1552
+ let data = {
1553
+ account: this.props.tellerAccount,
1554
+ type: '2',
1555
+ sigType: 1
1556
+ };
1557
+ this.mpaasSig(data);
1551
1558
  };
1552
1559
  // 发布媒体流成功
1553
1560
  this.test_controller.OnPublishSucc = (sid) => {
@@ -1594,7 +1601,7 @@ class Video extends Component {
1594
1601
  this.setState({
1595
1602
  sessionType: false
1596
1603
  })
1597
- this.roomCallBack(2, '发布失败',6)
1604
+ this.roomCallBack(2, '发布失败',4)
1598
1605
  };
1599
1606
  // 订阅媒体流成功
1600
1607
  this.test_controller.OnSubscribeSucc = (feed, sid) => {
@@ -3028,6 +3035,7 @@ class Video extends Component {
3028
3035
  })
3029
3036
  }
3030
3037
  componentWillReceiveProps(props) {
3038
+ console.log('componentWillReceiveProps',props)
3031
3039
  this.setState({
3032
3040
  channelId: props.roomId,
3033
3041
  rtoken: props.mtoken,
@@ -3961,6 +3969,10 @@ class Video extends Component {
3961
3969
  }
3962
3970
  }
3963
3971
  Video.defaultProps = {
3972
+ mtoken: "26364ded9b83",
3973
+ roomId: "645157287240850",
3974
+ imRoomId: "Fwua8kGB6@conference.openfire2.leimondata.cn",
3975
+ sessionId: "Fwua8kGB6",
3964
3976
  tellerAccount: 't001',
3965
3977
  businessNumber: '123',
3966
3978
  callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',