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

A/V Tweaks for 3g connections #171

Merged
merged 2 commits into from
Sep 24, 2017
Merged

A/V Tweaks for 3g connections #171

merged 2 commits into from
Sep 24, 2017

Conversation

zoff99
Copy link
Contributor

@zoff99 zoff99 commented Sep 21, 2017

No description provided.

2500 seems to make worse quality, but the video works more reliable on 3g connections
this will ensure that video will work more reliable on 3g connections
@zoff99
Copy link
Contributor Author

zoff99 commented Sep 21, 2017

@@ -7,7 +7,7 @@
#import "OCTTox.h"

const OCTToxAVAudioBitRate kDefaultAudioBitRate = OCTToxAVAudioBitRate48;
const OCTToxAVVideoBitRate kDefaultVideoBitRate = 2000;
const OCTToxAVVideoBitRate kDefaultVideoBitRate = 2500;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is OK as default options, since in my opinion most iPhone users will be on 3g network.

but later this should be a user changeable setting:

2500 -> for 3g
500 -> for Wifi (or strong LTE network)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess app should change this parameter itself based on connection type.


if ([_captureSession canSetSessionPreset:AVCaptureSessionPreset640x480])
{
_captureSession.sessionPreset = AVCaptureSessionPreset640x480;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, GitHub has confusing review interface, my comment was removed. Anyway, let's try 640x480 for now, I'll play with other options later.

@dvor dvor merged commit 480a886 into Antidote-for-Tox:master Sep 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants