开发者

How to simulate video input in the iOs simulator?

开发者 https://www.devze.com 2023-02-28 05:05 出处:网络
I\'m writing an app that uses - (void) captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection;

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消