mobile CCTV,mobile surveillance,police body worn cameras
标题:
使用SDK播放手机摄像头或通过szID播放视频时怎么获取视频的分辨率
[打印本页]
author:
huixing
time:
2024-5-21 11:22
标题:
使用SDK播放手机摄像头或通过szID播放视频时怎么获取视频的分辨率
int iDir = this.playerInfo.getiAVStreamDir();
// 当前设备媒体最大能力
if (this.playerInfo.getiAVStreamDir() != -1) {
if (iDir != 0) {
if ((iDir & BVCU_MediaDir.BVCU_MEDIADIR_AUDIORECV) == BVCU_MediaDir.BVCU_MEDIADIR_AUDIORECV && (iDir & BVCU_MediaDir.BVCU_MEDIADIR_VIDEORECV) == BVCU_MediaDir.BVCU_MEDIADIR_VIDEORECV) {
iDir = 10;
}
}
}
BVCU_DialogInfo dialogInfo = new BVCU_DialogInfo();
dialogInfo.stParam = new BVCU_DialogParam();
dialogInfo.stParam.iTargetCount = 1;
dialogInfo.stParam.pTarget = new BVCU_DialogTarget[1];
dialogInfo.stParam.pTarget[0] = new BVCU_DialogTarget();
dialogInfo.stParam.pTarget[0].iIndexMajor = this.playerInfo.getTargetIndex();
dialogInfo.stParam.pTarget[0].iIndexMinor = -1;
dialogInfo.stParam.pTarget[0].szID = this.playerInfo.getPUID();
dialogInfo.stParam.iAVStreamDir = iDir;
dialogInfo.stControlParam = new BVCU_DialogControlParam();
dialogInfo.stControlParam.stRender = new BVCU_DialogControlParam_Render();
//配置streamPlayerSurfaceHolder
dialogInfo.stControlParam.stRender.hWnd = streamPlayerSurfaceHolder.getSurface();
BVCU_Display_Param display_param = new BVCU_Display_Param();
display_param.fMulZoom = 1;
display_param.iAngle = 270;
dialogInfo.stControlParam.stRender.stDisplayParam = display_param;
int videoToken = BVCU.getSDK().openDialog(dialogInfo);
this.playerInfo.setVideoToken(videoToken);
Log.d(TAG, "surfaceCreated");
// if (videoToken1 != 0 && videoToken1 != -1) {
BVCU.getSDK().controlDialog(videoToken, dialogInfo.stControlParam);
Log.i(TAG, "SurfaceView1 width=" + streamPlayerSurfaceView.getWidth() + ", height=" + streamPlayerSurfaceView.getHeight());
streamPlayerLoading.setVisibility(View.GONE);
copycode
author:
coldflame
time:
2024-5-26 16:22
二次对接开发文档
基于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
欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/)
Powered by Discuz! X3.2