Package tvi.webrtc
Interface PeerConnection.Observer
- Enclosing class:
- PeerConnection
public static interface PeerConnection.Observer
Java version of PeerConnectionObserver.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAddStream
(MediaStream stream) Triggered when media is received on a new stream from remote peer.default void
onAddTrack
(RtpReceiver receiver, MediaStream[] mediaStreams) Triggered when a new track is signaled by the remote peer, as a result of setRemoteDescription.default void
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.default void
Triggered when gathering of an ICE candidate failed.void
onIceCandidatesRemoved
(IceCandidate[] candidates) Triggered when some ICE candidates have been removed.void
Triggered when the IceConnectionState changes.void
onIceConnectionReceivingChange
(boolean receiving) Triggered when the ICE connection receiving status changes.void
Triggered when the IceGatheringState changes.void
onRemoveStream
(MediaStream stream) Triggered when a remote peer close a stream.default void
onRemoveTrack
(RtpReceiver receiver) Triggered when a previously added remote track is removed by the remote peer, as a result of setRemoteDescription.void
Triggered when renegotiation is necessary.default void
Triggered when the ICE candidate pair is changed.void
Triggered when the SignalingState changes.default void
default void
onTrack
(RtpTransceiver transceiver) Triggered when the signaling from SetRemoteDescription indicates that a transceiver will be receiving media from a remote endpoint.
-
Method Details
-
onSignalingChange
Triggered when the SignalingState changes. -
onIceConnectionChange
Triggered when the IceConnectionState changes. -
onStandardizedIceConnectionChange
-
onConnectionChange
Triggered when the PeerConnectionState changes. -
onIceConnectionReceivingChange
void onIceConnectionReceivingChange(boolean receiving) Triggered when the ICE connection receiving status changes. -
onIceGatheringChange
Triggered when the IceGatheringState changes. -
onIceCandidate
Triggered when a new ICE candidate has been found. -
onIceCandidateError
Triggered when gathering of an ICE candidate failed. -
onIceCandidatesRemoved
Triggered when some ICE candidates have been removed. -
onSelectedCandidatePairChanged
Triggered when the ICE candidate pair is changed. -
onAddStream
Triggered when media is received on a new stream from remote peer. -
onRemoveStream
Triggered when a remote peer close a stream. -
onDataChannel
Triggered when a remote peer opens a DataChannel. -
onRenegotiationNeeded
void onRenegotiationNeeded()Triggered when renegotiation is necessary. -
onAddTrack
Triggered when a new track is signaled by the remote peer, as a result of setRemoteDescription. -
onRemoveTrack
Triggered when a previously added remote track is removed by the remote peer, as a result of setRemoteDescription. -
onTrack
Triggered when the signaling from SetRemoteDescription indicates that a transceiver will be receiving media from a remote endpoint. This is only called if UNIFIED_PLAN semantics are specified. The transceiver will be disposed automatically.
-