powered by Jive Software

How to create video or phone call with Smack 4.2?

When I try to create an instance ICETransportManager I get the following error.

java.net.BindException: Can not assign address Requested: Can not bind

at java.net.DualStackPlainDatagramSocketImpl.socketBind (Native Method)

at java.net.DualStackPlainDatagramSocketImpl.bind0 (Unknown Source)

at java.net.AbstractPlainDatagramSocketImpl.bind (Unknown Source)

at java.net.DatagramSocket.bind (Unknown Source)

at java.net.DatagramSocket. (Unknown Source)

at java.net.DatagramSocket. (Unknown Source)

at de.javawi.jstun.test.demo.ice.Candidate. (Candidate.java:35)

at de.javawi.jstun.test.demo.ice.ICENegociator.gatherCandidateAddresses (ICENegociator.java:83)

at org.jivesoftware.smackx.jingle.nat.ICEResolver.initialize (ICEResolver.java:78)

at org.jivesoftware.smackx.jingle.nat.TransportResolver.initializeAndWait (TransportResolver.java:362)

at org.jivesoftware.smackx.jingle.nat.ICETransportManager. (ICETransportManager.java:35)

at Model.Main.main (Main.java:39)

Exception in thread β€œmain” java.lang.NoClassDefFoundError: org / Jive Software / smack / RosterListener

at Model.Main.main (Main.java:43)

Caused by: java.lang.ClassNotFoundException: org.jivesoftware.smack.RosterListener

at java.net.URLClassLoader.findClass (Unknown Source)

at java.lang.ClassLoader.loadClass (Unknown Source)

sun.misc.Launcher at $ AppClassLoader.loadClass (Unknown Source)

at java.lang.ClassLoader.loadClass (Unknown Source)

… 1 more

My code:

ICETransportManager transport = new ICETransportManager (mConnection, β€œstunserver.org”, 3478);

MultiMediaManager average = new MultiMediaManager (transport);

ArrayList list = new ArrayList ();

list.add (average);

JingleManager manager = new JingleManager (mConnection, list);

JingleManager.setJingleServiceEnabled ();

1 Like

I am having the same problem as you , I am a little bit lost in the domain of video and audio conversation using smack 4.2 , can you please indicate the tutorial or the resource you have been following for that?