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, int verbosityLevel, char const *applicationName)
char * getOptionsResponse (Medium *client, char const *url, char *username, char *password)
char * getSDPDescriptionFromURL (Medium *client, char const *url, char const *username, char const *password, char const *proxyServerName, unsigned short proxyServerPortNum, unsigned short clientStartPortNum)
Boolean clientSetupSubsession (Medium *client, MediaSubsession *subsession, Boolean streamUsingTCP)
Boolean clientStartPlayingSession (Medium *client, MediaSession *session)
Boolean clientTearDownSession (Medium *client, MediaSession *session)

Variables

Boolean allowProxyServers
Boolean controlConnectionUsesTCP
Boolean supportCodecSelection
char const * clientProtocolName
unsigned statusCode


Function Documentation

Boolean clientSetupSubsession ( Medium client,
MediaSubsession subsession,
Boolean  streamUsingTCP 
)

Definition at line 53 of file openRTSP.cpp.

References False, NULL, MediaSubsession::sessionId, RTSPClient::setupMediaSubsession(), subsession, and True.

00054                                                       {
00055   if (client == NULL || subsession == NULL) return False;
00056   RTSPClient* rtspClient = (RTSPClient*)client;
00057   return rtspClient->setupMediaSubsession(*subsession,
00058                                           False, streamUsingTCP);
00059 }

Boolean clientStartPlayingSession ( Medium client,
MediaSession session 
)

Definition at line 61 of file openRTSP.cpp.

References duration, False, initialSeekTime, NULL, RTSPClient::playMediaSession(), scale, SIPClient::sendACK(), and session.

00062                                                          {
00063   extern double initialSeekTime, duration, scale;
00064   double endTime = initialSeekTime;
00065   if (scale > 0) {
00066     if (duration <= 0) endTime = -1.0f;
00067     else endTime = initialSeekTime + duration;
00068   } else {
00069     endTime = initialSeekTime - duration;
00070     if (endTime < 0) endTime = 0.0f;
00071   }
00072 
00073   if (client == NULL || session == NULL) return False;
00074   RTSPClient* rtspClient = (RTSPClient*)client;
00075   return rtspClient->playMediaSession(*session, (float)initialSeekTime, (float)endTime, (float)scale);
00076 }

Boolean clientTearDownSession ( Medium client,
MediaSession session 
)

Definition at line 78 of file openRTSP.cpp.

References False, NULL, SIPClient::sendBYE(), session, and RTSPClient::teardownMediaSession().

00079                                                      {
00080   if (client == NULL || session == NULL) return False;
00081   RTSPClient* rtspClient = (RTSPClient*)client;
00082   return rtspClient->teardownMediaSession(*session);
00083 }

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

Definition at line 22 of file openRTSP.cpp.

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

00023                                                                       {
00024   extern portNumBits tunnelOverHTTPPortNum;
00025   return RTSPClient::createNew(env, verbosityLevel, applicationName,
00026                                tunnelOverHTTPPortNum);
00027 }

char* getOptionsResponse ( Medium client,
char const *  url,
char *  username,
char *  password 
)

Definition at line 29 of file openRTSP.cpp.

References Medium::envir(), NULL, RTSPClient::sendOptionsCmd(), and UsageEnvironment::setResultMsg().

00030                                                          {
00031   RTSPClient* rtspClient = (RTSPClient*)client;
00032   return rtspClient->sendOptionsCmd(url, username, password);
00033 }

char* getSDPDescriptionFromURL ( Medium client,
char const *  url,
char const *  username,
char const *  password,
char const *  proxyServerName,
unsigned short  proxyServerPortNum,
unsigned short  clientStartPortNum 
)

Definition at line 35 of file openRTSP.cpp.

References NetAddress::data(), RTSPClient::describeStatus(), RTSPClient::describeURL(), RTSPClient::describeWithPassword(), Medium::envir(), NetAddressList::firstAddress(), SIPClient::invite(), SIPClient::inviteStatus(), SIPClient::inviteWithPassword(), NULL, NetAddressList::numAddresses(), SIPClient::setClientStartPortNum(), SIPClient::setProxyServer(), and statusCode.

00039                                                                    {
00040   RTSPClient* rtspClient = (RTSPClient*)client;
00041   char* result;
00042   if (username != NULL && password != NULL) {
00043     result = rtspClient->describeWithPassword(url, username, password);
00044   } else {
00045     result = rtspClient->describeURL(url);
00046   }
00047 
00048   extern unsigned statusCode;
00049   statusCode = rtspClient->describeStatus();
00050   return result;
00051 }


Variable Documentation

Boolean allowProxyServers

Definition at line 85 of file openRTSP.cpp.

char const* clientProtocolName

Definition at line 88 of file openRTSP.cpp.

Boolean controlConnectionUsesTCP

Definition at line 86 of file openRTSP.cpp.

unsigned statusCode

Definition at line 100 of file playCommon.cpp.

Referenced by getSDPDescriptionFromURL(), and printQOSData().

Boolean supportCodecSelection

Definition at line 87 of file openRTSP.cpp.


Generated on Tue Oct 7 15:39:23 2008 for live by  doxygen 1.5.2