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”.
116 117 118 |
# File 'lib/vonage/video/archives.rb', line 116 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.
148 149 150 |
# File 'lib/vonage/video/archives.rb', line 148 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.
98 99 100 |
# File 'lib/vonage/video/archives.rb', line 98 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”.
130 131 132 |
# File 'lib/vonage/video/archives.rb', line 130 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.
74 75 76 |
# File 'lib/vonage/video/archives.rb', line 74 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.
86 87 88 |
# File 'lib/vonage/video/archives.rb', line 86 def stop(archive_id:) request('/v2/project/' + @config.application_id + '/archive/' + archive_id + '/stop', type: Post) end |