Sha256: afcd8465a012aaeb1bcea1db5f294b0af6bf2d2907842aef11dc3512917d642d
Contents?: true
Size: 831 Bytes
Versions: 4
Compression:
Stored size: 831 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 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
4 entries across 4 versions & 1 rubygems