Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
6b88923d
Commit
6b88923d
authored
Aug 11, 2014
by
Simon Morlat
Browse files
update ms2 for bugfixes, implement jitter buffer disablement
parent
61c5b4c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
coreapi/linphonecore.c
coreapi/linphonecore.c
+29
-0
mediastreamer2
mediastreamer2
+1
-1
oRTP
oRTP
+1
-1
No files found.
coreapi/linphonecore.c
View file @
6b88923d
...
...
@@ -1763,24 +1763,53 @@ bool_t linphone_core_get_rtp_no_xmit_on_audio_mute(const LinphoneCore *lc){
return
lc
->
rtp_conf
.
rtp_no_xmit_on_audio_mute
;
}
static
void
apply_jitter_value
(
LinphoneCore
*
lc
,
int
value
,
MSFormatType
stype
){
LinphoneCall
*
call
;
MSList
*
it
;
for
(
it
=
lc
->
calls
;
it
!=
NULL
;
it
=
it
->
next
){
MediaStream
*
ms
;
call
=
(
LinphoneCall
*
)
it
->
data
;
ms
=
stype
==
MSAudio
?
(
MediaStream
*
)
call
->
audiostream
:
(
MediaStream
*
)
call
->
videostream
;
if
(
ms
){
RtpSession
*
s
=
ms
->
sessions
.
rtp_session
;
if
(
s
){
if
(
value
>
0
){
ms_message
(
"Jitter buffer size set to [%i] ms on call [%p]"
,
value
,
call
);
rtp_session_set_jitter_compensation
(
s
,
value
);
rtp_session_enable_jitter_buffer
(
s
,
TRUE
);
}
else
if
(
value
==
0
){
ms_warning
(
"Jitter buffer is disabled per application request on call [%p]"
,
call
);
rtp_session_enable_jitter_buffer
(
s
,
FALSE
);
}
}
}
}
}
/**
* Sets the nominal audio jitter buffer size in milliseconds.
* The value takes effect immediately for all running and pending calls, if any.
* A value of 0 disables the jitter buffer.
*
* @ingroup media_parameters
**/
void
linphone_core_set_audio_jittcomp
(
LinphoneCore
*
lc
,
int
value
)
{
lc
->
rtp_conf
.
audio_jitt_comp
=
value
;
apply_jitter_value
(
lc
,
value
,
MSAudio
);
}
/**
* Sets the nominal video jitter buffer size in milliseconds.
* The value takes effect immediately for all running and pending calls, if any.
* A value of 0 disables the jitter buffer.
*
* @ingroup media_parameters
**/
void
linphone_core_set_video_jittcomp
(
LinphoneCore
*
lc
,
int
value
)
{
lc
->
rtp_conf
.
video_jitt_comp
=
value
;
apply_jitter_value
(
lc
,
value
,
MSVideo
);
}
void
linphone_core_set_rtp_no_xmit_on_audio_mute
(
LinphoneCore
*
lc
,
bool_t
rtp_no_xmit_on_audio_mute
){
...
...
mediastreamer2
@
c82cc74f
Subproject commit
3b9fe1b8c405f1a148ec7b58f7d540c8946a9a05
Subproject commit
c82cc74f7341378ea3d21257448c427e4e7b91a1
oRTP
@
9d158c2d
Subproject commit
fc8d8457eb630907eff50333ddf5243b448fe733
Subproject commit
9d158c2daf289bd826b855903e913786f90d5bad
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment