Class: Vonage::Video::Renders
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Video::Renders
- Defined in:
- lib/vonage/video/renders.rb
Defined Under Namespace
Classes: ListResponse
Instance Method Summary collapse
-
#info(experience_composer_id:) ⇒ Response
Get information about an Experience Composer session.
-
#list(**params) ⇒ Video::Renders::ListResponse
List all Experience Composer renders in an application.
-
#start(session_id:, token:, url:, **params) ⇒ Response
Start an Experience Composer Render.
-
#stop(experience_composer_id:) ⇒ Response
Stop an Experience Composer render.
Instance Method Details
#info(experience_composer_id:) ⇒ Response
Get information about an Experience Composer session
83 84 85 |
# File 'lib/vonage/video/renders.rb', line 83 def info(experience_composer_id:) request('/v2/project/' + @config.application_id + '/render/' + experience_composer_id) end |
#list(**params) ⇒ Video::Renders::ListResponse
List all Experience Composer renders in an application
100 101 102 103 104 105 |
# File 'lib/vonage/video/renders.rb', line 100 def list(**params) path = '/v2/project/' + @config.application_id + '/render' path += "?#{Params.encode(camelcase(params))}" unless params.empty? request(path, response_class: ListResponse) end |
#start(session_id:, token:, url:, **params) ⇒ Response
Start an Experience Composer Render
50 51 52 53 54 55 |
# File 'lib/vonage/video/renders.rb', line 50 def start(session_id:, token:, url:, **params) request( '/v2/project/' + @config.application_id + '/render', params: camelcase(params.merge({sessionId: session_id, token: token, url: url})), type: Post) end |
#stop(experience_composer_id:) ⇒ Response
Stop an Experience Composer render
68 69 70 |
# File 'lib/vonage/video/renders.rb', line 68 def stop(experience_composer_id:) request('/v2/project/' + @config.application_id + '/render/' + experience_composer_id, type: Delete) end |