Class: Vonage::Video::Moderation
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Video::Moderation
- Defined in:
- lib/vonage/video/moderation.rb
Instance Method Summary collapse
-
#force_disconnect(session_id:, connection_id:) ⇒ Response
Force a client to disconnect from a session.
-
#mute_multiple_streams(session_id:, **params) ⇒ Response
Force mute all publisher stream for a specific session.
-
#mute_single_stream(session_id:, stream_id:) ⇒ Response
Force mute a specific publisher stream in a session.
Instance Method Details
#force_disconnect(session_id:, connection_id:) ⇒ Response
Force a client to disconnect from a session.
22 23 24 |
# File 'lib/vonage/video/moderation.rb', line 22 def force_disconnect(session_id:, connection_id:) request('/v2/project/' + @config.application_id + '/session/' + session_id + '/connection/' + connection_id, type: Delete) end |
#mute_multiple_streams(session_id:, **params) ⇒ Response
Force mute all publisher stream for a specific session.
52 53 54 |
# File 'lib/vonage/video/moderation.rb', line 52 def mute_multiple_streams(session_id:, **params) request('/v2/project/' + @config.application_id + '/session/' + session_id + '/mute', params: params, type: Post) end |
#mute_single_stream(session_id:, stream_id:) ⇒ Response
Force mute a specific publisher stream in a session.
36 37 38 |
# File 'lib/vonage/video/moderation.rb', line 36 def mute_single_stream(session_id:, stream_id:) request('/v2/project/' + @config.application_id + '/session/' + session_id + '/stream/' + stream_id + '/mute', type: Post) end |