Class: Vonage::Voice::Stream
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Voice::Stream
- Defined in:
- lib/vonage/voice/stream.rb
Instance Method Summary collapse
-
#start(id, params) ⇒ Response
Play an audio file into a call.
-
#stop(id) ⇒ Response
Stop playing an audio file into a call.
Instance Method Details
#start(id, params) ⇒ Response
Play an audio file into a call.
28 29 30 |
# File 'lib/vonage/voice/stream.rb', line 28 def start(id, params) request('/v1/calls/' + id + '/stream', params: params, type: Put) end |
#stop(id) ⇒ Response
Stop playing an audio file into a call.
40 41 42 |
# File 'lib/vonage/voice/stream.rb', line 40 def stop(id) request('/v1/calls/' + id + '/stream', type: Delete) end |