Class: AVCapture::Session::Capture

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

Instance Method Summary collapse

Constructor Details

#initialize(output, connection) ⇒ Capture

Returns a new instance of Capture.



46
47
48
49
# File 'lib/av_capture.rb', line 46

def initialize output, connection
  @output     = output
  @connection = connection
end

Instance Method Details

#captureObject



51
52
53
# File 'lib/av_capture.rb', line 51

def capture
  @output.capture_on(@connection).data
end