Package 

Interface TrickleCallback

  • All Implemented Interfaces:

    
    public interface TrickleCallback
    
                        

    We use this callback to feed candidates to ice4j user applications that support trickle ICE. The interface provides two methods that allow passing candidates to applications either one-by-one or in batches. The former would typically be used for harvesters such as STUN, where candidates are learned one per message. Discovering batches of candidates is possible when querying a TURN server, which in many cases would return both server reflexive (STUN) and relayed (TURN) candidates.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onIceCandidates(Collection<LocalCandidate> iceCandidates) Notifies the callback that a new batch of LocalCandidates has been discovered and should be advertised to the remove party.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onIceCandidates

         abstract void onIceCandidates(Collection<LocalCandidate> iceCandidates)

        Notifies the callback that a new batch of LocalCandidates has been discovered and should be advertised to the remove party.

        Parameters:
        iceCandidates - the newly discovered list of candidates or, similarly to WebRTC, null in case all candidate harvesting is now completed.