Lightweight RTSP service RTSP Streaming module and module application scenarios difference

Many developers have been confused lightweight SDK and RTSP service RTSP push the difference between the SDK (flow Github Download ), the following are the relevant differences:

1. Lightweight RTSP service modules : Core lightweight RTSP service trigger point is resolved to avoid the user or the developer alone or RTMP RTSP service deployment , for local audio and video data (e.g., camera, microphone), encoded, built converged RTSP service, provide external flows for RTSP URL to pull, lightweight RTSP service, applies to the next within the network environment , to concurrent less demanding scenes, supports H.264 / H.265, support RTSP authentication, unicast multicast mode, taking into account the carrying capacity of a single service, we support RTSP create multiple services, and support services to obtain the number of the current RTSP session connection.

The following is the interface to explain (to Android platform as an example):

Android SDK built lightweight RTSP service interfaces Detailed

Call description

interface

Interface Description

General Features

Android RTMP end push all functions remain active, while also pushing RTMP

SmartRTSPServerSDK

Initialization RTSP Server

InitRtspServer

Init rtsp server (and UnInitRtspServer paired even start multiple RTSP service, but also just called once InitRtspServer, make sure to call before OpenRtspServer)

Create a rtsp server

OpenRtspServer

Create a rtsp server, returns a handle rtsp server

Set Port

SetRtspServerPort

Set rtsp server listening port, the port must be set before StartRtspServer

Set authentication user name and password

SetRtspServerUserNamePassword

Set rtsp server authentication username and password, this can not be set, only to be re-authentication settings

Gets the current number of sessions rtsp server

GetRtspServerClientSessionNumbers

Gets the current client sessions rtsp server, this interface must be re-called after StartRtspServer

Start rtsp server

StartRtspServer

Start rtsp server

Stop rtsp server

StopRtspServer

Stop rtsp server

Close rtsp server

CloseRtspServer

Close rtsp server

UnInit rtsp server

UnInitRtspServer

UnInit rtsp server (and InitRtspServer paired even start multiple RTSP service, but also just called once UnInitRtspServer)

SmartRTSPServerSDK call for Publisher Interface

Set the rtsp stream name

SetRtspStreamName

Set the rtsp stream name

To be published rtsp stream rtsp server settings

AddRtspStreamServer

To be published rtsp streaming settings rtsp server, a stream can be published to multiple rtsp server, create a startup rtsp server, please refer to OpenRtspServer and StartRtspServer Interface

Clear rtsp server settings

ClearRtspStreamServer

Clear rtsp server settings

Start rtsp stream

StartRtspStream

Start rtsp stream

Stop rtsp stream

StopRtspStream

Stop rtsp stream

2. Push RTSP streaming module: RTSP module plug flow, plug flow, and RTMP similar module, suitable for the environment within the network or public network , mainly for third-party service docking RTSP , such darwin stream server, RTSP or third party service platform, such as server-specific scenarios such as video analysis platform that supports H.264 / H.265, supports TCP, UDP transmission mode is set, and also supports authentication service, the main advantage is that the RTSP protocol UDP piece, but UDP packet, public easy to block live network, and that network instability easy loss, so the scene can push RTMP streams generally recommended to go RTMP, need special docking system, walk RTSP.

The following is the interface to explain (to Android platform as an example):

Call description

interface

Interface Description

Setting a push transmission RTSP

SetPushRtspTransportProtocol

transport_protocol: 1 rtp for UDP transport packet; 2 represents TCP packet transmission rtp

Set push the RTSP URL

SetPushRtspURL

Set push the RTSP URL

Push start RTSP

StartPushRtsp

Initiate a push RTSP streaming

Stop pushing RTSP

StopPushRtsp

Stop pushing RTSP streaming

Guess you like

Origin www.cnblogs.com/daniulivesdk/p/12242584.html