testProgs/playCommon.hh File Reference

#include "liveMedia.hh"

Include dependency graph for playCommon.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

MediumcreateClient (UsageEnvironment &env, char const *URL, int verbosityLevel, char const *applicationName)
void getOptions (RTSPClient::responseHandler *afterFunc)
void getSDPDescription (RTSPClient::responseHandler *afterFunc)
void setupSubsession (MediaSubsession *subsession, Boolean streamUsingTCP, RTSPClient::responseHandler *afterFunc)
void startPlayingSession (MediaSession *session, double start, double end, float scale, RTSPClient::responseHandler *afterFunc)
void tearDownSession (MediaSession *session, RTSPClient::responseHandler *afterFunc)

Variables

RTSPClientourRTSPClient
SIPClientourSIPClient
AuthenticatorourAuthenticator
Boolean allowProxyServers
Boolean controlConnectionUsesTCP
Boolean supportCodecSelection
char const * clientProtocolName
unsigned statusCode


Function Documentation

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

Definition at line 27 of file openRTSP.cpp.

References SIPClient::createNew(), RTSPClient::createNew(), desiredAudioRTPPayloadFormat, env, mimeSubtype, ourRTSPClient, ourSIPClient, and tunnelOverHTTPPortNum.

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

void getOptions ( RTSPClient::responseHandler afterFunc  ) 

Definition at line 32 of file openRTSP.cpp.

References Medium::envir(), UsageEnvironment::getResultMsg(), NULL, ourAuthenticator, ourRTSPClient, ourSIPClient, RTSPClient::sendOptionsCommand(), UsageEnvironment::setResultMsg(), and strDup().

00032                                                       { 
00033   ourRTSPClient->sendOptionsCommand(afterFunc, ourAuthenticator);
00034 }

void getSDPDescription ( RTSPClient::responseHandler afterFunc  ) 

Definition at line 36 of file openRTSP.cpp.

References NetAddress::data(), desiredPortNum, Medium::envir(), NetAddressList::firstAddress(), SIPClient::invite(), SIPClient::inviteWithPassword(), NULL, NetAddressList::numAddresses(), ourAuthenticator, ourRTSPClient, ourSIPClient, password, Authenticator::password(), proxyServerName, proxyServerPortNum, RTSPClient::sendDescribeCommand(), SIPClient::setClientStartPortNum(), SIPClient::setProxyServer(), strDup(), streamURL, username, and Authenticator::username().

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

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

Definition at line 40 of file openRTSP.cpp.

References False, NULL, ourAuthenticator, ourRTSPClient, RTSPClient::sendSetupCommand(), MediaSubsession::setSessionId(), and subsession.

00040                                                                                                                 {
00041   Boolean forceMulticastOnUnspecified = False;
00042   ourRTSPClient->sendSetupCommand(*subsession, afterFunc, False, streamUsingTCP, forceMulticastOnUnspecified, ourAuthenticator);
00043 }

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

Definition at line 45 of file openRTSP.cpp.

References Medium::envir(), UsageEnvironment::getResultMsg(), NULL, ourAuthenticator, ourRTSPClient, ourSIPClient, SIPClient::sendACK(), RTSPClient::sendPlayCommand(), session, and strDup().

00045                                                                                                                              {
00046   ourRTSPClient->sendPlayCommand(*session, afterFunc, start, end, scale, ourAuthenticator);
00047 }

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

Definition at line 49 of file openRTSP.cpp.

References Medium::envir(), UsageEnvironment::getResultMsg(), NULL, ourAuthenticator, ourRTSPClient, ourSIPClient, SIPClient::sendBYE(), RTSPClient::sendTeardownCommand(), session, and strDup().

00049                                                                                   {
00050   ourRTSPClient->sendTeardownCommand(*session, afterFunc, ourAuthenticator);
00051 }


Variable Documentation

Boolean allowProxyServers

Definition at line 53 of file openRTSP.cpp.

char const* clientProtocolName

Definition at line 56 of file openRTSP.cpp.

Boolean controlConnectionUsesTCP

Definition at line 54 of file openRTSP.cpp.

Authenticator* ourAuthenticator

Definition at line 57 of file playCommon.cpp.

Referenced by continueAfterTEARDOWN(), getOptions(), getSDPDescription(), main(), setupSubsession(), startPlayingSession(), and tearDownSession().

RTSPClient* ourRTSPClient

Definition at line 26 of file openRTSP.cpp.

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

SIPClient* ourSIPClient

Definition at line 23 of file playSIP.cpp.

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

unsigned statusCode

Boolean supportCodecSelection

Definition at line 55 of file openRTSP.cpp.


Generated on Thu May 17 07:14:37 2012 for live by  doxygen 1.5.2