Class: Vonage::Video::Moderation

Inherits:
Namespace
  • Object
show all
Defined in:
lib/vonage/video/moderation.rb

Instance Method Summary collapse

Instance Method Details

#force_disconnect(session_id:, connection_id:) ⇒ Response

Force a client to disconnect from a session.

Parameters:

  • :session_id (required, String)
  • :connection_id (required, String)

    The connection ID of the specific participant to be disconnected from the session.

Returns:

See Also:

  • add docs link


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.

Parameters:

  • :session_id (required, String)
  • :active (required, String)
  • :excludedStreamIds (required, Array<String>)

Returns:

See Also:

  • add docs link


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.

Parameters:

  • :session_id (required, String)
  • :stream_id (required, String)

    The stream ID of the specific stream to be muted.

Returns:

See Also:

  • add docs link


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