Created
June 27, 2013 04:36
-
-
Save JonasNielsen/5873989 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RubyMotion code is compiled to Obj-c