Class: Vonage::Video::Archives
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Video::Archives
- Defined in:
- lib/vonage/video/archives.rb
Defined Under Namespace
Classes: ListResponse
Instance Method Summary collapse
-
#add_stream(archive_id:, stream_id:, **params) ⇒ Response
Add a stream to a composed archive that was started with the streamMode set to "manual".
-
#change_layout(archive_id:, **params) ⇒ Response
Change the layout of a composed archive while it is being recorded.
-
#delete(archive_id:) ⇒ Response
Delete a specified archive.
-
#info(archive_id:) ⇒ Response
Return information for specified archive.
-
#list(**params) ⇒ ListResponse
Get a list of archives for a specified Vonage application.
-
#remove_stream(archive_id:, stream_id:) ⇒ Response
Remove a stream from a composed archive that was started with the streamMode set to "manual".
-
#start(session_id:, **params) ⇒ Response
Create a new archive.
-
#stop(archive_id:) ⇒ Response
Stop recording a specified archive.
Instance Method Details
#add_stream(archive_id:, stream_id:, **params) ⇒ Response
Add a stream to a composed archive that was started with the streamMode set to "manual".
118 119 120 |
# File 'lib/vonage/video/archives.rb', line 118 def add_stream(archive_id:, stream_id:, **params) request('/v2/project/' + @config.application_id + '/archive/' + archive_id + '/streams', params: camelcase(params.merge(addStream: stream_id)), type: Patch) end |
#change_layout(archive_id:, **params) ⇒ Response
Change the layout of a composed archive while it is being recorded.
150 151 152 |
# File 'lib/vonage/video/archives.rb', line 150 def change_layout(archive_id:, **params) request('/v2/project/' + @config.application_id + '/archive/' + archive_id + '/layout', params: camelcase(params), type: Put) end |
#delete(archive_id:) ⇒ Response
Delete a specified archive.
100 101 102 |
# File 'lib/vonage/video/archives.rb', line 100 def delete(archive_id:) request('/v2/project/' + @config.application_id + '/archive/' + archive_id, type: Delete) end |
#info(archive_id:) ⇒ Response
Return information for specified archive.
40 41 42 |
# File 'lib/vonage/video/archives.rb', line 40 def info(archive_id:) request('/v2/project/' + @config.application_id + '/archive/' + archive_id) end |
#list(**params) ⇒ ListResponse
Get a list of archives for a specified Vonage application.
TODO: add auto_advance option
28 29 30 |
# File 'lib/vonage/video/archives.rb', line 28 def list(**params) request('/v2/project/' + @config.application_id + '/archive', params: params, response_class: ListResponse) end |
#remove_stream(archive_id:, stream_id:) ⇒ Response
Remove a stream from a composed archive that was started with the streamMode set to "manual".
132 133 134 |
# File 'lib/vonage/video/archives.rb', line 132 def remove_stream(archive_id:, stream_id:) request('/v2/project/' + @config.application_id + '/archive/' + archive_id + '/streams', params: {removeStream: stream_id}, type: Patch) end |
#start(session_id:, **params) ⇒ Response
Create a new archive.
76 77 78 |
# File 'lib/vonage/video/archives.rb', line 76 def start(session_id:, **params) request('/v2/project/' + @config.application_id + '/archive', params: camelcase(params.merge(session_id: session_id)), type: Post) end |
#stop(archive_id:) ⇒ Response
Stop recording a specified archive.
88 89 90 |
# File 'lib/vonage/video/archives.rb', line 88 def stop(archive_id:) request('/v2/project/' + @config.application_id + '/archive/' + archive_id + '/stop', type: Post) end |