class FPVWidget extends TextureViewWidget implements SurfaceTextureListener
The video feed from camera.
To allow user to interact with the video feed, use this widget in conjunction with
void setVideoSource(VideoSource videoSource)
User can set video source to these three options: AUTO, PRIMARY, SECONDARY. By default, the video source is set to "AUTO" if user does not specify it.
|VideoSource videoSource||An enum value of |
Retrieves the type of the video feed selection.
|VideoSource||An enum value of |
void setSourceCameraNameVisibility(boolean isVisible)
Shows or Hides the video feed source's camera name on the video feed.
|boolean isVisible||A boolean value that determines whether to show the source camera name.|
void setSourceCameraSideVisibility(boolean isVisible)
Flag to show/hide the side (starboard / port) of the camera on the video feed. Only works on aircrafts that support multiple gimbals.
|boolean isVisible||A boolean value that determines whether to show the source camera side.|
Options for the user to select the video feed to associate with the FPVWidget. Please be aware that the video feed can only associate with one FPVWidget object. If several FPVWidget objects are associated with the same VideoSource, only the last one can get the live video.
|AUTO||Auto switch from PRIMARY video feed to SECONDARY video feed to show the DJICamera live video when connecting with M600, M600Pro, A3, or N3 product. It is PRIMARY video feed by default when connecting with other products.|
|PRIMARY||The first video feed of getVideoFeeds array list in VideoFeeder singleton object.|
|SECONDARY||The second video feed of getVideoFeeds array list in VideoFeeder singleton object.|