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 |
onAddTrack(RtpReceiver receiver,
MediaStream[] mediaStreams)
Triggered when a new track is signaled by the remote peer, as a result of
setRemoteDescription.
|
default void |
onConnectionChange(PeerConnection.PeerConnectionState newState)
Triggered when the PeerConnectionState changes.
|
void |
onDataChannel(DataChannel dataChannel)
Triggered when a remote peer opens a DataChannel.
|
void |
onIceCandidate(IceCandidate candidate)
Triggered when a new ICE candidate has been found.
|
void |
onIceCandidatesRemoved(IceCandidate[] candidates)
Triggered when some ICE candidates have been removed.
|
void |
onIceConnectionChange(PeerConnection.IceConnectionState newState)
Triggered when the IceConnectionState changes.
|
void |
onIceConnectionReceivingChange(boolean receiving)
Triggered when the ICE connection receiving status 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.
|
default void |
onSelectedCandidatePairChanged(CandidatePairChangeEvent event)
Triggered when the ICE candidate pair is changed.
|
void |
onSignalingChange(PeerConnection.SignalingState newState)
Triggered when the SignalingState changes.
|
default void |
onStandardizedIceConnectionChange(PeerConnection.IceConnectionState newState) |
default void |
onTrack(RtpTransceiver transceiver)
Triggered when the signaling from SetRemoteDescription indicates that a transceiver
will be receiving media from a remote endpoint.
|
void onSignalingChange(PeerConnection.SignalingState newState)
void onIceConnectionChange(PeerConnection.IceConnectionState newState)
default void onStandardizedIceConnectionChange(PeerConnection.IceConnectionState newState)
default void onConnectionChange(PeerConnection.PeerConnectionState newState)
void onIceConnectionReceivingChange(boolean receiving)
void onIceGatheringChange(PeerConnection.IceGatheringState newState)
void onIceCandidate(IceCandidate candidate)
void onIceCandidatesRemoved(IceCandidate[] candidates)
default void onSelectedCandidatePairChanged(CandidatePairChangeEvent event)
void onAddStream(MediaStream stream)
void onRemoveStream(MediaStream stream)
void onDataChannel(DataChannel dataChannel)
void onRenegotiationNeeded()
void onAddTrack(RtpReceiver receiver, MediaStream[] mediaStreams)
default void onTrack(RtpTransceiver transceiver)
6.0.0