Package com.xonami.javaBells

Examples of com.xonami.javaBells.StunTurnAddress


          // connect to the XMPP server. Don't log in yet.
          XMPPConnection connection = new XMPPConnection( host );
          connection.connect();

          // derive stun and turn server addresses from the connection:
          StunTurnAddress sta = StunTurnAddress.getAddress( connection );
          // create an ice agent using the stun/turn address. We will need this to figure out
          // how to connect our clients:
          final IceAgent iceAgent = new IceAgent(true, sta);
          // setup our jingle stream manager using the default audio and video devices:
          final JingleStreamManager jsm = new JingleStreamManager(CreatorEnum.initiator);
View Full Code Here


    try {
      if ( acceptCallFrom(peerJid) ) {
        System.out.println("Accepting call!");

        // okay, it matched, so accept the call and start negotiating
        StunTurnAddress sta = StunTurnAddress.getAddress( connection );
       
        jingleStreamManager = new JingleStreamManager(CreatorEnum.initiator);
        List<ContentPacketExtension> acceptedContent = jingleStreamManager.parseIncomingAndBuildMedia( jiq, ContentPacketExtension.SendersEnum.both );

        if( acceptedContent == null ) {
View Full Code Here

       
        // set the peerJid
        peerJid = jiq.getFrom();

        // okay, it matched, so accept the call and start negotiating
        StunTurnAddress sta = StunTurnAddress.getAddress( connection );
       
        jingleStreamManager = new JingleStreamManager(CreatorEnum.initiator);
        List<ContentPacketExtension> acceptedContent = jingleStreamManager.parseIncomingAndBuildMedia( jiq, ContentPacketExtension.SendersEnum.both );

        if( acceptedContent == null ) {
View Full Code Here

    super(connection);
  }
 
  public void initiateOutgoingCall(final String targetJid) throws IOException {
    // derive stun and turn server addresses from the connection:
    StunTurnAddress sta = StunTurnAddress.getAddress( connection );
    // create an ice agent using the stun/turn address. We will need this to figure out
    // how to connect our clients:
    iceAgent = new IceAgent(true, sta);
    // setup our jingle stream manager using the default audio and video devices:
    jingleStreamManager = new JingleStreamManager(CreatorEnum.initiator);
View Full Code Here

TOP

Related Classes of com.xonami.javaBells.StunTurnAddress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.