Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: QTKit Capture Bugs: Delegate Methods Not Called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTKit Capture Bugs: Delegate Methods Not Called



Hi Seth.

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.

Thanks for your help.

David Underwood
QuickTime Engineering

On Feb 26, 2008, at 3:40 PM, Seth Willits wrote:

I put together an example project that shows how QTKit Capture can silently fail, and how it also does not tell you that movies start recording.
http://www.araelium.com/screenflick/downloads/temp/QTKitCaptureFailure.zip



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
References: 
 >QTKit Capture Bugs: Delegate Methods Not Called (From: Seth Willits <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.