PSDK 相机管理的 “切换相机视频源” 是否会影响 “获取相机 H.264 码流的功能” ?
CompletedPSDK 相机管理模块有个的 “切换相机视频源” 即切换广角、变焦、红外镜头的接口,T_DjiReturnCode DjiCameraManager_SetStreamSource(E_DjiMountPosition position,
E_DjiCameraManagerStreamSource streamSource);
是否会影响 正在获取的相机 H.264 码流,因为启动 获取相机 H.264 码流的接口 有个设置source的参数,选择的source (广角、变焦、红外镜头...):
T_DjiReturnCode DjiLiveview_StartH264Stream(E_DjiLiveViewCameraPosition position, E_DjiLiveViewCameraSource source, DjiLiveview_H264Callback callback);
-
//当前线程播放相机的DJI_LIVEVIEW_CAMERA_SOURCE_H20_WIDE码流:
DjiLiveview_StartH264Stream(DJI_LIVEVIEW_CAMERA_POSITION_NO_1, DJI_LIVEVIEW_CAMERA_SOURCE_H20_WIDE, convertH264Callback);
// 在另外一个线程中使用相机管理模块接口,设置相机源为DJI_CAMERA_MANAGER_SOURCE_ZOOM_CAM
DjiCameraManager_SetStreamSource(DJI_MOUNT_POSITION_PAYLOAD_PORT_NO1,DJI_CAMERA_MANAGER_SOURCE_ZOOM_CAM);
//那么当前线程最后停止获取码流的入参还是DJI_LIVEVIEW_CAMERA_SOURCE_H20_WIDE?:
DjiLiveview_StopH264Stream(DJI_LIVEVIEW_CAMERA_POSITION_NO_1, DJI_LIVEVIEW_CAMERA_SOURCE_H20_WIDE);
Please sign in to leave a comment.
Comments
7 comments