In version 5.8, the video streaming codec has been reconstructed so that the FPVWidget, which still uses videoDecoder for rendering, will be centered in the center of the screen.
[How to realize full-screen display]
Because version 5.8 of VideoDecoder has changed the display effect to width-height adaptive centered display, to achieve full-screen display you need to replace VideoDecoder with CameraStreamManager.putCameraStreamSurface().
The putCameraStreamSurface interface can be passed into the scaleType parameter to control the display effect.
-
FIX_XY -- Stretch full screen display
-
CENTER_CROP -- Adaptive full-screen display(It may experience loss of part of the picture during adaptation)
-
CENTER_INSIDE -- Width-height adaptive centered displa
Comments
0 comments
Please sign in to leave a comment.