MSDK中视频源概念
Completed分配视频流带宽接口assignSourceToPrimaryChannel中的参数可以传入PhysicalSource.LEFT_CAM、PhysicalSource.RIGHT_CAM等值
视频解码类DJICodecManager的构造函数中可以传入DJICodecManager.VideoSource.CAMERA、DJICodecManager.VideoSource.SECONDARY_CAMERA等值。
请问PhysicalSource对象和DJICodecManager.VideoSource对象值的概念和区别是什么呢?
-
当需要通过Payload.setVideoDataReceivedCallback接口解析并显示视频流时,需要使用一下方法构建使用DJICodecManager对象才能正常播放:
- 通过DJICodecManager(Context, SurfaceHolder, int, int, DJICodecManager.VideoSource)构建DJICodecManager对象
- 通过sendDataToDecoder(byte[], int, VideoSource)接口传输获取到的Payload视频数据
其中VideoSource对象都设置为DJICodecManager.VideoSource.SECONDARY_CAMERA,目前我的疑问是这个SECONDARY_CAMERA字段的意义是什么?
目前DJICodecManager.VideoSource枚举对象包含了:CAMERA、FPV、SECONDARY_CAMERA
如果存在多Camera对象、多Payload对象情况下,分别需要设置为什么才能正常获取对应云台的视频流?
Please sign in to leave a comment.
Comments
5 comments