| 57 |
#endif |
#endif |
| 58 |
#include "sdp.h" |
#include "sdp.h" |
| 59 |
|
|
| 60 |
#include "ipinfo.h" |
#include "rtpipinfo.h" |
| 61 |
#include "dialogicdevice.h" |
#include "dialogicdevice.h" |
| 62 |
#include "coders.h" |
#include "coders.h" |
| 63 |
#include "overlay.h" |
#include "overlay.h" |
| 186 |
* \return true if the info was found; otherwise, false. |
* \return true if the info was found; otherwise, false. |
| 187 |
*/ |
*/ |
| 188 |
bool getLocalMediaInfo( eIPM_MEDIA_TYPE type, |
bool getLocalMediaInfo( eIPM_MEDIA_TYPE type, |
| 189 |
IpInfo& rtp_media ) const; |
RtpIpInfo& rtp_media ) const; |
| 190 |
|
|
| 191 |
/*! |
/*! |
| 192 |
* Save the ip-address and port of the remote party's media. |
* Save the ip-address and port of the remote party's media. |
| 194 |
* \param rtp_media |
* \param rtp_media |
| 195 |
*/ |
*/ |
| 196 |
void setRemoteMediaInfo( eIPM_MEDIA_TYPE type, |
void setRemoteMediaInfo( eIPM_MEDIA_TYPE type, |
| 197 |
const IpInfo& rtp_media ); |
const RtpIpInfo& rtp_media ); |
| 198 |
|
|
| 199 |
/*! |
/*! |
| 200 |
* Get the ip-address and port used by the remote party's media. |
* Get the ip-address and port used by the remote party's media. |
| 203 |
* \return true if the info was found; otherwise, false. |
* \return true if the info was found; otherwise, false. |
| 204 |
*/ |
*/ |
| 205 |
bool getRemoteMediaInfo( eIPM_MEDIA_TYPE type, |
bool getRemoteMediaInfo( eIPM_MEDIA_TYPE type, |
| 206 |
IpInfo& rtp_media ) const; |
RtpIpInfo& rtp_media ) const; |
| 207 |
|
|
| 208 |
/*! |
/*! |
| 209 |
* Set the local audio coder. |
* Set the local audio coder. |
| 303 |
* \param remote_video_rtp |
* \param remote_video_rtp |
| 304 |
* \param remote_video_rtcp |
* \param remote_video_rtcp |
| 305 |
*/ |
*/ |
| 306 |
bool startMedia( const IpInfo& remote_audio_rtp, |
bool startMedia( const RtpIpInfo& remote_audio_rtp, |
| 307 |
const IpInfo& remote_audio_rtcp, |
const RtpIpInfo& remote_audio_rtcp, |
| 308 |
const IpInfo& remote_video_rtp, |
const RtpIpInfo& remote_video_rtp, |
| 309 |
const IpInfo& remote_video_rtcp ); |
const RtpIpInfo& remote_video_rtcp ); |
| 310 |
|
|
| 311 |
/*! |
/*! |
| 312 |
* Stop streaming media. |
* Stop streaming media. |
| 503 |
AudioCoderInfo audioCoder; |
AudioCoderInfo audioCoder; |
| 504 |
VideoCoderInfo videoCoder; |
VideoCoderInfo videoCoder; |
| 505 |
bool rfc2833; |
bool rfc2833; |
| 506 |
IpInfo rtp; |
RtpIpInfo rtp; |
|
std::string direction; /* sendonly, recvonly, sendrecv, or inactive */ |
|
| 507 |
}; |
}; |
| 508 |
|
|
| 509 |
typedef std::vector<Media> media_t; |
typedef std::vector<Media> media_t; |
| 532 |
*/ |
*/ |
| 533 |
struct MediaInfo |
struct MediaInfo |
| 534 |
{ |
{ |
| 535 |
IpInfo audioRtp; |
RtpIpInfo audioRtp; |
| 536 |
IpInfo audioRtcp; |
RtpIpInfo audioRtcp; |
| 537 |
AudioCoderInfo audioCoder; |
AudioCoderInfo audioCoder; |
|
std::string audioDirection; |
|
| 538 |
|
|
| 539 |
IpInfo videoRtp; |
RtpIpInfo videoRtp; |
| 540 |
IpInfo videoRtcp; |
RtpIpInfo videoRtcp; |
| 541 |
VideoCoderInfo videoCoder; |
VideoCoderInfo videoCoder; |
|
std::string videoDirection; |
|
| 542 |
|
|
| 543 |
Origin origin; |
Origin origin; |
| 544 |
}; |
}; |