Skip to content

Commit

Permalink
0.1.8 关闭自动旋转和修复声音预览
Browse files Browse the repository at this point in the history
  • Loading branch information
yangqingren committed Nov 28, 2018
1 parent 2f7a320 commit a513fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion QRVideoRecord.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'QRVideoRecord'
s.version = '0.1.7'
s.version = '0.1.8'
s.summary = 'video recording component. 视频录制'

# This description is used to generate tags and improve search results.
Expand Down
3 changes: 2 additions & 1 deletion QRVideoRecord/Classes/QRVideoRecordViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ - (void)configRecorder {
_recorder.captureSessionPreset = [SCRecorderTools bestCaptureSessionPresetCompatibleWithAllDevices];
_recorder.maxRecordDuration = CMTimeMake(30 * _videoMaxTime, 30);
_recorder.delegate = self;
_recorder.autoSetVideoOrientation = YES;
_recorder.autoSetVideoOrientation = NO;
_recorder.initializeSessionLazily = NO;
_recorder.previewView = self.scanPreviewView;

Expand Down Expand Up @@ -397,6 +397,7 @@ - (void)saveCapture {
void(^completionHandler)(NSURL *url, NSError *error) = ^(NSURL *url, NSError *error) {
if (error == nil) {
[MBProgressHUD hideHUDForView:self.view animated:YES];
[self removePreviewMode];
[self doNextWhenVideoSavedSuccess];
} else {
[MBProgressHUD hideHUDForView:self.view animated:YES];
Expand Down

0 comments on commit a513fca

Please sign in to comment.