app_confbridge/bridge_softmix: Add ability to force estimated bitrate

app_confbridge now has the ability to set the estimated bitrate on an
SFU bridge.  To use it, set a bridge profile's remb_behavior to "force"
and set remb_estimated_bitrate to a rate in bits per second.  The
remb_estimated_bitrate parameter is ignored if remb_behavior is something
other than "force".

Change-Id: Idce6464ff014a37ea3b82944452e56cc4d75ab0a
This commit is contained in:
George Joseph
2020-09-24 12:46:15 -06:00
parent 4b5ed817bd
commit 773f424c7f
8 changed files with 70 additions and 3 deletions

View File

@@ -141,6 +141,8 @@ enum ast_bridge_video_sfu_remb_behavior {
AST_BRIDGE_VIDEO_SFU_REMB_LOWEST_ALL,
/*! The highest reported bitrate from all channels in the bridge is forwarded to each sender */
AST_BRIDGE_VIDEO_SFU_REMB_HIGHEST_ALL,
/*! Force the REMB estimated bitrate to a specified value */
AST_BRIDGE_VIDEO_SFU_REMB_FORCE,
};
/*! \brief This is used for selective forwarding unit configuration */
@@ -149,6 +151,8 @@ struct ast_bridge_video_sfu_data {
unsigned int remb_send_interval;
/*! How the combined REMB report is generated */
enum ast_bridge_video_sfu_remb_behavior remb_behavior;
/*! The estimated bitrate when behavior is "force" */
float estimated_bitrate;
};
/*! \brief Data structure that defines a video source mode */
@@ -1039,6 +1043,16 @@ void ast_bridge_set_remb_send_interval(struct ast_bridge *bridge, unsigned int r
*/
void ast_brige_set_remb_behavior(struct ast_bridge *bridge, enum ast_bridge_video_sfu_remb_behavior behavior);
/*!
* \brief Force the REMB report estimated bitrate to a specific max value
*
* \param bridge Bridge to set the REMB behavior on
* \param estimated_bitrate The estimated bitrate in bits per second
*
* \note This can only be called when the bridge has been set to the SFU video mode.
*/
void ast_bridge_set_remb_estimated_bitrate(struct ast_bridge *bridge, float estimated_bitrate);
/*!
* \brief Update information about talker energy for talker src video mode.
*/