RTSP Class

RTSPClass

Description
A class used to send audio and video data streams over a network using the Real Time Streaming Protocol (RTSP). This allows viewing of a video stream on a computer using media players.

Syntax
class RTSP

Members

Public Constructors 
RTSP::RTSPConstructs a RTSP object.
Public Methods 
RTSP::configVideoConfigure RTSP module by setting up RTSP video parameters.
RTSP::configAudioConfigure RTSP module by setting up RTSP audio parameters.
RTSP::beginStart RTSP streaming.
RTSP::endStop RTSP streaming.
RTSP::enableAudioEnable audio streaming for RTSP.
RTSP::getPortGet RTSP port value.
RTSP:: printInfoPrint out current configuration of RTSP.

RTSP::configVideo

Description
Configure RTSP module by setting up RTSP video parameters.

Syntax
void configVideo(VideoSetting& config);

Parameters
config: VideoSetting object.

Returns
NA

Example Code
VideoOnly
(https://github.com/ambiot/ambpro2_arduino/blob/dev/Arduino_package/hardware/libraries/Video/examples/StreamRTSP/VideoOnly/VideoOnly.ino)

Notes and Warnings
“RTSP.h” must be included to use the class function.

RTSP::configAudio

Description
Configure RTSP module by setting up RTSP audio parameters.

Syntax
void configAudio(AudioSetting& config);

Parameters
config: AudioSetting object.

Returns
NA

Example Code
NA

Notes and Warnings
“RTSP.h” must be included to use the class function.

RTSP::begin

Description
Start RTSP streaming.

Syntax
void begin(void);

Parameters
NA

Returns
NA

Example Code
VideoOnly
(https://github.com/ambiot/ambpro2_arduino/blob/dev/Arduino_package/hardware/libraries/Video/examples/StreamRTSP/VideoOnly/VideoOnly.ino)

Notes and Warnings
“RTSP.h” must be included to use the class function.

RTSP::end

Description
Stop RTSP streaming.

Syntax
void end(void);

Parameters
NA

Returns
NA

Example Code
NA

Notes and Warnings
“RTSP.h” must be included to use the class function.

RTSP::enableAudio

Description
Enable audio streaming for RTSP.

Syntax
int enableAudio(void);

Parameters
NA

Returns
This function returns AUDIO_EN status as a integer. (Valid Value: 0 – Disabled, 1 – Enabled).

Example Code
SingleVideoWithAudio
(https://github.com/ambiot/ambpro2_arduino/blob/dev/Arduino_package/hardware/libraries/Video/examples/StreamRTSP/SingleVideoWithAudio/SingleVideoWithAudio.ino)

Notes and Warnings
“RTSP.h” must be included to use the class function.

RTSP::getPort

Description
Get RTSP stream network port.

Syntax
int getPort(void);

Parameters
NA

Returns
This function returns the port number as an integer.

Example Code
NA

Notes and Warnings
“RTSP.h” must be included to use the class function.

RTSP::printInfo

Description
Print out current configuration of RTSP.

Syntax
void printInfo(void);

Parameters
NA

Returns
NA

Example Code
VideoOnly
(https://github.com/ambiot/ambpro2_arduino/blob/dev/Arduino_package/hardware/libraries/Video/examples/StreamRTSP/VideoOnly/VideoOnly.ino)

Notes and Warnings
“RTSP.h” must be included to use the class function.

Copyrights ©瑞晟微电子(苏州)有限公司 2021. All rights reserved. Terms of Use
Please confirm that QQ communication software is installed
請先確認已安裝QQ通訊軟體