Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发应该camera preview用作背景的应用程序SceneView。我正在尝试这样设置:
camera preview
SceneView
scene.background.contents = AVCaptureDevice.default(for: .video)!
应用程序已授予使用相机的权限。但是视频没有显示,在控制台中我看到:
[SceneKit] Error: Could not get pixel buffer (CVPixelBufferRef)
这可能是什么原因?