2016-11-25 36 views
1

iOS的全屏幕相機,我很期運用AVCaptureSession錄製的視頻,當我設置SessionPreset到Meduim相機對整個區域不appeare,從頂部和底部的意思是它空着spcae。 iattached樣本屏幕截圖,有沒有什麼辦法,以顯示凸輪全屏/與AVCaptureSessionPresetMedium充滿整個屏幕!與AVCaptureSessionPresetMedium

ScreenShot of current view with AVCaptureSessionPresetMedium

+0

請與我們分享您的代碼。 –

+0

我在這裏使用的是Apple示例代碼的鏈接(https://developer.apple.com/library/content/samplecode/AVCam/Listings/Objective_C_AVCam_main_m.html) –

回答

0

我覺得沒有辦法使用AVCaptureSessionPresetMedium有全屏。 我想這是關係到一個事實,即AVCaptureSessionPresetMedium不會給你很高的質量,同時具有中等質量不能得到一個完整的畫面。

如果你真的需要有攝像頭全屏,切換到AVCaptureSessionPresetHigh