Overte C++ Documentation
WDCPeerConnectionObserver Class Reference

A WebRTC peer connection observer. More...

#include <WebRTCDataChannels.h>

Inherits webrtc::PeerConnectionObserver.

Public Member Functions

 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...
 

Detailed Description

A WebRTC peer connection observer.

Constructor & Destructor Documentation

◆ WDCPeerConnectionObserver()

WDCPeerConnectionObserver::WDCPeerConnectionObserver ( WDCConnection parent)

Constructs a peer connection observer.

Parameters
parentThe parent connection object.

Member Function Documentation

◆ OnConnectionChange()

void WDCPeerConnectionObserver::OnConnectionChange ( webrtc::PeerConnectionInterface::PeerConnectionState  newState)
override

Called when the peer connection state changes.

Parameters
newStateThe 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
dataChannelThe data channel.

◆ OnIceCandidate()

void WDCPeerConnectionObserver::OnIceCandidate ( const webrtc::IceCandidateInterface *  candidate)
override

Called when a new ICE candidate has been gathered.

Parameters
candidateThe new ICE candidate.

◆ OnIceConnectionChange()

void WDCPeerConnectionObserver::OnIceConnectionChange ( webrtc::PeerConnectionInterface::IceConnectionState  newState)
overridevirtual

Called when the legacy ICE connection state changes.

Parameters
new_stateThe new ICE connection state.

◆ OnIceGatheringChange()

void WDCPeerConnectionObserver::OnIceGatheringChange ( webrtc::PeerConnectionInterface::IceGatheringState  newState)
override

Called when the ICE gather state changes.

Parameters
newStateThe new ICE gathering state.

◆ OnSignalingChange()

void WDCPeerConnectionObserver::OnSignalingChange ( webrtc::PeerConnectionInterface::SignalingState  newState)
override

Called when the SignalingState changes.

Parameters
newStateThe new signaling state.

◆ OnStandardizedIceConnectionChange()

void WDCPeerConnectionObserver::OnStandardizedIceConnectionChange ( webrtc::PeerConnectionInterface::IceConnectionState  newState)
overridevirtual

Called when the standards-compliant ICE connection state changes.

Parameters
new_stateThe new ICE connection state.

The documentation for this class was generated from the following files: