Class RTSP
RTSP Class
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 |
|
---|---|
Constructs a RTSP object. |
|
Public Methods |
|
Configure RTSP module by setting up RTSP video parameters. |
|
Configure RTSP module by setting up RTSP audio parameters. |
|
Start RTSP streaming. |
|
Stop RTSP streaming. |
|
Get RTSP port value. |
|
RTSP:: printInfo |
Print 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*
Example: StreamRTSP/VideoOnly
Note
“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
Example: StreamRTSP/SingleVideoWithAudio
Note
“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
Example: StreamRTSP/VideoOnly
Note
“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
Note
“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
Note
“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
Example: StreamRTSP/VideoOnly
Note
“RTSP.h” must be included to use the class function.