mobile CCTV,mobile surveillance,police body worn cameras

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

bvcspsdk获取群聊详情返回的成员列表问题

[copyURL]

13

主题

49

帖子

205

积分

midMem

Rank: 3Rank: 3

积分
205
jumpTo
owner
poston 2021-1-18 09:06 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
调用获取会议详情接口,发送 BVCU_SUBMETHOD_CONF_INFO 指令,解析会议成员时返回的数据解析出现错乱,请看下

本帖子中包含更多资源

pls login 才可以下载或查看,没有帐号?registerNow

x
reply

使用道具 report

13

主题

373

帖子

2023

积分

vipMem

Rank: 6Rank: 6

积分
2023
sofa
poston 2021-1-18 09:40 | authorOnly
还请说明是WEB 开发,安卓侧开发?因为我们这套BVCSP SDK是跨平台的,我们需要确认您是在哪一侧做开发。
reply agree Against

使用道具 report

1

主题

580

帖子

2003

积分

vipMem

Rank: 6Rank: 6

积分
2003
bench
poston 2021-1-18 09:53 | authorOnly
您好,这样的情况一般是:1、使用的bvcsp头文件和bvcsp二进制文件版本不匹配。2、编译环境c结构体内存对齐规则不同。
正确情况下应该1的概率比较大,请联系bvcsp库获取方。
reply agree Against

使用道具 report

13

主题

49

帖子

205

积分

midMem

Rank: 3Rank: 3

积分
205
ground
 Owner| poston 2021-1-18 11:19 | authorOnly
fanghj90 post on2021-1-18 09:53
您好,这样的情况一般是:1、使用的bvcsp头文件和bvcsp二进制文件版本不匹配。2、编译环境c结构体内存对齐 ...

就是你们技术提供的,我怎么联系?
reply agree Against

使用道具 report

13

主题

49

帖子

205

积分

midMem

Rank: 3Rank: 3

积分
205
5#
 Owner| poston 2021-1-18 11:39 | authorOnly
fanghj90 post on2021-1-18 09:53
您好,这样的情况一般是:1、使用的bvcsp头文件和bvcsp二进制文件版本不匹配。2、编译环境c结构体内存对齐 ...

请研发确认下,目前返回的数据格式是否是这头文件的格式?

本帖子中包含更多资源

pls login 才可以下载或查看,没有帐号?registerNow

x
reply agree Against

使用道具 report

1

主题

580

帖子

2003

积分

vipMem

Rank: 6Rank: 6

积分
2003
6#
poston 2021-1-18 11:54 | authorOnly
ZTO post on2021-1-18 11:39
请研发确认下,目前返回的数据格式是否是这头文件的格式?

结构体是对的,二进制是windows 64位版本?
reply agree Against

使用道具 report

13

主题

49

帖子

205

积分

midMem

Rank: 3Rank: 3

积分
205
7#
 Owner| poston 2021-1-18 13:01 | authorOnly
fanghj90 post on2021-1-18 11:54
结构体是对的,二进制是windows 64位版本?

是的,调用的64位的dll
reply agree Against

使用道具 report

1

主题

580

帖子

2003

积分

vipMem

Rank: 6Rank: 6

积分
2003
8#
poston 2021-1-18 14:14 | authorOnly
ZTO post on2021-1-18 13:01
是的,调用的64位的dll

好的,我们研发在看
reply agree Against

使用道具 report

1

主题

580

帖子

2003

积分

vipMem

Rank: 6Rank: 6

积分
2003
9#
poston 2021-1-18 18:07 | authorOnly
ZTO post on2021-1-18 13:01
是的,调用的64位的dll

您好,能否贴下代码,发送命令了,和打印结果的。我们这边打印看数据是正常的。
reply agree Against

使用道具 report

13

主题

49

帖子

205

积分

midMem

Rank: 3Rank: 3

积分
205
10#
 Owner| poston 2021-1-18 18:20 | authorOnly
fanghj90 post on2021-1-18 18:07
您好,能否贴下代码,发送命令了,和打印结果的。我们这边打印看数据是正常的。
  1. /*获取群组详情*/
  2.     public static void sendCommandConfInfo(){
  3.         BVCSP_Command command = creteCommand(BVCU_METHOD_TYPE.BVCU_METHOD_QUERY,BVCU_SUBMETHOD_TYPE.BVCU_SUBMETHOD_CONF_INFO);
  4.         bytesCopy(command.szTargetID, "CONF_5FFEE650".getBytes());
  5.         command.stMsgContent = new BVCSP_CmdMsgContent();
  6.         int result = VoiceLibrary.INSTANCE.BVCSP_SendCmd(hSession,command);
  7.         System.out.println("获取群组详情: " + result);
  8.     }
copycode
  1. case BVCU_SUBMETHOD_TYPE.BVCU_SUBMETHOD_CONF_INFO:
  2.                         System.out.println("群聊详情回调:"+pParam.iResult+",iPercent:"+pParam.iPercent
  3.                                 + ",iMethod:"+pCommand.iMethod+",iSubMethod: "+pCommand.iSubMethod);
  4.                         BVCU_Conf_Info confInfo = pointer2Structure(pParam.stContent.pData, BVCU_Conf_Info.class);
  5.                         System.out.println("群聊名称:"+new String(confInfo.baseInfo.szName)+",人员数:"+confInfo.iParticipatorCount);
  6.                         for (int i = 0; i < confInfo.pParticipators.length; i++) {
  7.                             BVCU_Conf_Participator_Info participator = confInfo.pParticipators[i];
  8.                             System.out.println("id:"+ new String(participator.szID) +",人员名:"+new String(participator.szUserName)
  9.                                     +",addr:"+new String(participator.szAddr)+",ID:"+participator.iPID);
  10.                         }
copycode
  1. public static <Element extends Structure> Element pointer2Structure(Pointer pParam, Class<Element> res)
  2.     {       Element Param = null;
  3.             try {
  4.                 Param = res.newInstance();
  5.                 Pointer facePointer = Param.getPointer();
  6.                 byte[] byteArray = pParam.getByteArray(0, Param.size());
  7.                 facePointer.write(0,byteArray,0,Param.size());
  8.                 Param.read();
  9.             } catch (InstantiationException | IllegalAccessException e) {
  10.                 e.printStackTrace();
  11.             }

  12.         return Param;
  13.     }
copycode
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-19 01:29 , Processed in 0.068359 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList