mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
allow overriding of rtp transports.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@729 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
19bd9a2bac
commit
383b9f950f
2 changed files with 12 additions and 0 deletions
|
|
@ -1616,6 +1616,9 @@ void linphone_core_init_media_streams(LinphoneCore *lc){
|
|||
audio_stream_set_echo_canceler_params(lc->audiostream,len,delay,framesize);
|
||||
}
|
||||
audio_stream_enable_automatic_gain_control(lc->audiostream,linphone_core_agc_enabled(lc));
|
||||
if (lc->a_rtp)
|
||||
rtp_session_set_transports(lc->audiostream->session,lc->a_rtp,lc->a_rtcp);
|
||||
|
||||
#ifdef VIDEO_ENABLED
|
||||
if (lc->video_conf.display || lc->video_conf.capture)
|
||||
lc->videostream=video_stream_new(linphone_core_get_video_port(lc),linphone_core_ipv6_enabled(lc));
|
||||
|
|
@ -2584,6 +2587,11 @@ void linphone_core_stop_waiting(LinphoneCore *lc){
|
|||
}
|
||||
}
|
||||
|
||||
void linphone_core_set_audio_transports(LinphoneCore *lc, RtpTransport *rtp, RtpTransport *rtcp){
|
||||
lc->a_rtp=rtp;
|
||||
lc->a_rtcp=rtcp;
|
||||
}
|
||||
|
||||
void net_config_uninit(LinphoneCore *lc)
|
||||
{
|
||||
net_config_t *config=&lc->net_conf;
|
||||
|
|
|
|||
|
|
@ -480,6 +480,7 @@ typedef struct _LinphoneCore
|
|||
struct _AudioStream *audiostream; /**/
|
||||
struct _VideoStream *videostream;
|
||||
struct _VideoStream *previewstream;
|
||||
RtpTransport *a_rtp,*a_rtcp;
|
||||
struct _RtpProfile *local_profile;
|
||||
MSList *bl_reqs;
|
||||
MSList *subscribers; /* unknown subscribers */
|
||||
|
|
@ -773,6 +774,9 @@ const MSList * linphone_core_get_sip_setups(LinphoneCore *lc);
|
|||
void linphone_core_uninit(LinphoneCore *lc);
|
||||
void linphone_core_destroy(LinphoneCore *lc);
|
||||
|
||||
/*for advanced users:*/
|
||||
void linphone_core_set_audio_transports(LinphoneCore *lc, RtpTransport *rtp, RtpTransport *rtcp);
|
||||
|
||||
/* end of lecacy api */
|
||||
|
||||
/*internal use only */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue