Live Stream Sample

2026-08-06Loading rating…

Sample Introduction

The live stream function is an important function of Mobile SDK, which supports four live stream modes: RTMP, RTSP, GB2881, and AGORA. Live stream function is in need at security, public safety and patrol inspection scenes.

This sample shows the complete interface and an example of the interface calling process.

Interface Calling Process

The following figure shows a complete interface display and an example of the interface calling process. For detailed usage, please check the related information of ILiveStreamManager class from API documentationopen in new window of Mobile SDK. ILiveStreamManager class is used for live stream parameter setting, start stream, stop stream and so on.

Notice: The interfaces setVideoChannelType() and getVideoChannelType() are deprecated. Please use the interfaces setCameraIndex() and getCameraIndex() to replace them respectively. The changes are shown in the flowchart.

Sample Acquisition

Go to Live Stream Sample Codeopen in new window.

Last Updated: