Module: WebVideo

Defined in:
lib/web_video.rb,
lib/web_video/tools.rb,
lib/web_video/stream.rb,
lib/web_video/version.rb,
lib/web_video/transcoder.rb,
lib/web_video/adapters/ffmpeg_adapter.rb,
lib/web_video/adapters/abstract_adapter.rb

Defined Under Namespace

Modules: Adapters, Tools Classes: CommandLineError, Error, Stream, Transcoder

Constant Summary collapse

VERSION =
"1.2.0".freeze

Class Method Summary collapse

Class Method Details

.loggerObject

WebVideo.logger.info ‘Demo convert’



17
18
19
# File 'lib/web_video.rb', line 17

def self.logger
  @logger ||= Logger.new('/dev/null')
end

.logger=(value) ⇒ Object

Configure logging. Pass a valid Ruby logger object.

logger = Logger.new(STDOUT)
WebVideo.logger = logger


27
28
29
# File 'lib/web_video.rb', line 27

def self.logger=(value)
  @logger = value
end