Class: Vonage::Video::Captions
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Video::Captions
- Defined in:
- lib/vonage/video/captions.rb
Instance Method Summary collapse
-
#start(session_id:, token:, **params) ⇒ Response
Start Live Captions for a Vonage Video stream.
-
#stop(captions_id:) ⇒ Response
Stop live captions for a session.
Instance Method Details
#start(session_id:, token:, **params) ⇒ Response
Start Live Captions for a Vonage Video stream
45 46 47 48 49 50 |
# File 'lib/vonage/video/captions.rb', line 45 def start(session_id:, token:, **params) request( '/v2/project/' + @config.application_id + '/captions', params: camelcase(params.merge({sessionId: session_id, token: token})), type: Post) end |
#stop(captions_id:) ⇒ Response
Stop live captions for a session
63 64 65 |
# File 'lib/vonage/video/captions.rb', line 63 def stop(captions_id:) request('/v2/project/' + @config.application_id + '/captions/' + + '/stop', type: Post) end |