public static interface PeerConnection.Observer
Modifier and Type | Method and Description |
---|---|
void |
onAddStream(MediaStream stream)
Triggered when media is received on a new stream from remote peer.
|
void |
onDataChannel(org.webrtc.DataChannel dataChannel)
Triggered when a remote peer opens a DataChannel.
|
void |
onIceCandidate(org.webrtc.IceCandidate candidate)
Triggered when a new ICE candidate has been found.
|
void |
onIceConnectionChange(PeerConnection.IceConnectionState newState)
Triggered when the IceConnectionState changes.
|
void |
onIceGatheringChange(PeerConnection.IceGatheringState newState)
Triggered when the IceGatheringState changes.
|
void |
onRemoveStream(MediaStream stream)
Triggered when a remote peer close a stream.
|
void |
onRenegotiationNeeded()
Triggered when renegotiation is necessary.
|
void |
onSignalingChange(PeerConnection.SignalingState newState)
Triggered when the SignalingState changes.
|
void onSignalingChange(PeerConnection.SignalingState newState)
void onIceConnectionChange(PeerConnection.IceConnectionState newState)
void onIceGatheringChange(PeerConnection.IceGatheringState newState)
void onIceCandidate(org.webrtc.IceCandidate candidate)
void onAddStream(MediaStream stream)
void onRemoveStream(MediaStream stream)
void onDataChannel(org.webrtc.DataChannel dataChannel)
void onRenegotiationNeeded()