I'm writing an app that uses
- (void) captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection;
to grab video frames and analyze them on the fly. I'd like to be able to test this feature in the iOs simulator, b开发者_JAVA百科ut I can't figure out how to use a video file as an input to an AVCaptureSession. Is that possible?
Afaik you need a real device to test functions related to the camera. I'm not completely sure about it, but I use my iPod touch 4th gen for these kind of things.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论