Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #171 from zoff99/zoff99/av_tweaks_001
Browse files Browse the repository at this point in the history
A/V Tweaks for 3g connections
  • Loading branch information
dvor authored Sep 24, 2017
2 parents 14dd4d2 + 6c3ea25 commit 480a886
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#import "OCTTox.h"

const OCTToxAVAudioBitRate kDefaultAudioBitRate = OCTToxAVAudioBitRate48;
const OCTToxAVVideoBitRate kDefaultVideoBitRate = 2000;
const OCTToxAVVideoBitRate kDefaultVideoBitRate = 2500;

@interface OCTSubmanagerCallsImpl () <OCTToxAVDelegate>

Expand Down
5 changes: 5 additions & 0 deletions Classes/Private/Manager/Video/OCTVideoEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ - (instancetype)init
#if ! TARGET_OS_SIMULATOR
_captureSession = [AVCaptureSession new];
_captureSession.sessionPreset = AVCaptureSessionPresetMedium;

if ([_captureSession canSetSessionPreset:AVCaptureSessionPreset640x480])
{
_captureSession.sessionPreset = AVCaptureSessionPreset640x480;
}
#endif

_dataOutput = [AVCaptureVideoDataOutput new];
Expand Down

0 comments on commit 480a886

Please sign in to comment.