class ILiveStreamManager
interface ILiveStreamManager
Package: dji.v5.manager.interfaces
Description:
Class that used to manage the live steam. It is used to configure the live stream settings, start and stop the live streaming. Supported since MSDK 5.0.0
Class Members:
method isStreaming
Package: dji.v5.manager.interfaces
Description:
Get whether the aircraft is live streaming now. Supported since MSDK 5.0.0
Return:
boolean true means it is live streaming now.
method setLiveStreamSettings
void setLiveStreamSettings (LiveStreamSettings settings)
Package: dji.v5.manager.interfaces
Description:
Set live stream settings. Supported since MSDK 5.0.0
method getLiveStreamSettings
LiveStreamSettings getLiveStreamSettings ()
Package: dji.v5.manager.interfaces
Description:
Get the live stream settings. Supported since MSDK 5.0.0
Return:
method setVideoChannelType
@Deprecated void setVideoChannelType (VideoChannelType videoChannelType)
Package: dji.v5.manager.interfaces
Description:
Set the video channel for live streaming. Note: This interface is deprecated starting from MSDK 5.8.0. Please call setCameraIndex to set the camera index to live stream. Supported since MSDK 5.0.0
method getVideoChannelType
@Deprecated VideoChannelType getVideoChannelType ()
Package: dji.v5.manager.interfaces
Description:
Get the type of video channel for live streaming. Note: This interface is deprecated starting from MSDK 5.8.0. Please call getCameraIndex to get the camera index. Supported since MSDK 5.0.0
Return:
method setCameraIndex
void setCameraIndex (@NonNull ComponentIndexType cameraIndex)
Package: dji.v5.manager.interfaces
Description:
Set the camera index that needs to live stream. Supported since MSDK 5.8.0
method getCameraIndex
ComponentIndexType getCameraIndex ()
Package: dji.v5.manager.interfaces
Description:
Gets the set camera index. Supported since MSDK 5.8.0
Return:
method startStream
void startStream (CommonCallbacks.CompletionCallback callback)
Package: dji.v5.manager.interfaces
Description:
Start live streaming. Supported since MSDK 5.0.0
method stopStream
void stopStream (CommonCallbacks.CompletionCallback callback)
Package: dji.v5.manager.interfaces
Description:
Stop live streaming. Supported since MSDK 5.0.0
method setLiveStreamQuality
void setLiveStreamQuality (StreamQuality quality)
Package: dji.v5.manager.interfaces
Description:
Set the type of live stream video quality. Supported since MSDK 5.0.0
method getLiveStreamQuality
StreamQuality getLiveStreamQuality ()
Package: dji.v5.manager.interfaces
Description:
Get the type of live stream video quality. Supported since MSDK 5.0.0
Return:
method setLiveVideoBitrateMode
void setLiveVideoBitrateMode (LiveVideoBitrateMode bitrateMode)
Package: dji.v5.manager.interfaces
Description:
Set the mode of live stream video bit rate. Under AUTO mode, MSDK will set the live stream video bit rate automatically. Under MANUAL mode, you can callsetLiveVideoBitrate to set the live stream video bit rate. Supported since MSDK 5.0.0
method getLiveVideoBitrateMode
LiveVideoBitrateMode getLiveVideoBitrateMode ()
Package: dji.v5.manager.interfaces
Description:
Get the mode of live stream video bitrate. Supported since MSDK 5.0.0
Return:
method setLiveVideoBitrate
void setLiveVideoBitrate (int bitrate)
Package: dji.v5.manager.interfaces
Description:
Set the live stream bitrate, unit: bit/s. Supported since MSDK 5.0.0
int bitrate Live stream video bitrate.
method getLiveVideoBitrate
int getLiveVideoBitrate ()
Package: dji.v5.manager.interfaces
Description:
Get the live stream video bitrate. Supported since MSDK 5.0.0
Return:
int Return the live stream video bitrate.
method setLiveStreamScaleType
void setLiveStreamScaleType (ICameraStreamManager.ScaleType scaleType)
Package: dji.v5.manager.interfaces
Description:
Set the live stream video scale type. Supported since MSDK 5.10.0
method getLiveStreamScaleType
ICameraStreamManager.ScaleType getLiveStreamScaleType ()
Package: dji.v5.manager.interfaces
Description:
Get the live stream video scale type. Supported since MSDK 5.10.0
Return:
method addLiveStreamStatusListener
void addLiveStreamStatusListener (LiveStreamStatusListener listener)
Package: dji.v5.manager.interfaces
Description:
Add the listener of live stream status. Supported since MSDK 5.0.0
method removeLiveStreamStatusListener
void removeLiveStreamStatusListener (LiveStreamStatusListener listener)
Package: dji.v5.manager.interfaces
Description:
Remove the listener of live stream status. Supported since MSDK 5.0.0
class LiveStreamSettings ↗ 描述 It is used to build and get the live stream settings.
MSDK 5.0.0开始支持
enum LiveStreamType
Package: dji.v5.manager.datacenter.livestream
Description:
The type of live stream protocol. Supported since MSDK 5.0.0
Enum Members:
RTMPRTMP type. RTSPRTSP type. GB28181GB28181 type. AGORAAgora type.
Class Members:
class RtspSettings ↗ 描述 It is used to build and get the RTSP live stream settings.
MSDK 5.0.0开始支持
class RtmpSettings ↗ 描述 It is used to build and get the RTMP live stream settings.
MSDK 5.0.0开始支持
class GB28181Settings ↗ 描述 It is used to build and get the GB28181 live stream settings.
MSDK 5.0.0开始支持
class AgoraSettings ↗ 描述 It is used to build and get the Agora live stream settings.
MSDK 5.0.0开始支持
enum StreamQuality
Package: dji.v5.manager.datacenter.livestream
Description:
The type of live video stream quality. Supported since MSDK 5.0.0
Enum Members:
SDStandard definition, resolution is 960*540, FPS is 30, bit rate is about 74KByte/s. HDHigh definition, resolution is 1280*720, FPS is 30, bit rate is about 168KByte/s. FULL_HDFull high definition, resolution is 1920*1080, FPS is 30, bit rate is about 380KByte/s.
Class Members:
enum LiveVideoBitrateMode
enum LiveVideoBitrateMode
Package: dji.v5.manager.datacenter.livestream
Description:
The mode of live stream video bitrate. Supported since MSDK 5.0.0
Enum Members:
AUTOAUTO. Under this mode, the MSDK will set the bitrate automatically according to fluency of live video. MANUALMANUAL, the default mode of live video bitrate mode. The deafult bit rate is 2*1024kbps.
Class Members:
class LiveStreamStatus ↗ 描述 The live stream status is used to get the current FPS, bitrate, resolution, packet loss, and status.
MSDK 5.0.0开始支持
class VideoResolution ↗ 描述 The resolution of live video stream.
MSDK 5.0.0开始支持
class LiveStreamStatusListener ↗ interface LiveStreamStatusListener
描述 The listener of live stream status.
MSDK 5.0.0开始支持