Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动崩溃 #25

Open
AssassinrKiller opened this issue Oct 13, 2016 · 1 comment
Open

启动崩溃 #25

AssassinrKiller opened this issue Oct 13, 2016 · 1 comment

Comments

@AssassinrKiller
Copy link

卡在设置分辨率的那句代码!_captureSession.sessionPreset=AVCaptureSessionPreset1280x720;

@LovePeach
Copy link

//将设备输出添加到会话中
if ([_captureSession canAddOutput:_captureMovieFileOutput]) {
[_captureSession addOutput:_captureMovieFileOutput];
}
//保证下面的代码 在上段代码的下面 (fixed)
if ([_captureSession canSetSessionPreset:AVCaptureSessionPreset1280x720]) {
_captureSession.sessionPreset=AVCaptureSessionPreset1280x720;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants