mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	bridge_softmix / app_confbridge: Add support for REMB combining.
This change adds the ability for multiple REMB reports in bridge_softmix to be combined according to a configured behavior into a single report. This single report is sent back to the sender of video, which adjusts the encoding bitrate to be at or below the bitrate of the report. The available behaviors are: lowest, highest, and average. Lowest uses the lowest received bitrate. Highest uses the highest received bitrate. Average goes through the received bitrates adding them to the previous average and creates a new average. Other behaviors can be added in the future and the existing average one may be adjusted, but this provides the foundation to do so. Support for configuring which behavior to use has been added to app_confbridge. ASTERISK-27804 Change-Id: I9eafe4e7c1f72d67074a8d6acb26bfcf19322b66
This commit is contained in:
		| @@ -1544,6 +1544,13 @@ static struct confbridge_conference *join_conference_bridge(const char *conferen | ||||
| 			ast_bridge_set_sfu_video_mode(conference->bridge); | ||||
| 			ast_bridge_set_video_update_discard(conference->bridge, conference->b_profile.video_update_discard); | ||||
| 			ast_bridge_set_remb_send_interval(conference->bridge, conference->b_profile.remb_send_interval); | ||||
| 			if (ast_test_flag(&conference->b_profile, BRIDGE_OPT_REMB_BEHAVIOR_AVERAGE)) { | ||||
| 				ast_brige_set_remb_behavior(conference->bridge, AST_BRIDGE_VIDEO_SFU_REMB_AVERAGE); | ||||
| 			} else if (ast_test_flag(&conference->b_profile, BRIDGE_OPT_REMB_BEHAVIOR_LOWEST)) { | ||||
| 				ast_brige_set_remb_behavior(conference->bridge, AST_BRIDGE_VIDEO_SFU_REMB_LOWEST); | ||||
| 			} else if (ast_test_flag(&conference->b_profile, BRIDGE_OPT_REMB_BEHAVIOR_HIGHEST)) { | ||||
| 				ast_brige_set_remb_behavior(conference->bridge, AST_BRIDGE_VIDEO_SFU_REMB_HIGHEST); | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		/* Link it into the conference bridges container */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user