开发者

How to simulate video input in the iOs simulator?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