标签: ios swift camera sceneview
我正在开发应使用camera preview作为SceneView背景的应用程序。我正在尝试这样设置它:
camera preview
SceneView
scene.background.contents = AVCaptureDevice.default(for: .video)!
应用程序已授予使用相机的权限。 但是视频没有显示,在控制台中,我看到了:
[SceneKit] Error: Could not get pixel buffer (CVPixelBufferRef)
这可能是什么原因?