AVCaptureFileOutput fails silently when given an invalid path
Originator: | allen.wu | ||
Number: | rdar://21518229 | Date Originated: | 23-Jun-2015 09:07 PM |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | iOS 8.3 [12F70] |
Classification: | Reproducible: | Always |
Summary: When calling -startRecordingToOutputFileURL:recordingDelegate: with an invalid file URL, no exception is thrown. According to the documentation: @param outputFileURL An NSURL object containing the URL of the output file. This method throws an NSInvalidArgumentException if the URL is not a valid file URL. Steps to Reproduce: 1. With a valid AVCaptureMovieFileOutput object, call -startRecordingToOutputFileURL:recordingDelegate: with an invalid file path (i.e. a path that doesn't exist). Expected Results: NSInvalidArgumentException should be thrown after calling -startRecordingToOutputFileURL:recordingDelegate: with a URL that doesn't exist. Actual Results: No exception is thrown, making it difficult to debug what went wrong in video capturing. Version: iOS 8.3 [12F70] Notes: Configuration: iPhone 6, iPhone 5C Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!