mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 17:29:20 +00:00
Hold file loops for paused calls.
Sets the amount of time to pause before replaying the hold music file.
This commit is contained in:
parent
28b029c9bc
commit
f2fe6b766f
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue