testProgs/openRTSP.cpp File Reference

#include "playCommon.hh"

Include dependency graph for openRTSP.cpp:

Go to the source code of this file.

Functions

MediumcreateClient (UsageEnvironment &env, char const *url, int verbosityLevel, char const *applicationName)
void assignClient (Medium *client)
void getOptions (RTSPClient::responseHandler *afterFunc)
void getSDPDescription (RTSPClient::responseHandler *afterFunc)
void setupSubsession (MediaSubsession *subsession, Boolean streamUsingTCP, Boolean forceMulticastOnUnspecified, RTSPClient::responseHandler *afterFunc)
void startPlayingSession (MediaSession *session, double start, double end, float scale, RTSPClient::responseHandler *afterFunc)
void startPlayingSession (MediaSession *session, char const *absStartTime, char const *absEndTime, float scale, RTSPClient::responseHandler *afterFunc)
void tearDownSession (MediaSession *session, RTSPClient::responseHandler *afterFunc)
void setUserAgentString (char const *userAgentString)

Variables

RTSPClientourRTSPClient = NULL
Boolean allowProxyServers = False
Boolean controlConnectionUsesTCP = True
Boolean supportCodecSelection = False
char const * clientProtocolName = "RTSP"


Function Documentation

void assignClient ( Medium client  ) 

Definition at line 32 of file openRTSP.cpp.

Referenced by continueAfterClientCreation0().

00032                                   {
00033   ourRTSPClient = (RTSPClient*)client;
00034 }

Medium* createClient ( UsageEnvironment env,
char const *  url,
int  verbosityLevel,
char const *  applicationName 
)

Definition at line 27 of file openRTSP.cpp.

Referenced by main().

00027                                                                                                               {
00028   extern portNumBits tunnelOverHTTPPortNum;
00029   return ourRTSPClient = RTSPClient::createNew(env, url, verbosityLevel, applicationName, tunnelOverHTTPPortNum);
00030 }

void getOptions ( RTSPClient::responseHandler afterFunc  ) 

Definition at line 36 of file openRTSP.cpp.

Referenced by continueAfterClientCreation1().

00036                                                       { 
00037   ourRTSPClient->sendOptionsCommand(afterFunc, ourAuthenticator);
00038 }

void getSDPDescription ( RTSPClient::responseHandler afterFunc  ) 

Definition at line 40 of file openRTSP.cpp.

Referenced by continueAfterOPTIONS().

00040                                                              {
00041   ourRTSPClient->sendDescribeCommand(afterFunc, ourAuthenticator);
00042 }

void setupSubsession ( MediaSubsession subsession,
Boolean  streamUsingTCP,
Boolean  forceMulticastOnUnspecified,
RTSPClient::responseHandler afterFunc 
)

Definition at line 44 of file openRTSP.cpp.

Referenced by setupStreams().

00044                                                                                                                                                      {
00045   
00046   ourRTSPClient->sendSetupCommand(*subsession, afterFunc, False, streamUsingTCP, forceMulticastOnUnspecified, ourAuthenticator);
00047 }

void setUserAgentString ( char const *  userAgentString  ) 

Definition at line 61 of file openRTSP.cpp.

Referenced by continueAfterClientCreation1().

00061                                                      {
00062   ourRTSPClient->setUserAgentString(userAgentString);
00063 }

void startPlayingSession ( MediaSession session,
char const *  absStartTime,
char const *  absEndTime,
float  scale,
RTSPClient::responseHandler afterFunc 
)

Definition at line 53 of file openRTSP.cpp.

00053                                                                                                                                                      {
00054   ourRTSPClient->sendPlayCommand(*session, afterFunc, absStartTime, absEndTime, scale, ourAuthenticator);
00055 }

void startPlayingSession ( MediaSession session,
double  start,
double  end,
float  scale,
RTSPClient::responseHandler afterFunc 
)

Definition at line 49 of file openRTSP.cpp.

Referenced by sessionAfterPlaying(), setupStreams(), and startPlayingSession().

00049                                                                                                                              {
00050   ourRTSPClient->sendPlayCommand(*session, afterFunc, start, end, scale, ourAuthenticator);
00051 }

void tearDownSession ( MediaSession session,
RTSPClient::responseHandler afterFunc 
)

Definition at line 57 of file openRTSP.cpp.

Referenced by shutdown().

00057                                                                                   {
00058   ourRTSPClient->sendTeardownCommand(*session, afterFunc, ourAuthenticator);
00059 }


Variable Documentation

Boolean allowProxyServers = False

Definition at line 65 of file openRTSP.cpp.

Referenced by main(), and usage().

char const* clientProtocolName = "RTSP"

Definition at line 68 of file openRTSP.cpp.

Referenced by continueAfterOPTIONS(), and main().

Boolean controlConnectionUsesTCP = True

Definition at line 66 of file openRTSP.cpp.

Referenced by main(), and usage().

RTSPClient* ourRTSPClient = NULL

Definition at line 26 of file openRTSP.cpp.

Referenced by assignClient(), createClient(), getOptions(), getSDPDescription(), setupSubsession(), setUserAgentString(), startPlayingSession(), and tearDownSession().

Boolean supportCodecSelection = False

Definition at line 67 of file openRTSP.cpp.

Referenced by usage().


Generated on Wed Apr 23 16:15:11 2014 for live by  doxygen 1.5.2