diff options
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/bridge.h | 8 | ||||
-rw-r--r-- | include/asterisk/stream.h | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/asterisk/bridge.h b/include/asterisk/bridge.h index a9b01a6bb..6915af28b 100644 --- a/include/asterisk/bridge.h +++ b/include/asterisk/bridge.h @@ -102,6 +102,10 @@ enum ast_bridge_video_mode_type { /*! A single user's video feed is distributed to all bridge channels, but * that feed is automatically picked based on who is talking the most. */ AST_BRIDGE_VIDEO_MODE_TALKER_SRC, + /*! Operate as a selective forwarding unit. Video from each participant is + * cloned to a dedicated stream on a subset of the remaining participants. + */ + AST_BRIDGE_VIDEO_MODE_SFU, }; /*! \brief This is used for both SINGLE_SRC mode to set what channel @@ -267,6 +271,8 @@ struct ast_bridge_softmix { unsigned int binaural_active; }; +AST_LIST_HEAD_NOLOCK(ast_bridge_channels_list, ast_bridge_channel); + /*! * \brief Structure that contains information about a bridge */ @@ -284,7 +290,7 @@ struct ast_bridge { /*! Call ID associated with the bridge */ ast_callid callid; /*! Linked list of channels participating in the bridge */ - AST_LIST_HEAD_NOLOCK(, ast_bridge_channel) channels; + struct ast_bridge_channels_list channels; /*! Queue of actions to perform on the bridge. */ AST_LIST_HEAD_NOLOCK(, ast_frame) action_queue; /*! Softmix technology parameters. */ diff --git a/include/asterisk/stream.h b/include/asterisk/stream.h index b453ab9c3..fcee3e47b 100644 --- a/include/asterisk/stream.h +++ b/include/asterisk/stream.h @@ -121,6 +121,7 @@ void ast_stream_free(struct ast_stream *stream); * \brief Create a deep clone of an existing stream * * \param stream The existing stream + * \param Optional name for cloned stream. If NULL, then existing stream's name is copied. * * \retval non-NULL success * \retval NULL failure @@ -130,7 +131,7 @@ void ast_stream_free(struct ast_stream *stream); * * \since 15 */ -struct ast_stream *ast_stream_clone(const struct ast_stream *stream); +struct ast_stream *ast_stream_clone(const struct ast_stream *stream, const char *name); /*! * \brief Get the name of a stream |