diff --git a/Examples/ObjC/Sources/SCRecorderExamples-Info.plist b/Examples/ObjC/Sources/SCRecorderExamples-Info.plist index 0dc207c7..007fb247 100644 --- a/Examples/ObjC/Sources/SCRecorderExamples-Info.plist +++ b/Examples/ObjC/Sources/SCRecorderExamples-Info.plist @@ -24,6 +24,10 @@ 1.0 LSRequiresIPhoneOS + NSCameraUsageDescription + 使用相机 + NSMicrophoneUsageDescription + 使用麦克风 UILaunchStoryboardName Launch Screen UIMainStoryboardFile diff --git a/Library/Sources/SCRecorder.m b/Library/Sources/SCRecorder.m index efb68603..dc3f561e 100644 --- a/Library/Sources/SCRecorder.m +++ b/Library/Sources/SCRecorder.m @@ -91,8 +91,7 @@ - (id)init { [_videoConfiguration addObserver:self forKeyPath:@"enabled" options:NSKeyValueObservingOptionNew context:SCRecorderVideoEnabledContext]; [_audioConfiguration addObserver:self forKeyPath:@"enabled" options:NSKeyValueObservingOptionNew context:SCRecorderAudioEnabledContext]; [_photoConfiguration addObserver:self forKeyPath:@"options" options:NSKeyValueObservingOptionNew context:SCRecorderPhotoOptionsContext]; - - _context = [SCContext new].CIContext; + _context = [SCContext contextWithType:SCContextTypeAuto options:nil].CIContext; } return self;