Sha256: feab38651953e9b4111ab5eee7504f01f8a5ae1a54364e52b2095abe4c96b32a
Contents?: true
Size: 836 Bytes
Versions: 1
Compression:
Stored size: 836 Bytes
Contents
# encoding: utf-8 module Adhearsion class CallController module Output class Player < AbstractPlayer # # @yields The output component before executing it # @raises [PlaybackError] if (one of) the given argument(s) could not be played # def output(content, options = {}, &block) options.merge! :ssml => content.to_s component = new_output options if block controller.execute_component_and_await_completion component, &block else controller.execute_component_and_await_completion component end rescue Call::Hangup raise rescue Adhearsion::Error, Punchblock::ProtocolError => e raise PlaybackError, "Output failed due to #{e.inspect}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adhearsion-2.3.5 | lib/adhearsion/call_controller/output/player.rb |