Class: AVCapture::StillImageOutput

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

Instance Method Summary collapse

Instance Method Details

#capture_on(connection) ⇒ Object



39
40
41
# File 'lib/av_capture.rb', line 39

def capture_on connection
  ImagePromise.new IO.new capture_still_image connection
end

#video_connectionObject



35
36
37
# File 'lib/av_capture.rb', line 35

def video_connection
  connect AVCapture::AVMediaTypeVideo
end