Syntax updated.
This commit is contained in:
parent
ee971a0a59
commit
151637eb32
|
|
@ -34,7 +34,7 @@
|
|||
<key>IDESourceControlWCCIdentifierKey</key>
|
||||
<string>E1D0A3AE6B49B031DF6A25973E5414F28D2A575A</string>
|
||||
<key>IDESourceControlWCCName</key>
|
||||
<string>camera</string>
|
||||
<string>CameraManager</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -199,15 +199,15 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate {
|
|||
private var _cameraOutputQuality = CameraOutputQuality.High
|
||||
|
||||
private var tempFilePath: NSURL = {
|
||||
let tempPath = NSTemporaryDirectory().stringByAppendingPathComponent("tempMovie").stringByAppendingPathExtension("mp4")
|
||||
if NSFileManager.defaultManager().fileExistsAtPath(tempPath!) {
|
||||
let tempPath = NSURL(fileURLWithPath: NSTemporaryDirectory()).URLByAppendingPathComponent("tempMovie").URLByAppendingPathExtension("mp4").absoluteString
|
||||
if NSFileManager.defaultManager().fileExistsAtPath(tempPath) {
|
||||
do {
|
||||
try NSFileManager.defaultManager().removeItemAtPath(tempPath!)
|
||||
try NSFileManager.defaultManager().removeItemAtPath(tempPath)
|
||||
} catch {
|
||||
|
||||
}
|
||||
}
|
||||
return NSURL(fileURLWithPath: tempPath!)
|
||||
return NSURL(fileURLWithPath: tempPath)
|
||||
}()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue