mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
12NextPage
backToList newPost
view: 2464|reply: 16
打印 prevThread nextThread

群组创建后拉人失败

[copyURL]

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
jumpTo
owner
poston 2019-5-6 09:38 | authorOnly 回帖奖励 |viewing |阅读模式
群组创建 通过这个方法邀请人加入
public static int confParticipatorAdd(String targetID,
                                      BVCU_Conf_Participator_Info[] infos) {
    BVCU_Command command = new BVCU_Command();
    command.iMethod = BVCU_Method.BVCU_METHOD_CONTROL;
    command.iSubMethod = BVCU_SubMethod.BVCU_SUBMETHOD_CONF_PARTICIPATOR_ADD;
    command.szTargetID = targetID;
    command.stMsgContent = new BVCU_CmdMsgContent();
    command.stMsgContent.iDataCount = infos.length;
    if (infos.length == 1) {
        command.stMsgContent.pData = infos[0];
    } else {
        command.stMsgContent.pData = infos;
    }
    return mcu.getConnection().sendCmd(command);
}

但是群组里只有创建人,请问后续还有哪些步骤






reply

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
17#
 Owner| poston 2019-5-9 17:15 | authorOnly
Arthur post on2019-5-9 16:09
1.confParticipatorAdd看下返回值是不是大于0的,来确定命令有没有发送成功。
2.userParticipator.szID  ...

抱歉 帖子没刷出来新的消息 才看到   我试一试
reply agree Against

使用道具 report

1

主题

317

帖子

1133

积分

vipMem

Rank: 6Rank: 6

积分
1133
16#
poston 2019-5-9 16:09 | authorOnly
LJJ post on2019-5-9 15:27
没有收到 被邀请端打印了这两组数据

1.confParticipatorAdd看下返回值是不是大于0的,来确定命令有没有发送成功。
2.userParticipator.szID = userOnline.szDevID;
                    userParticipator.szUserName = name;
                    userParticipator.szAddr = userOnline.szAddr;
                    userParticipator.iApplierID = userOnline.iApplierID;
这些值打印一下,可能不对,在线用户的iApplierID 不可能都是0的。你拉的是在线用户还是离线用户?
3.循环confParticipatorAdd拉取单个用户试试。

reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
15#
 Owner| poston 2019-5-9 15:27 | authorOnly
LJJ post on2019-5-9 14:57
好的 我看一下

没有收到 被邀请端打印了这两组数据
  1. 2019-05-09 15:24:45.353 13931-14262/com.inchatcu.mcu D/InChat: process: [method]:--> 524290
  2.     process: [s_method]:--> conf.create
  3.     process: [i_submethod]:--> 140800
  4.     process: [i_token]:--> -1
  5.     process: [i_result]:--> -1
  6.     process: [i_present]:--> null
  7.     process: [i_mediadir]:--> -1
  8.     process: [s_function]:--> {
  9.             "szID":        "",
  10.             "szUserName":        "\u0003",
  11.             "szAddr":        "",
  12.             "szAliasName":        "%���",
  13.             "iApplierID":        -509607933,
  14.             "iPID":        -442552172,
  15.             "iAllowedMediaDir":        -527486973,
  16.             "iStatus":        -509603837,
  17.             "iPower":        -335699951,
  18.             "iVolume":        -509595648
  19.     }
  20.     process: [s_result]:--> {
  21.             "szName":        "默认群组-1557386686933",
  22.             "szID":        "CONF_5CD3D5BD",
  23.             "iMode":        128,
  24.             "szPassword":        "",
  25.             "iConfStatus":        0,
  26.             "iTimeOut":        0
  27.     }
  28. 2019-05-09 15:24:45.681 13931-14262/com.inchatcu.mcu D/InChat: process: [method]:--> 1
  29.     process: [s_method]:--> conf.info
  30.     process: [i_submethod]:--> 5633
  31.     process: [i_token]:--> 635
  32.     process: [i_result]:--> 200
  33.     process: [i_present]:--> null
  34.     process: [i_mediadir]:--> -1
  35.     process: [s_function]:--> null
  36.     process: [s_result]:--> {
  37.             "iParticipatorCount":        1,
  38.             "baseInfo":        {
  39.                     "szID":        "CONF_5CD3D5BD",
  40.                     "szName":        "默认群组-1557386686933",
  41.                     "szPassword":        "",
  42.                     "iConfStatus":        0,
  43.                     "iMode":        128,
  44.                     "iTimeOut":        0
  45.             },
  46.             "pParticipators":        [{
  47.                             "szID":        "UA_26445420",
  48.                             "szUserName":        "0107a",
  49.                             "szAddr":        "116.226.153.253",
  50.                             "szAliasName":        "",
  51.                             "iApplierID":        10807,
  52.                             "iPID":        0,
  53.                             "iAllowedMediaDir":        12,
  54.                             "iStatus":        1,
  55.                             "iPower":        1,
  56.                             "iVolume":        128
  57.                     }]
  58.     }

copycode

reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
14#
 Owner| poston 2019-5-9 14:57 | authorOnly
Arthur post on2019-5-9 14:44
在被邀请方看下BVCU_SubMethod.BVCU_SUBMETHOD_CONF_PARTICIPATOR_ADD_CMD有没有收到

好的 我看一下
reply agree Against

使用道具 report

1

主题

317

帖子

1133

积分

vipMem

Rank: 6Rank: 6

积分
1133
13#
poston 2019-5-9 14:44 | authorOnly
LJJ post on2019-5-9 14:39
inviteArray 是受邀请人的集合

