Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface PeerConnection.Listener
What a peer connection tells the app as the call proceeds. Every
method is called on the EDT.
Methods
public abstract void iceCandidate(PeerConnection connection, IceCandidate candidate) | A path to this device was found; send it to the other side. |
public abstract void stateChanged(PeerConnection connection, String state) | The connection moved to another of the states named on PeerConnection. |
public abstract void remoteTrack(PeerConnection connection, MediaTrack track) | The other side’s audio or video arrived. |
Method details
iceCandidate
public abstract void iceCandidate(PeerConnection connection, IceCandidate candidate)A path to this device was found; send it to the other side.
stateChanged
public abstract void stateChanged(PeerConnection connection, String state)The connection moved to another of the states named on
PeerConnection.remoteTrack
public abstract void remoteTrack(PeerConnection connection, MediaTrack track)The other side’s audio or video arrived.