DJI Mobile SDK Documentation

      class CameraLiveView

      class CameraLiveView extends RelativeLayout
      implements VideoSurfaceView.DJIGLSurfaceViewListener, DJIParamAccessListener, RecvDataCallback
      Package:dji.sdk.camera.view
      Inherits From:RelativeLayout implements VideoSurfaceView.DJIGLSurfaceViewListener, DJIParamAccessListener, RecvDataCallback
      Description:

      CameraLiveView provides a simplified main camera live view. To show the main camera live view in your activity, include it in XML file directly. No need for any configuration.

      Class Members:
      On Render Created Prepared
      method
      method onRenderCreatedPrepared
      @Override
      void onRenderCreatedPrepared()
      Package:dji.sdk.camera.view
      Description:

      Called before rendering starts

      On Render Created
      method
      method onRenderCreated
      @Override
      DJIVideoDecoderController onRenderCreated(SurfaceInterface surface)
      Package:dji.sdk.camera.view
      Description:

      Called when rendering surface is created

      Input Parameters:
      SurfaceInterface surfaceSurfaceInterface object.
      Return:
      DJIVideoDecoderControllerAn instance of DJIVideoDecoderController.
      On Render Destroy
      method
      method onRenderDestroy
      @Override
      void onRenderDestroy()
      Package:dji.sdk.camera.view
      Description:

      Called when rendering surface is to be destroyed

      Reset Video Surface
      method
      method resetVideoSurface
      @Override
      void resetVideoSurface(int videoWidth, int videoHeight)
      Package:dji.sdk.camera.view
      Description:

      Reset the surface dimension of the video.

      Input Parameters:
      int videoWidthAn int value of video width.
      int videoHeightAn int value of video height.