The primary video feed. The possible physical sources for the primary video feed include: - MAIN_CAM - LB - HDMI - LEFT_CAM - RIGHT_CAM For M210 and M210 RTK, the physical sources are controlled by the bandwidth allocation between the port (left) and starboard (right) main cameras (setBandwidthAllocationForLeftCamera): - When bandwidth is 100% on the left camera, the primary source is LEFT_CAM and the secondary source is FPV_CAM. - When bandwidth is 0% on the left camera, the primary source is RIGHT_CAM and the secondary source is FPV_CAM. - When bandwidth is neither 0% nor 100% on the left camera, the primary source is LEFT_CAM and the secondary source is RIGHT_CAM. For Matrice 300 RTK, the physical source can be: LEFT_CAM, RIGHT_CAM, TOP_CAM and FPV_CAM. Please note that video playback stream will be received as primary or secondary video feed, if video playback starts on Zenmuse H20 Series. Video feed channel could be assigned by assignSourceToPrimaryChannel in OcuSyncLink.
The secondary video feed. The possible physical sources for the secondary video feed include: - FPV_CAM - EXT - AV - RIGHT_CAM. For M210 and M210 RTK, the physical sources are controlled by the bandwidth allocation between the port (left) and starboard (right) main cameras (setBandwidthAllocationForLeftCamera): - When bandwidth is 100% on the left camera, the primary source is LEFT_CAM and the secondary source is FPV_CAM. - When bandwidth is 0% on the left camera, the primary source is RIGHT_CAM and the secondary source is FPV_CAM. - When bandwidth is neither 0% nor 100% on the left camera, the primary source is LEFT_CAM and the secondary source is RIGHT_CAM. For Matrice 300 RTK, the physical source can be: LEFT_CAM, RIGHT_CAM, TOP_CAM and FPV_CAM. Please note that video playback stream will be received as primary or secondary video feed, if video playback starts on Zenmuse H20 Series. Video feed channel could be assigned by assignSourceToPrimaryChannel in OcuSyncLink.
Returns a new VideoFeed instance to receive the transcoded video feed from the main camera. The original video feed from the main camera is transcoded (using MediaCodec) to generate H.264 video feed for more general usages. The encoder will use the calibrated decoded feed when lens distortion calibration is needed. Setting the callback of VideoFeed to null can stop the transcoding.
Sets the destination data rate for the transcoded video feed. The valid range is [0.3, 20] in Mbps. CAUTION: Changing the data rate during transcoding may re-start the internal encoder. The transcoded video feed will get interrupted for a few seconds.
Input Parameters:
float rate
The destination data rate for the transcoded video feed.
Determines if the original video feed requires lens distortion calibration. When calibration is needed, it is not recommended to use the original video feed with the decoding sample (https://github.com/DJI-Mobile-SDK-Tutorials/Android-VideoStreamDecodingSample). Use the transcoded video feed instead and also the module: 'library-anti-distortion' should be included.
Determines if the original video feed requires SDK to fetch key frame. When fetch key frame is needed, it is not recommended to use the original video feed with the decoding sample (https://github.com/DJI-Mobile-SDK-Tutorials/Android-VideoStreamDecodingSample). Use the transcoded video feed instead.