mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 546|reply: 1
打印 prevThread nextThread

使用SDK播放手机摄像头或通过szID播放视频时怎么获取视频的分辨率

[copyURL]

25

主题

58

帖子

231

积分

midMem

Rank: 3Rank: 3

积分
231
jumpTo
owner
poston 2024-5-21 11:22 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
  1. int iDir = this.playerInfo.getiAVStreamDir();
  2.         // 当前设备媒体最大能力
  3.         if (this.playerInfo.getiAVStreamDir() != -1) {
  4.             if (iDir != 0) {
  5.                 if ((iDir & BVCU_MediaDir.BVCU_MEDIADIR_AUDIORECV) == BVCU_MediaDir.BVCU_MEDIADIR_AUDIORECV && (iDir & BVCU_MediaDir.BVCU_MEDIADIR_VIDEORECV) == BVCU_MediaDir.BVCU_MEDIADIR_VIDEORECV) {
  6.                     iDir = 10;
  7.                 }
  8.             }
  9.         }
  10.         BVCU_DialogInfo dialogInfo = new BVCU_DialogInfo();
  11.         dialogInfo.stParam = new BVCU_DialogParam();
  12.         dialogInfo.stParam.iTargetCount = 1;
  13.         dialogInfo.stParam.pTarget = new BVCU_DialogTarget[1];
  14.         dialogInfo.stParam.pTarget[0] = new BVCU_DialogTarget();
  15.         dialogInfo.stParam.pTarget[0].iIndexMajor = this.playerInfo.getTargetIndex();
  16.         dialogInfo.stParam.pTarget[0].iIndexMinor = -1;
  17.         dialogInfo.stParam.pTarget[0].szID = this.playerInfo.getPUID();
  18.         dialogInfo.stParam.iAVStreamDir = iDir;
  19.         dialogInfo.stControlParam = new BVCU_DialogControlParam();
  20.         dialogInfo.stControlParam.stRender = new BVCU_DialogControlParam_Render();
  21.         //配置streamPlayerSurfaceHolder
  22.         dialogInfo.stControlParam.stRender.hWnd = streamPlayerSurfaceHolder.getSurface();
  23.         BVCU_Display_Param display_param = new BVCU_Display_Param();
  24.         display_param.fMulZoom = 1;
  25.         display_param.iAngle = 270;
  26.         dialogInfo.stControlParam.stRender.stDisplayParam = display_param;
  27.         int videoToken = BVCU.getSDK().openDialog(dialogInfo);
  28.         this.playerInfo.setVideoToken(videoToken);

  29.         Log.d(TAG, "surfaceCreated");
  30.         //                    if (videoToken1 != 0 && videoToken1 != -1) {
  31.         BVCU.getSDK().controlDialog(videoToken, dialogInfo.stControlParam);
  32.         Log.i(TAG, "SurfaceView1 width=" + streamPlayerSurfaceView.getWidth() + ", height=" + streamPlayerSurfaceView.getHeight());
  33.         streamPlayerLoading.setVisibility(View.GONE);
copycode


reply

使用道具 report

3

主题

356

帖子

1881

积分

vipMem

Rank: 6Rank: 6

积分
1881
sofa
poston 2024-5-26 16:22 | authorOnly
二次对接开发文档
基于webRTC构建的新一代视频融合可视指挥调度平台smarteye server-E WEB SDK restful接口文档,https://smarteye.besovideo.com/doc/
demo:https://github.com/besovideo/ewebdemo
npm包:https://www.npmjs.com/package/@besovideo/webrtc-player
接口文档: https://smarteye.besovideo.com/doc/bvcspapi/index.html
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-12-22 09:12 , Processed in 0.053713 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList