lib/ffmpeg/recorder_options.rb
#
# Returns capture device based on user given value or the current OS.
#
Returns capture device based on user given value or the current OS.
Returns capture device based on user given value or the current OS .
def determine_capture_device
      return @options[:format] if @options[:format]
      if OS.windows?
        'gdigrab'
      elsif OS.linux?
        'x11grab'
      elsif OS.mac?
        'avfoundation'
      else
        raise NotImplementedError, 'Your OS is not supported.'
      end
    end
def determine_capture_device return @options [ :format ] if @options [ :format ] if OS . windows? 'gdigrab' elsif OS . linux? 'x11grab' elsif OS . mac? 'avfoundation' else raise NotImplementedError , 'Your OS is not supported.' end end
Returns capture device based on user given value or the current OS.
Returns capture device based on user given value or the current OS .