mobile CCTV,mobile surveillance,police body worn cameras

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

群组创建后拉人失败

[copyURL]

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
jumpTo
owner
poston 2019-5-6 09:38 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
群组创建 通过这个方法邀请人加入
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

10

主题

531

帖子

2483

积分

admin

Rank: 9Rank: 9Rank: 9

积分
2483
sofa
poston 2019-5-6 14:47 | authorOnly
请描述上下文场景。WEB SDK?
reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
bench
 Owner| poston 2019-5-6 16:00 | authorOnly
admin post on2019-5-6 14:47
请描述上下文场景。WEB SDK?

是android SDK
reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
ground
 Owner| poston 2019-5-6 16:01 | authorOnly

一个用户建立一个组 这个组可以自由加入无密码。然后勾选人邀请加入组。
reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
5#
 Owner| poston 2019-5-8 11:38 | authorOnly
admin post on2019-5-6 14:47
请描述上下文场景。WEB SDK?

创建群组后 通过 BVCU_SubMethod.BVCU_SUBMETHOD_CONF_PARTICIPATOR_ADD 方法邀请用户加入群组
打印如下结果 请问是什么错误

  1. 2019-05-08 11:33:50.070 10001-10073/com.inchatcu.mcu D/InChat: process: [method]:--> 2
  2.     process: [s_method]:--> conf.port.add.response
  3.     process: [i_submethod]:--> 140804
  4.     process: [i_token]:--> 631
  5.     process: [i_result]:--> -65531
  6.     process: [i_present]:--> null
  7.     process: [i_mediadir]:--> -1
  8.     process: [s_function]:--> CMS_00163E023B01
  9.     process: [s_result]:--> null
copycode

reply agree Against

使用道具 report

1

主题

317

帖子

1133

积分

vipMem

Rank: 6Rank: 6

积分
1133
6#
poston 2019-5-8 11:55 | authorOnly
LJJ post on2019-5-8 11:38
创建群组后 通过 BVCU_SubMethod.BVCU_SUBMETHOD_CONF_PARTICIPATOR_ADD 方法邀请用户加入群组
打印如下 ...

not found.    参数怎么填的贴出来下。
reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
7#
 Owner| poston 2019-5-9 09:56 | authorOnly
Arthur post on2019-5-8 11:55
not found.    参数怎么填的贴出来下。
这个是创建群组的方法  inviteArray 是选取人员的数组
  1. public void createChat() {
  2.         if (fragmentAllPersonTree.isVisible()) {
  3.             inviteArray = fragmentAllPersonTree.getSeletedPerson();
  4.         } else {
  5.             inviteArray = fragmentAllUserInChannel.getSeletedPerson();
  6.         }
  7.         //如果邀请的人数非空 且人数大于一
  8.         if (inviteArray != null && inviteArray.length > 0) {
  9.             createBaseInfo = new BVCU_Conf_BaseInfo();
  10.             StringBuilder groupName = new StringBuilder();
  11.             for (BVCU_Conf_Participator_Info pp : inviteArray) {
  12.                 groupName.append(pp.szUserName);
  13.             }
  14.             createBaseInfo.szName = groupName.toString();

  15.             createBaseInfo.iMode = BVCU_CONF_MODE.BVCU_CONF_MODE_SPEAK_DISCUSSIONGROUP//自由发言模式
  16.                     + BVCU_CONF_MODE.BVCU_CONF_MODE_JOIN_INVITE //邀请加入
  17.                     + BVCU_CONF_MODE.BVCU_CONF_MODE_APPLY_AUTOAGREE //自动同意
  18.                     + BVCU_CONF_MODE.BVCU_CONF_MODE_START_STOPADMIN; //由管理员停止会议
  19.             createBaseInfo.szPassword = "";
  20.             createBaseInfo.iConfStatus = BVCU_CONF_STATUS.BVCU_CONF_STATUS_STARTED;//会议状态 默认为开始会议状态
  21.             mcu.setCall(false);
  22.             int token = IMControl.confCreate(createBaseInfo);//创建会议

  23.             
  24.             Log.d("----", "createChat:     " + token);
  25.             loadDialog.setLoadingBuilder(Z_TYPE.SNAKE_CIRCLE)//设置类型
  26.                     .setLoadingColor(Color.BLACK)//颜色
  27.                     .setHintText("群组创建中...")
  28.                     .setHintTextSize(16) // 设置字体大小 dp
  29.                     .setHintTextColor(Color.GRAY)  // 设置字体颜色
  30.                     .setDurationTime(0.5) // 设置动画时间百分比 - 0.5倍
  31.                     .setDialogBackgroundColor(Color.parseColor("#CC111111")) // 设置背景色,默认白色
  32.                     .show();
  33.             if (token < 0) {
  34.                 loadDialog.dismiss();
  35.                 Toast.makeText(this, "创建群组错误 error_code:" + token, Toast.LENGTH_SHORT).show();
  36.             } else {
  37.                 handler.sendEmptyMessage(2);
  38.             }
  39.         } else {
  40.             Toast.makeText(this, "请先邀请用户!", Toast.LENGTH_SHORT).show();
  41.         }

  42.     }
copycode

reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

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

  

这是邀请人的方法

  1. public static int confParticipatorAdd(String targetID,
  2.                                           BVCU_Conf_Participator_Info[] infos) {
  3.         BVCU_Command command = new BVCU_Command();
  4.         command.iMethod = BVCU_Method.BVCU_METHOD_CONTROL;
  5.         command.iSubMethod = BVCU_SubMethod.BVCU_SUBMETHOD_CONF_PARTICIPATOR_ADD;
  6.         command.szTargetID = targetID;
  7.         command.stMsgContent = new BVCU_CmdMsgContent();
  8.         command.stMsgContent.iDataCount = infos.length;
  9.         if (infos.length == 1) {
  10.             command.stMsgContent.pData = infos[0];
  11.         } else {
  12.             command.stMsgContent.pData = infos;
  13.         }
  14.         return mcu.getConnection().sendCmd(command);
  15.     }
copycode
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

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

creditRule

QQ|wireless surveillance

GMT+8, 2024-9-21 11:09 , Processed in 0.075198 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList