I have a mac app that writes camera data to a file then uploads that file on an [NSTimer] to a server. However, after the camera runs for a while it closes itself and I see this in the log: * QTCaptureDeviceInput warning: The device "FaceTime HD Camera (Built-in)" was closed while still being used in a capture session. Make sure that the session is not running before closing any devices it is using.
没有任何其他可使用照相机进行测试,而该装置的物体则由我释放。 我已经呼吁保留否决权,以防这种情况无用。
我看着 Apple果的docs,我发现,我没有谈到这个系统正在关闭的照相机,这样会造成这种情况。 与此同时,我有一些守则定期检查,如果是开放的,如果是没有的话。
One thing I forgot I am using this notification and it is being fired: QTCaptureDeviceWasDisconnectedNotification