class FPVWidget extends TextureViewWidget implements SurfaceTextureListener |
Package: | dji.ux.widget |
Inherits From: | TextureViewWidget implements SurfaceTextureListener |
The video feed from camera.
To allow user to interact with the video feed, use this widget in conjunction with FPVOverlayWidget
void setVideoSource(VideoSource videoSource) |
Package: | dji.ux.widget |
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 VideoSource . |
VideoSource getVideoSource() |
Package: | dji.ux.widget |
Retrieves the type of the video feed selection.
VideoSource | An enum value of VideoSource . |
void setSourceCameraNameVisibility(boolean isVisible) |
Package: | dji.ux.widget |
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) |
Package: | dji.ux.widget |
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. |
enum VideoSource |
Package: | dji.ux.widget |
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.