Please file a bug at bugreport.apple.com, so we can formally track
these issues, although we have been unable to reproduce the first
issue so far (all five code variations appear to log errors in the
will/didFinishRecording delegate methods).
With regard to the second issue, by design. the will/didStartRecording
methods are not called until the file output actually starts writing
samples to disk. If no samples ever come through the capture session
before recording stops (either explicitly or due to an error), those
methods are skipped. We will look into clarifying that behavior in the
documentation.
QTCaptureSessionRuntimeErrorNotification is posted under relatively
rare circumstances that prevent any capturing from functioning, such
as when there is not enough bandwidth on the USB or Firewire bus to
start a stream.
Finally, although this is not directly related to the issues that you
have run into, you can independently track the state of the external
iSight lens cover using the QTCaptureDeviceSuspendedAttribute for that
device.
This project shows two major bugs:
1) QTKit Capture can silently fail
2) Some delegate methods are NEVER EVER called
To reproduce #1, grab an external iSight (this is what I'm testing
with) and cover the lens using the internal lens cap. Look in the
code and switch between the five versions of code at the end of
startRecording in SimpleAudioRecorder. Version 4 and 5 will silently
fail (will not report an error to the log).
To reproduce #2, just run any version of this code. The
QTCaptureFileOutput delegate methods for will/didStartRecording are
never ever called.
--
Seth Willits
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden