mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
Owner: meige
打印 prevThread nextThread

适配BVCSP.h接口出现问题

[copyURL]

11

主题

157

帖子

533

积分

advMem

Rank: 4

积分
533
91#
 Owner| poston 2019-6-12 16:36 | authorOnly
yumengtao post on2019-6-12 16:00
您尝试一下起一个线程上传文件数据,不要阻塞onEvent回调。

上传文件现在可以了,问下 dialogParam.stFileTarget.pPathFileName="/temp/Audio/20190611/PU_20190611_172552.aac";
temp不能修改吗?如修改成PU_8953.
reply agree Against

使用道具 report

0

主题

20

帖子

80

积分

member

Rank: 2

积分
80
92#
poston 2019-6-12 16:40 | authorOnly
您能再描述一下您的需求吗?
reply agree Against

使用道具 report

11

主题

157

帖子

533

积分

advMem

Rank: 4

积分
533
93#
 Owner| poston 2019-6-12 16:41 | authorOnly
meige post on2019-6-12 16:36
上传文件现在可以了,问下 dialogParam.stFileTarget.pPathFileName="/temp/Audio/20190611/PU_20190611_ ...

问下,怎样获取文件上传的进度百分比。
reply agree Against

使用道具 report

11

主题

157

帖子

533

积分

advMem

Rank: 4

积分
533
94#
 Owner| poston 2019-6-12 16:46 | authorOnly
实时图传时,向音视频通道BVCSP_Dialog_Write写数据是返回值为-65521,向里面写的是H264数据。
reply agree Against

使用道具 report

11

主题

157

帖子

533

积分

advMem

Rank: 4

积分
533
95#
 Owner| poston 2019-6-12 17:12 | authorOnly
yumengtao post on2019-6-12 16:40
您能再描述一下您的需求吗?

目录是temp,cu端文件检索查不到的,没达到我们的需求,现在修改成PU_***,打开会话会失败。
reply agree Against

使用道具 report

11

主题

157

帖子

533

积分

advMem

Rank: 4

积分
533
96#
 Owner| poston 2019-6-12 17:23 | authorOnly
yumengtao post on2019-6-12 15:43
strcpy(dialogParam.stTarget.szID, "NRU_");//NRU_ 这个地方 "NRU_" 即 NRU_ 有对应 其他设备吗?还是随意 ...

dialogParam.stTarget.szID,不清楚赋什么值。
reply agree Against

使用道具 report

11

主题

157

帖子

533

积分

advMem

Rank: 4

积分
533
97#
 Owner| poston 2019-6-12 17:50 | authorOnly
meige post on2019-6-12 16:46
实时图传时,向音视频通道BVCSP_Dialog_Write写数据是返回值为-65521,向里面写的是H264数据。

BVCU_Result OnDialogCommand(BVCSP_HDialog hDialog, int iEventCode, BVCSP_DialogParam* pParam)

{
         printf(" OnDialogCommand success iEventCode =%d\n",iEventCode);
         printf(" OnDialogCommand success IndexMajor =%d\n",pParam->stTarget.iIndexMajor);
         bvhDialog=hDialog;
         LOGV("bvhDialog=%d",hDialog);
         pParam->OnEvent=OnEventDialog;
         printf(" OnDialogCommand success end\n");
     return BVCU_RESULT_S_OK;

}
void OnEventDialog(BVCSP_HDialog hDialog, int iEventCode, BVCSP_Event_DialogCmd* pParam){
         LOGD(" OnEventDialog success iEventCode =%d\n",iEventCode);
         LOGD(" OnEventDialog success iResult=%d\n",pParam->iResult);
         LOGD(" OnEventDialog success iIndexMajor =%d\n",pParam->pDialogParam->stTarget.iIndexMajor);
         if (iEventCode == BVCSP_EVENT_SESSION_OPEN && pParam->iResult==BVCU_RESULT_S_OK){
                 if(pParam->pDialogParam->stTarget.iIndexMajor==0){
                         pthread_create(&thr[0], NULL, Dialog_Write, NULL);//在这里开始向通道里写入数据
                 }
         }
}
帮忙分析下什么原因写入数据失败。
reply agree Against

使用道具 report

0

主题

20

帖子

80

积分

member

Rank: 2

积分
80
98#
poston 2019-6-12 21:00 | authorOnly
meige post on2019-6-12 17:50
BVCU_Result OnDialogCommand(BVCSP_HDialog hDialog, int iEventCode, BVCSP_DialogParam* pParam)

  ...

打开音视频通道时需要在pParam中填写一些有关于视频的参数,请问您有没有填写。

如图所示

本帖子中包含更多资源

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

x
reply agree Against

使用道具 report

11

主题

157

帖子

533

积分

advMem

Rank: 4

积分
533
99#
 Owner| poston 2019-6-13 17:48 | authorOnly
android.mk引用libbvcsp.so,运行报如下错误:
libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program requires version 2.6.0 of the Protocol Buffer runtime library, but the installed version is 2.4.1.  Please update your library.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "out/target/product/slb789/obj_arm/STATIC_LIBRARIES/libhwui_static_intermediates/proto/frameworks/base/libs/hwui/protos/hwui.pb.cpp".)
terminating with uncaught exception of type google::protobuf::FatalException: This program requires version 2.6.0 of the Protocol Buffer runtime library, but the installed version is 2.4.1.  Please update your library.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "out/target/product/slb789/obj_arm/STATIC_LIBRARIES/libhwui_static_intermediates/proto/frameworks/base/libs/hwui/protos/hwui.pb.cpp".)
Aborted
reply agree Against

使用道具 report

0

主题

20

帖子

80

积分

member

Rank: 2

积分
80
100#
poston 2019-6-13 19:50 | authorOnly
meige post on2019-6-13 17:48
android.mk引用libbvcsp.so,运行报如下错误:
libprotobuf FATAL google/protobuf/stubs/common.cc:61] Th ...

之前您的程序不是能运行吗,怎么现在出现这个编译错误?请问您有什么改动?
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-4-28 16:50 , Processed in 0.065426 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList