Class: AVCapture::Device

Inherits:
Object
  • Object
show all
Defined in:
lib/av_capture.rb

Instance Method Summary collapse

Instance Method Details

#as_inputObject



12
13
14
# File 'lib/av_capture.rb', line 12

def as_input
  AVCapture::DeviceInput.new self
end

#video?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/av_capture.rb', line 8

def video?
  has_media_type? AVCapture::AVMediaTypeVideo
end