]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/ari/resource_bridges: Add the ability to manipulate the video source 28/4428/2
authorMatt Jordan <mjordan@digium.com>
Tue, 8 Nov 2016 16:11:41 +0000 (10:11 -0600)
committerMatt Jordan <mjordan@digium.com>
Mon, 14 Nov 2016 21:56:45 +0000 (15:56 -0600)
commit62cbcb2e5423cae87e0f84d5e229531b088933b5
tree2707ddf66e052b601f07412ae581b00ee2afd7aa
parentcc4a2c8c765cf2ebf94096546e1254bb786cad18
res/ari/resource_bridges: Add the ability to manipulate the video source

In multi-party bridges, Asterisk currently supports two video modes:
 * Follow the talker, in which the speaker with the most energy is shown
   to all participants but the speaker, and the speaker sees the
   previous video source
 * Explicitly set video sources, in which all participants see a locked
   video source

Prior to this patch, ARI had no ability to manipulate the video source.
This isn't important for two-party bridges, in which Asterisk merely
relays the video between the participants. However, in a multi-party
bridge, it can be advantageous to allow an external application to
manipulate the video source.

This patch provides two new routes to accomplish this:
(1) setVideoSource: POST /bridges/{bridgeId}/videoSource/{channelId}
    Sets a video source to an explicit channel
(2) clearVideoSource: DELETE /bridges/{bridgeId}/videoSource
    Removes any explicit video source, and sets the video mode to talk
    detection

ASTERISK-26595 #close

Change-Id: I98e455d5bffc08ea5e8d6b84ccaf063c714e6621
15 files changed:
CHANGES
doc/appdocsxml.xslt
include/asterisk/bridge.h
include/asterisk/stasis_bridges.h
main/bridge.c
main/manager_bridges.c
main/stasis_bridges.c
res/ari/ari_model_validators.c
res/ari/ari_model_validators.h
res/ari/resource_bridges.c
res/ari/resource_bridges.h
res/res_ari_bridges.c
res/stasis/app.c
rest-api/api-docs/bridges.json
rest-api/api-docs/events.json