Set the video source and enable it. The channel will start receiving video data after you call this method. You can calladdStreamDataListener to recive the video data. After receiving the video data, you can decode it and render it. You can use DJI decoderIVideoDecoderto decode the video stream, it supports YUV output mode and SURFACE output mode.
Disable the video channel. After disabling the video channel, theandroidx.annotation.NonNullwill stop receiving video data. After disabling the channel successfully, The channel state will change toCLOSE.
The type of video channel. Every video channel has an unique video channel type. The main video channel has the highest priority. When the transmitting bandwidth is narrow, we will ensure the main video channel is working properly first.
Supported since MSDK 5.0.0
Enum Members:
PRIMARY_STREAM_CHANNEL
Primary video channel, highest priority, we will make sure this channel is working properly when the transmitting bandwidth is narrow.
SECONDARY_STREAM_CHANNEL
Deputy video channel, lower priority than the primary video channel.
EXTENDED_STREAM_CHANNEL
Extended video channel, lowest priority. It will lose data packet when the transmitting bandwidth is narrow.