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::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/Multimedia/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, Audio_Codec_T codec);

Parameters
config: AudioSetting object containing desired audio configuration
codec: Codec format of Audio stream input. Valid values: CODEC_AAC, CODEC_G711_PCMU, CODEC_G711_PCMA

Returns
NA

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

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/Multimedia/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::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/Multimedia/examples/StreamRTSP/VideoOnly/VideoOnly.ino)

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

Please confirm that QQ communication software is installed
請先確認已安裝QQ通訊軟體