Sha256: 542457b0a9b2dd36c153bea2e34059d508b83b15ef3265546ce21d3727587385
Contents?: true
Size: 607 Bytes
Versions: 15
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true module Lolcommits class CaptureMacVideo < Capturer def capture system_call "#{executable_path} -p 640x480 #{capture_device_string}#{capture_delay_string}-t #{capture_duration} --no-audio \"#{capture_path}\" > /dev/null" end private def capture_device_string "-d \"#{capture_device}\" " if capture_device end def capture_delay_string "-w \"#{capture_delay}\" " if capture_delay.positive? end def executable_path File.join(Configuration::LOLCOMMITS_ROOT, 'vendor', 'ext', 'videosnap', 'videosnap') end end end
Version data entries
15 entries across 15 versions & 1 rubygems