powered by Jive Software

Using jingle in smack api


#1

Hi

I am using Smack 4.2.3. I am able to authenticate with smack api xmpp please check my code below

byte[] ipAddr = new byte[]{(byte)192, (byte)168, (byte)0, (byte)11};
InetAddress addr = InetAddress.getByAddress(ipAddr);
HostnameVerifier verifier = new HostnameVerifier() {
    @Override
    public boolean verify(String hostname, SSLSession session) {
        return false;
    }
};

DomainBareJid serviceName = JidCreate.domainBareFrom("localhost");
XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()
    .setUsernameAndPassword("sunil","sunil123")
    .setPort(5222)
    .setSecurityMode(ConnectionConfiguration.SecurityMode.disabled)
    .setXmppDomain(serviceName)
    .setHostnameVerifier(verifier)
    .setHostAddress(addr)
    .setDebuggerEnabled(true)
    .build();
AbstractXMPPConnection conn1 = new XMPPTCPConnection(config);

Now my task is to create a video calling For this i am using webrtc but with my current searching i found that we have to do signaling that can be done through jingle

Problem: I am not getting any example or tutotrial how i can use jingle and do signaling please help me i am very new to this signaling part

Regards
Sunil Kumar


#2

Did you take a look at this thread? XEP-xxxx: Jingle WebRTC Transport

Edit: Also there is this.