Method: Vonage::Video::Streams#change_layout

Defined in:
lib/vonage/video/streams.rb

#change_layout(session_id:, **params) ⇒ Response

Change the layout for a list of specified streams.

Parameters:

  • :application_id (optional, String)

    (Required unless already set at Client instantiation or set in ENV)

  • :session_id (required, String)
  • :items (optional, Array<Hash>)

    An array of hashes representing streams and the layout classes for those streams

  • items (Hash)

    a customizable set of options

Returns:

See Also:

  • add docs link


61
62
63
64
65
66
67
68
# File 'lib/vonage/video/streams.rb', line 61

def change_layout(session_id:, **params)
  # TODO camelcase layout_class_list
  # if params[:items]
  #   params[:items] = params[:items].map {|item| camelcase(item)}
  # end

  request('/v2/project/' + @config.application_id + '/session/' + session_id + '/stream', params: params, type: Put)
end