Skip to content

Instantly share code, notes, and snippets.

@JonasNielsen
Created June 27, 2013 04:36
Show Gist options
  • Save JonasNielsen/5873989 to your computer and use it in GitHub Desktop.
Save JonasNielsen/5873989 to your computer and use it in GitHub Desktop.
# setup inputs
file_output = AVCaptureMovieFileOutput.alloc.init
# [Add recording session input to file_output]
file_output.startRecordingToOutputFileURL(@file_url, recordingDelegate: self)
# Stream data from file while recording to it
input_stream = NSInputStream.inputStreamWithFileAtPath(@file_url)
input_stream.setDelegate(self)
input_stream.scheduleInRunLoop(NSRunLoop.currentRunLoop, forMode:NSDefaultRunLoopMode)
input_stream.open
@JonasNielsen
Copy link
Author

RubyMotion code is compiled to Obj-c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment