mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Add API to get the sizes of the sent and received video streams of a call.
This commit is contained in:
parent
1b6da4751b
commit
226657f358
3 changed files with 33 additions and 1 deletions
|
|
@ -2506,6 +2506,24 @@ void linphone_call_zoom_video(LinphoneCall* call, float zoom_factor, float* cx,
|
|||
}else ms_warning("Could not apply zoom: video output wasn't activated.");
|
||||
}
|
||||
|
||||
MSVideoSize linphone_call_get_sent_video_size(const LinphoneCall *call) {
|
||||
VideoStream *vstream = call->videostream;
|
||||
MSVideoSize vsize = MS_VIDEO_SIZE_UNKNOWN;
|
||||
if (vstream != NULL) {
|
||||
vsize = video_stream_get_sent_video_size(vstream);
|
||||
}
|
||||
return vsize;
|
||||
}
|
||||
|
||||
MSVideoSize linphone_call_get_received_video_size(const LinphoneCall *call) {
|
||||
VideoStream *vstream = call->videostream;
|
||||
MSVideoSize vsize = MS_VIDEO_SIZE_UNKNOWN;
|
||||
if (vstream != NULL) {
|
||||
vsize = video_stream_get_received_video_size(vstream);
|
||||
}
|
||||
return vsize;
|
||||
}
|
||||
|
||||
#ifndef USE_BELLESIP
|
||||
static char *get_fixed_contact(LinphoneCore *lc, LinphoneCall *call , LinphoneProxyConfig *dest_proxy){
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -589,6 +589,20 @@ LINPHONE_PUBLIC void linphone_call_enable_echo_limiter(LinphoneCall *call, bool_
|
|||
**/
|
||||
LINPHONE_PUBLIC bool_t linphone_call_echo_limiter_enabled(const LinphoneCall *call);
|
||||
|
||||
/**
|
||||
* Gets the size of the video that is sent.
|
||||
* @param[in] call The call for which to get the sent video size.
|
||||
* @return The sent video size or MS_VIDEO_SIZE_UNKNOWN if not available.
|
||||
*/
|
||||
LINPHONE_PUBLIC MSVideoSize linphone_call_get_sent_video_size(const LinphoneCall *call);
|
||||
|
||||
/**
|
||||
* Gets the size of the video that is received.
|
||||
* @param[in] call The call for which to get the received video size.
|
||||
* @return The received video size or MS_VIDEO_SIZE_UNKNOWN if not available.
|
||||
*/
|
||||
LINPHONE_PUBLIC MSVideoSize linphone_call_get_received_video_size(const LinphoneCall *call);
|
||||
|
||||
/*keep this in sync with mediastreamer2/msvolume.h*/
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 2d30405af1fbfd8192de3ebecdd9db01011b4672
|
||||
Subproject commit e09b7d2903732769e9121baf8d9d1b989ab0bb00
|
||||
Loading…
Add table
Reference in a new issue