Skip to content
This repository was archived by the owner on Jan 18, 2020. It is now read-only.

Commit 07af5ef

Browse files
Preferred audio codec (#170)
* Update preferred audio codec guide * s/preferAudioCodecs/preferredAudioCodecs
1 parent a38e8da commit 07af5ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Docs/new-features-3.0.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,14 @@ TVOCall *call = [TwilioVoice connectWithOptions:connectOptions delegate:self];
131131
```
132132

133133
### <a name="preferred-audio-codec"></a>Preferred Audio Codec
134-
In Voice iOS 3.0, you can provide your preferred audio codec in the `TVOConnectOptions` and the `TVOAcceptOptions`.
135-
The only audio codec supported by our mobile infrastructure is currently PCMU. Opus is not currently available on our mobile infrastructure. However it will become available in Q1 of 2019. At that point the default audio codec for all 3.0 mobile clients will be Opus. To always use PCMU as the negotiated audio codec instead you can add it as the first codec in the `preferAudioCodecs` list.
134+
You can provide your preferred audio codecs in the `TVOConnectOptions` and the `TVOAcceptOptions`. Opus is the default codec used by the mobile infrastructure. To use PCMU as the negotiated audio codec instead of Opus you can add it as the first codec in the `preferredAudioCodecs` list.
136135

137136
```.objc
138137
#import "TVOAudioCodec.h"
139138
140139
TVOConnectOptions *options = [TVOConnectOptions optionsWithAccessToken:accessToken
141140
block:^(TVOConnectOptionsBuilder *builder) {
142-
builder.preferredAudioCodecs = @[ [TVOOpusCodec new], [TVOPcmuCodec new] ];
141+
builder.preferredAudioCodecs = @[ [TVOPcmuCodec new], [TVOOpusCodec new] ];
143142
}];
144143
145144
self.call = [TwilioVoice connectWithOptions:options delegate:self];

0 commit comments

Comments
 (0)