public static class AcceptOptions.Builder extends CallOptions.Builder
Constructor and Description |
---|
Builder()
Use this Builder when accepting a
CallInvite |
Modifier and Type | Method and Description |
---|---|
AcceptOptions |
build()
Builds
AcceptOptions object. |
AcceptOptions.Builder |
enableDscp(boolean enable)
Enable Differentiated Services Field Code Point (DSCP) with Expedited Forwarding (EF).
|
AcceptOptions.Builder |
enableIceGatheringOnAnyAddressPorts(boolean enable)
Enable gathering of ICE candidates on "any address" ports.
|
AcceptOptions.Builder |
iceOptions(IceOptions iceOptions)
Custom ICE configuration used to connect to a Call.
|
AcceptOptions.Builder |
preferAudioCodecs(List<AudioCodec> preferredAudioCodecs)
Set preferred audio codecs.
|
public Builder()
CallInvite
public AcceptOptions.Builder iceOptions(IceOptions iceOptions)
public AcceptOptions.Builder enableDscp(boolean enable)
enable
- Enable DSCP. Defaults to true
.public AcceptOptions.Builder enableIceGatheringOnAnyAddressPorts(boolean enable)
enable
- Enable ICE candidates on "any address" ports. Defaults to false
.public AcceptOptions.Builder preferAudioCodecs(List<AudioCodec> preferredAudioCodecs)
The following snippet demonstrates how to prefer a single audio codec.
AcceptOptions acceptOptions = new AcceptOptions.Builder(token)
.preferAudioCodecs(Collections.singletonList(new PcmuCodec()))
.build();
The following snippet demonstrates how to specify the exact order of codec preferences.
AcceptOptions acceptOptions = new AcceptOptions.Builder(token)
.preferAudioCodecs(Arrays.asList(new PcmuCodec(), new OpusCodec()))
.build();
public AcceptOptions build()
AcceptOptions
object.6.0.1