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
6a0b67f9
Commit
6a0b67f9
authored
Oct 02, 2012
by
jehan
Browse files
add low bandwidth call param
parent
61312092
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
+13
-3
coreapi/linphonecall.c
coreapi/linphonecall.c
+3
-0
coreapi/linphonecore.h
coreapi/linphonecore.h
+8
-1
coreapi/misc.c
coreapi/misc.c
+1
-1
coreapi/private.h
coreapi/private.h
+1
-1
No files found.
coreapi/linphonecall.c
View file @
6a0b67f9
...
...
@@ -854,6 +854,9 @@ const PayloadType* linphone_call_params_get_used_video_codec(const LinphoneCallP
return
cp
->
video_codec
;
}
bool_t
linphone_call_params_low_bandwidth_enabled
(
const
LinphoneCallParams
*
cp
)
{
return
cp
->
low_bandwidth
;
}
/**
* Returns whether video is enabled.
**/
...
...
coreapi/linphonecore.h
View file @
6a0b67f9
...
...
@@ -204,7 +204,14 @@ bool_t linphone_call_params_early_media_sending_enabled(const LinphoneCallParams
bool_t
linphone_call_params_local_conference_mode
(
const
LinphoneCallParams
*
cp
);
void
linphone_call_params_set_audio_bandwidth_limit
(
LinphoneCallParams
*
cp
,
int
bw
);
void
linphone_call_params_destroy
(
LinphoneCallParams
*
cp
);
/**
* @ingroup call_control
* Use to know if this call has been configured in low bandwidth mode.
* This mode can be automatically discovered thanks to a stun server when activate_edge_workarounds=1 in section [net] of configuration file
* <br> When enabled, this param may transform a call request with video in audio only mode.
* @return TRUE if low bandwidth has been configured/detected
*/
bool_t
linphone_call_params_low_bandwidth_enabled
(
const
LinphoneCallParams
*
cp
);
/**
* Enum describing failure reasons.
* @ingroup initializing
...
...
coreapi/misc.c
View file @
6a0b67f9
...
...
@@ -586,7 +586,7 @@ void linphone_core_adapt_to_network(LinphoneCore *lc, int ping_time_ms, Linphone
params
->
up_bw
=
params
->
down_bw
=
edge_bw
;
params
->
up_ptime
=
params
->
down_ptime
=
edge_ptime
;
params
->
has_video
=
FALSE
;
params
->
low_bandwidth
=
TRUE
;
}
/*else use default settings */
}
}
...
...
coreapi/private.h
View file @
6a0b67f9
...
...
@@ -79,7 +79,7 @@ struct _LinphoneCallParams{
bool_t
real_early_media
;
/*send real media even during early media (for outgoing calls)*/
bool_t
in_conference
;
/*in conference mode */
bool_t
pad
;
bool_t
low_bandwidth
;
};
typedef
struct
_CallCallbackObj
...
...
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