Package 

Class AcceptOptions.Builder

    • Constructor Detail

      • AcceptOptions.Builder

        AcceptOptions.Builder()
        Use this Builder when accepting a CallInvite
    • Method Detail

      • enableIceGatheringOnAnyAddressPorts

        @NonNull() AcceptOptions.Builder enableIceGatheringOnAnyAddressPorts(@NonNull() boolean enable)

        Enable gathering of ICE candidates on "any address" ports. When this flag is set, portsnot bound to any specific network interface will be used, in addition to normal portsbound to the enumerated interfaces. This flag may need to be set to support certainnetwork configurations (e.g. some VPN implementations) where ports are not bound tospecific interfaces. Setting this flag means that additional candidates might need to begathered and evaluated, which could lead to slower ICE connection times for regularnetworks.

        Parameters:
        enable - Enable ICE candidates on "any address" ports.
      • preferAudioCodecs

        @NonNull() AcceptOptions.Builder preferAudioCodecs(@NonNull() List<AudioCodec> preferredAudioCodecs)

        Set preferred audio codecs. The list specifies which audio codecs would be preferred whennegotiating audio with the backend service. The preferences are applied in the orderfound in the list starting with the most preferred audio codec to the least preferredaudio codec. Audio codec preferences are not guaranteed to be satisfied because thebackend service is not guaranteed to support all audio codecs.

        The following snippet demonstrates how to prefer a single audio codec.

         AcceptOptions acceptOptions = new AcceptOptions.Builder(token) .preferAudioCodecs(Collections.<AudioCodec>singletonList(new PcmuCodec())) .build(); 

        The following snippet demonstrates how to specify the exact order of codecpreferences.

         AcceptOptions acceptOptions = new AcceptOptions.Builder(token) .preferAudioCodecs(Arrays.asList(new PcmuCodec(), new OpusCodec())) .build();