How to make a screenshot of the camera?
已完成I am using the FPVWidget view to see the camera. I want to know how to take a screenshot of the camera without touching the UXSDK code.
-
Since FPVWidget uses SurfaceView to display the camera image, it is quite difficult to directly capture a screenshot from SurfaceView. You can try to directly obtain the video stream data and then save the video stream data as a photo file. MSDK V5 provides an interface for obtaining YUV data, namely addYuvDataListener. I highly recommend using version 5.8, as this version can display the image using TextureView, and TextureView provides the getBitmap interface. However, this method requires modifying the View type used internally by FPVWidget.
请先登录再写评论。
评论
3 条评论