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
f2fe6b76
Commit
f2fe6b76
authored
Jan 14, 2016
by
trevora
Committed by
Gautier Pelloux-Prayer
Jan 22, 2016
Browse files
Hold file loops for paused calls.
Sets the amount of time to pause before replaying the hold music file.
parent
28b029c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
coreapi/linphonecall.c
View file @
f2fe6b76
...
...
@@ -3479,6 +3479,8 @@ void linphone_call_start_media_streams(LinphoneCall *call, LinphoneCallState nex
if
(
call
->
onhold_file
&&
!
call
->
params
->
in_conference
&&
call
->
audiostream
){
MSFilter
*
player
=
audio_stream_open_remote_play
(
call
->
audiostream
,
call
->
onhold_file
);
if
(
player
){
int
pause_time
=
500
;
ms_filter_call_method
(
player
,
MS_PLAYER_SET_LOOP
,
&
pause_time
);
ms_filter_call_method_noarg
(
player
,
MS_PLAYER_START
);
}
}
...
...
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