DJI Mobile SDK Documentation

      class IVideoStreamManager

      interface IVideoStreamManager
      Package:dji.v5.manager.interfaces
      Description:

      Class that used to manage the parameters and ouput of the video stream. You can learn how to use it below:

    • 1. CallgetAvailableStreamSourcesto get an available video stream source
    • 2. CallgetAvailableVideoChannelsto get an available video stream channel.
    • 3. CallgetAvailableVideoChannels'sstartChannelto set theStreamSourcefrom step 1 to bind the video stream source with a channel and enable the channel.
    • 4. If you want to write your own decoder, you can addaddStreamDataListenerto receive the video stream data.
    • 5. If you don't want to write your own decoder, you can use DJI decoderIVideoDecoderto decode.


    • Supported since MSDK 5.0.0

      Class Members:
      method getAvailableStreamSources
      @Nullable
      List<StreamSource> getAvailableStreamSources()
      Package:dji.v5.manager.interfaces
      Description:

      Get a list of availableStreamSource. After getting all video stream sources, you can callgetAvailableVideoChannelsto get available video channel and add the video source in.

      Supported since MSDK 5.0.0

      Return:
      List<StreamSource>Return a list of availableIVideoStreamManager_StreamSource`.
      method addStreamSourcesListener
      void addStreamSourcesListener(StreamSourceListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      Add a video stream source listener. This listener can monitor and obtain the new video stream sources.

      Supported since MSDK 5.0.0

      Input Parameters:
      StreamSourceListener listenerVideo stream source listener
      method removeStreamSourcesListener
      void removeStreamSourcesListener(StreamSourceListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      Remove a video stream source listener.

      Supported since MSDK 5.0.0

      Input Parameters:
      StreamSourceListener listenerVideo stream source listener
      method clearAllStreamSourcesListeners
      void clearAllStreamSourcesListeners()
      Package:dji.v5.manager.interfaces
      Description:

      Clear all video stream source listeners.

      Supported since MSDK 5.0.0

      method getAvailableVideoChannels
      @Nullable
      List<IVideoChannel> getAvailableVideoChannels()
      Package:dji.v5.manager.interfaces
      Description:

      Get all available video channels. After getting available video channels, you can callstartChannelto bindStreamSourcewith and enable video stream. Also you can callgetAvailableVideoChannelto get the type of video channel and set the video channels.
      Note:
      The first video channel is the main channelPRIMARY_STREAM_CHANNEL.
      The second video channel(If there is one) is the deputy channelSECONDARY_STREAM_CHANNEL.
      The third video channel(If there is one) is the extended channelEXTENDED_STREAM_CHANNEL.

      Supported since MSDK 5.0.0

      Return:
      List<IVideoChannel>Return a list of video channels.
      method getAvailableVideoChannel
      @Nullable
      IVideoChannel getAvailableVideoChannel(@NonNull VideoChannelType type)
      Package:dji.v5.manager.interfaces
      Description:

      Get the video channel type.

      Supported since MSDK 5.0.0

      Input Parameters:
      @NonNull VideoChannelType typeVideo channel type.
      Return:
      IVideoChannelReturn the video channel type.
      method
      method destroy
      void destroy()
      Package:dji.v5.manager.interfaces
      Description:

      Release VideoStreamManager's resources.

      Supported since MSDK 5.0.0