Commit 226657f3 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add API to get the sizes of the sent and received video streams of a call.

parent 1b6da475
......@@ -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*/
/**
......
mediastreamer2 @ e09b7d29
Subproject commit 2d30405af1fbfd8192de3ebecdd9db01011b4672
Subproject commit e09b7d2903732769e9121baf8d9d1b989ab0bb00
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment