A WebRTC peer connection observer.
More...
#include <WebRTCDataChannels.h>
Inherits webrtc::PeerConnectionObserver.
|
| WDCPeerConnectionObserver (WDCConnection *parent) |
| Constructs a peer connection observer. More...
|
|
void | OnSignalingChange (webrtc::PeerConnectionInterface::SignalingState newState) override |
| Called when the SignalingState changes. More...
|
|
void | OnRenegotiationNeeded () override |
| Called when renegotiation is needed. For example, an ICE restart has begun.
|
|
void | OnIceGatheringChange (webrtc::PeerConnectionInterface::IceGatheringState newState) override |
| Called when the ICE gather state changes. More...
|
|
void | OnIceCandidate (const webrtc::IceCandidateInterface *candidate) override |
| Called when a new ICE candidate has been gathered. More...
|
|
virtual void | OnIceConnectionChange (webrtc::PeerConnectionInterface::IceConnectionState newState) override |
| Called when the legacy ICE connection state changes. More...
|
|
virtual void | OnStandardizedIceConnectionChange (webrtc::PeerConnectionInterface::IceConnectionState newState) override |
| Called when the standards-compliant ICE connection state changes. More...
|
|
void | OnDataChannel (rtc::scoped_refptr< webrtc::DataChannelInterface > dataChannel) override |
| Called when a remote peer opens a data channel. More...
|
|
void | OnConnectionChange (webrtc::PeerConnectionInterface::PeerConnectionState newState) override |
| Called when the peer connection state changes. More...
|
|
A WebRTC peer connection observer.
◆ WDCPeerConnectionObserver()
WDCPeerConnectionObserver::WDCPeerConnectionObserver |
( |
WDCConnection * |
parent | ) |
|
Constructs a peer connection observer.
- Parameters
-
parent | The parent connection object. |
◆ OnConnectionChange()
void WDCPeerConnectionObserver::OnConnectionChange |
( |
webrtc::PeerConnectionInterface::PeerConnectionState |
newState | ) |
|
|
override |
Called when the peer connection state changes.
- Parameters
-
newState | The new peer connection state. |
◆ OnDataChannel()
void WDCPeerConnectionObserver::OnDataChannel |
( |
rtc::scoped_refptr< webrtc::DataChannelInterface > |
dataChannel | ) |
|
|
override |
Called when a remote peer opens a data channel.
- Parameters
-
dataChannel | The data channel. |
◆ OnIceCandidate()
void WDCPeerConnectionObserver::OnIceCandidate |
( |
const webrtc::IceCandidateInterface * |
candidate | ) |
|
|
override |
Called when a new ICE candidate has been gathered.
- Parameters
-
candidate | The new ICE candidate. |
◆ OnIceConnectionChange()
void WDCPeerConnectionObserver::OnIceConnectionChange |
( |
webrtc::PeerConnectionInterface::IceConnectionState |
newState | ) |
|
|
overridevirtual |
Called when the legacy ICE connection state changes.
- Parameters
-
new_state | The new ICE connection state. |
◆ OnIceGatheringChange()
void WDCPeerConnectionObserver::OnIceGatheringChange |
( |
webrtc::PeerConnectionInterface::IceGatheringState |
newState | ) |
|
|
override |
Called when the ICE gather state changes.
- Parameters
-
newState | The new ICE gathering state. |
◆ OnSignalingChange()
void WDCPeerConnectionObserver::OnSignalingChange |
( |
webrtc::PeerConnectionInterface::SignalingState |
newState | ) |
|
|
override |
Called when the SignalingState changes.
- Parameters
-
newState | The new signaling state. |
◆ OnStandardizedIceConnectionChange()
void WDCPeerConnectionObserver::OnStandardizedIceConnectionChange |
( |
webrtc::PeerConnectionInterface::IceConnectionState |
newState | ) |
|
|
overridevirtual |
Called when the standards-compliant ICE connection state changes.
- Parameters
-
new_state | The new ICE connection state.
|
The documentation for this class was generated from the following files: