embed live camera view inside a UIView

后端 未结 1 1659
青春惊慌失措
青春惊慌失措 2020-12-29 12:19

I\'ve been trying to figure out how to embed a small(ish) live camera view inside of an iPhone\'s UIView to no avail.
I have not even been able to find any

相关标签:
1条回答
  • 2020-12-29 13:11

    For your purpose you need to use AVFoundation, specifically look at AVCaptureSession , AVCaptureDeviceInput, which you can use in order to get access to the cameras and look into AVCaptureVideoPreviewLayer which will allow you to draw the camera input to the screen, everything you need is in there..

    0 讨论(0)
提交回复
热议问题