在被邀请方看下BVCU_SubMethod.BVCU_SUBMETHOD_CONF_PARTICIPATOR_ADD_CMD有没有收到
reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
12#
 Owner| poston 2019-5-9 14:39 | authorOnly
LJJ post on2019-5-9 14:37
createBaseInfo 是上面创建群组的信息
inviteArray是邀请的人的数组



inviteArray 是受邀请人的集合
  1.   //获取选中的人的数组 用于创建群组
  2.     public BVCU_Conf_Participator_Info[] getSeletedPerson() {

  3.         //循环遍历 创建聊天组中的人
  4.         for (String name : userNameList) {
  5.             ArrayList<BVCU_UCFG_User_Online> userOnlineList = UserObserver.getInstance().getUserOnlineListForUserName(name);//获取登录
  6.             if (userOnlineList != null && userOnlineList.size() > 0) {
  7.                 for (BVCU_UCFG_User_Online userOnline : userOnlineList) {
  8.                     BVCU_Conf_Participator_Info userParticipator = new BVCU_Conf_Participator_Info();
  9.                     userParticipator.szID = userOnline.szDevID;
  10.                     userParticipator.szUserName = name;
  11.                     userParticipator.szAddr = userOnline.szAddr;
  12.                     userParticipator.iApplierID = userOnline.iApplierID;
  13.                     userList.add(userParticipator);
  14.                 }
  15.             } else {
  16.                 BVCU_Conf_Participator_Info userParticipator = new BVCU_Conf_Participator_Info();
  17.                 userParticipator.szID = "CU_";
  18.                 userParticipator.szUserName = name;
  19.                 userList.add(userParticipator);
  20.             }
  21.         }
  22.         inviteArray = userList.toArray(new BVCU_Conf_Participator_Info[userList.size()]);

  23.         return inviteArray;
  24.     }
copycode
reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
11#
 Owner| poston 2019-5-9 14:37 | authorOnly
Arthur post on2019-5-9 14:17
confParticipatorAdd的参数是怎么填的

createBaseInfo 是上面创建群组的信息
inviteArray是邀请的人的数组


  1.      IMControl.confParticipatorAdd(createBaseInfo.szID, inviteArray);
copycode
reply agree Against

使用道具 report

1

主题

317

帖子

1133

积分

vipMem

Rank: 6Rank: 6

积分
1133
10#
poston 2019-5-9 14:17 | authorOnly
LJJ post on2019-5-9 09:57
这是邀请人的方法

confParticipatorAdd的参数是怎么填的
reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
9#
 Owner| poston 2019-5-9 10:00 | authorOnly
Arthur post on2019-5-8 11:55
not found.    参数怎么填的贴出来下。


这个是邀请的人的信息
  1. 2019-05-09 09:55:02.052 14347-14347/com.inchatcu.mcu D/---: getAllUserList: {"iAllowedMediaDir":12,"iApplierID":23614,"iPID":0,"iPower":1,"iStatus":1,"iVolume":128,"szAddr":"116.226.153.253","szAliasName":"","szID":"CU_80FA5B579B25","szUserName":"admin"}
  2. 2019-05-09 09:55:02.052 14347-14347/com.inchatcu.mcu D/---: getAllUserList: {"iAllowedMediaDir":12,"iApplierID":0,"iPID":1,"iPower":0,"iStatus":0,"iVolume":128,"szAddr":"","szAliasName":"","szID":"UA_20223914","szUserName":"010601a"}
  3. 2019-05-09 09:55:02.052 14347-14347/com.inchatcu.mcu D/---: getAllUserList: {"iAllowedMediaDir":12,"iApplierID":0,"iPID":2,"iPower":0,"iStatus":0,"iVolume":128,"szAddr":"","szAliasName":"","szID":"UA_20223914","szUserName":"010602b"}
  4. 2019-05-09 09:55:02.052 14347-14347/com.inchatcu.mcu D/---: getAllUserList: {"iAllowedMediaDir":12,"iApplierID":22400,"iPID":3,"iPower":0,"iStatus":1,"iVolume":-1,"szAddr":"116.226.153.253","szAliasName":"","szID":"UA_26445420","szUserName":"0107a"}
  5. 2019-05-09 09:55:02.052 14347-14347/com.inchatcu.mcu D/---: getAllUserList: {"iAllowedMediaDir":12,"iApplierID":0,"iPID":4,"iPower":0,"iStatus":0,"iVolume":128,"szAddr":"","szAliasName":"","szID":"CU_","szUserName":"0107all"}
  6. 2019-05-09 09:55:02.052 14347-14347/com.inchatcu.mcu D/---: getAllUserList: {"iAllowedMediaDir":12,"iApplierID":0,"iPID":5,"iPower":0,"iStatus":0,"iVolume":128,"szAddr":"","szAliasName":"","szID":"CU_","szUserName":"010702b"}
  7. 2019-05-09 09:55:02.052 14347-14347/com.inchatcu.mcu D/---: getAllUserList: {"iAllowedMediaDir":12,"iApplierID":0,"iPID":6,"iPower":0,"iStatus":0,"iVolume":128,"szAddr":"","szAliasName":"","szID":"CU_","szUserName":"010701a"}
  8. 2019-05-09 09:55:02.052 14347-14347/com.inchatcu.mcu D/---: getAllUserList: {"iAllowedMediaDir":12,"iApplierID":2946,"iPID":1025,"iPower":1,"iStatus":1,"iVolume":-1,"szAddr":"116.226.153.253","szAliasName":"admin","szID":"CU_34E6D7FE239A","szUserName":"admin"}
copycode
reply agree Against

使用道具 report

QQ|wireless surveillance

GMT+8, 2024-9-21 10:33 , Processed in 0.062502 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList