[Asterisk-code-review] res stasis: Set a video source mode on Stasis created bridges (asterisk[13])

Joshua Colp asteriskteam at digium.com
Mon Nov 7 18:23:27 CST 2016


Joshua Colp has submitted this change and it was merged. ( https://gerrit.asterisk.org/4312 )

Change subject: res_stasis: Set a video source mode on Stasis created bridges
......................................................................


res_stasis: Set a video source mode on Stasis created bridges

When a bridge is created via ARI (through res_stasis), no video source
mode is set by default. As a result, any endpoint sending video media
won't ever see any video reflected back to it.

This patch defaults a bridge to a 'follow the talker' video mode.
Further work can be done to add routes that allow for the video mode to
be controlled through the /bridges resource.

Change-Id: I7e9d530a5d7a97a4524a9ee4e468e1a6b3443866
---
M res/res_stasis.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved



diff --git a/res/res_stasis.c b/res/res_stasis.c
index 1183f67..b7599ec 100644
--- a/res/res_stasis.c
+++ b/res/res_stasis.c
@@ -798,6 +798,7 @@
 
 	bridge = bridge_stasis_new(capabilities, flags, name, id);
 	if (bridge) {
+		ast_bridge_set_talker_src_video_mode(bridge);
 		if (!ao2_link(app_bridges, bridge)) {
 			ast_bridge_destroy(bridge, 0);
 			bridge = NULL;

-- 
To view, visit https://gerrit.asterisk.org/4312
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7e9d530a5d7a97a4524a9ee4e468e1a6b3443866
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>



More information about the asterisk-code-review mailing list