2016-07-30 138 views
0

我一直在尝试后视频服务器:TokBox API视频分辨率问题

_capturePreset = AVCaptureSessionPresetHigh; 
[[self class] dimensionsForCapturePreset:_capturePreset 
            width:&_captureWidth 
            height:&_captureHeight]; 
_capture_queue = dispatch_queue_create("com.tokbox.OTVideoCapture", 
               DISPATCH_QUEUE_SERIAL); 
_videoFrame = [[OTVideoFrame alloc] initWithFormat:[OTVideoFormat videoFormatNV12WithWidth:screenWidth 
                 height:screenHeight]]; 

我想捕捉的屏幕分辨率同样当视频记录设备上但它返回640 *总是480。可以告诉如何设置所需的分辨率以便从服务器录制和归档视频?

回答