putCameraStreamSurface compatibility
Home / Events /
223 2 4-3 04:03
Uploading and Loding Picture ...(0/1)
o(^-^)o
djiuser_KLosE1u98yWy
lvl.1
Austria
Offline

Hi everyone,

I am currently working with

CameraStreamManager.getInstance().putCameraStreamSurface(@NonNull ComponentIndexType cameraIndex, @NonNull Surface surface, int surfaceWidth, int surfaceHeight, @NonNull ICameraStreamManager.ScaleType scaleType)

in the documentation Mobile-SDK-Android-V5-dev-sdk-main/Docs/Android_API/en/Components/IMediaDataCenter/ICameraStreamManager.html#icamerastreammanager_putcamerastreamsurface_inline
it says with the Surface parameter:

Set the surface that needs to display the video  stream. Supports SurfaceView, TextureView and MediaCodeC Surface, does  not support GLSurfaceView surface and any surface bound to OpenGL.

Now I am wondering about that support for TextureView. I currently have (from an existing project) a TextureView which I would like to use with putCameraStreamSurface, but of course TextureView does not have Surface in its ancestry. Nor does the SurfaceTexture from TextureView.getSurfaceTexture(). Do I somehow need to get the Canvas and create a new surface or how is this compatibility achived?



4-3 04:03
Use props
djiuser_KLosE1u98yWy
lvl.1
Austria
Offline

Oh dear, I just noticed that I posted this to events instead of Developer. It seems, I can't move, nor delete my post.
4-3 04:06
Use props
DAFlys
Captain
Flight distance : 312090263 ft
  • >>>
United Kingdom
Online

Hi! You might be better off posting your question in the 'Developer' section of this forum.  That is way more active.    -   From https://developer.dji.com you can click Forum to access it or a direct link to it is - https://forum.dji.com/forum-139-1.html?from=developer
4-4 05:32
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules