Sets the percentage downlink video bandwidth dedicated to the video feed from one of the LB input ports. The remaining percentage is dedicated to the video feed from EXT input port. Setting 100% dedicates all the video bandwidth to LB.
Input Parameters:
@FloatRange(from = 0.0f, to = 1.0f) float percent
Percentage downlink bandwidth for video feed from LB port.
final CompletionCallback callback
The execution callback with the execution result returned.
Gets the percentage downlink video bandwidth dedicated to the video feed from one of the LB input ports. The remaining percentage is dedicated to the video feed from EXT input port.
Input Parameters:
final CompletionCallbackWith<Float> callback
The execution callback with the value(s) returned.
voidsetBandwidthAllocationForMainCamera(@FloatRange(from = 0.0f, to = 1.0f)float percent, @Nullable final CommonCallbacks.CompletionCallback callback)
Package:
dji.sdk.airlink
Description:
Sets the percentage downlink video bandwidth dedicated to the main camera or main cameras (for M210 and M210 RTK). The remaining percentage is dedicated to the FPV camera. For M210 and M210 RTK, the bandwidth for main cameras can be further divided by calling setBandwidthAllocationForLeftCamera. It is only supported by Inspire 2 and M200 series.
voidgetBandwidthAllocationForMainCamera( @NonNull final CommonCallbacks.CompletionCallbackWith<Float> callback)
Package:
dji.sdk.airlink
Description:
Gets the percentage downlink video bandwidth dedicated to the main camera or main cameras (for M210 and M210 RTK). The remaining percentage is dedicated to the FPV camera. It is only supported by Inspire 2 and M200 series.
Input Parameters:
@NonNull final CommonCallbacks.CompletionCallbackWith<Float> callback
The execution callback with the value(s) returned.
voidsetBandwidthAllocationForLeftCamera(@FloatRange(from = 0.0f, to = 1.0f)float percent, @Nullable final CommonCallbacks.CompletionCallback callback)
Package:
dji.sdk.airlink
Description:
Sets the percentage of the main cameras' bandwidth dedicated to the left camera. The remaining percentage is dedicated to the right camera. The main cameras' bandwidth is determined by setBandwidthAllocationForMainCamera. This setting will influence the physical sources of video feeds (getPrimaryVideoFeed and getSecondaryVideoFeed):
- When bandwidth is 100% on the left camera, the primary source is LEFT_CAM and the secondary source is FPV_CAM. - When bandwidth 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. It is only supported by M210 and M210 RTK.
voidgetBandwidthAllocationForLeftCamera(@NonNull final CommonCallbacks.CompletionCallbackWith<Float> callback)
Package:
dji.sdk.airlink
Description:
When a product has multiple main cameras, this method gets the percentage bandwidth allocation dedicated to the port (left) camera. The remaining percentage is dedicated to the starboard (right) camera. The total bandwidth allocated to both main cameras (vs the FPV camera) is determined by setBandwidthAllocationForMainCamera. This setting will influence the physical sources of video feeds (getPrimaryVideoFeed and getSecondaryVideoFeed): - 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. It is only supported by M210 and M210 RTK.
Input Parameters:
@NonNull final CommonCallbacks.CompletionCallbackWith<Float> callback
The execution callback with the value(s) returned.
true if Lightbridge 2 device supports dual encode mode. Dual encode mode allows the Lightbridge module to encode and transmit both it's AV and HDMI inputs simultaneously.
Sets Lightbridge 2 encode mode. It is only available when isDualEncodeModeSupported returns true. For Lightbridge 2 modules that don't support dual encode mode, the encode mode is always single.
Input Parameters:
boolean enabled
The encode mode to set.
final CompletionCallback callback
The execution callback with the execution result returned.
Gets Lightbridge 2 encode mode. It is only available when isDualEncodeModeSupported returns true. For Lightbridge 2 modules that don't support dual encode mode, the encode mode is always single.
Input Parameters:
final CompletionCallbackWith<Boolean> callback
The execution callback with the value(s) returned.
Gets the computational power and bandwidth balance between AV and HDMI inputs on the Lightbridge 2 module when dual encode mode is enabled. It is only available when isDualEncodeModeSupported returns true. When percent is 0.0, all resources are allocated for video data from AV port. When percent is 1.0, all resources are allocated for video data from HDMI port.
Input Parameters:
final CompletionCallbackWith<Float> callback
The execution callback with the value(s) returned.
Sets the computational power and bandwidth balance between AV and HDMI inputs on the Lightbridge 2 module when dual encode mode is enabled. Balance is in percent [0.0, 1.0]. It is only available when isDualEncodeModeSupported returns true. When percent is 0.0, all resources are allocated for video data from AV port. When percent is 1.0, all resources are allocated for video data from HDMI port.
Input Parameters:
float percent
Percentage resources dedicated to HDMI encoding and transmission.
final CompletionCallback callback
The execution callback with the execution result returned.
Gets the frequency bands supported by the product in the current area. It is only supported by Inspire 2 and Phantom 4 Pro. For the other products with LB air link, the frequency band is always 2.4 GHz.
Sets the LB air link frequency band. It is only supported by Inspire 2 and Phantom 4 Pro. For the other products
with LB air link, the frequency band is always 2.4 GHz.
Gets the LB air link frequency band. It is only supported by Inspire 2 and Phantom 4 Pro. For the other products with LB air link, the frequency band is always 2.4 GHz.