OpenTera WebRTC API (C++) 1.2.5
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
opentera::PeerConnectionHandler Class Reference
Inheritance diagram for opentera::PeerConnectionHandler:
opentera::CreateSessionDescriptionObserverHelper opentera::SetSessionDescriptionObserverHelper opentera::DataChannelPeerConnectionHandler opentera::StreamPeerConnectionHandler

Public Member Functions

 PeerConnectionHandler (std::string &&id, Client &&peerClient, bool isCaller, SignalingClient &m_signalingClient, std::function< void(const std::string &)> &&onError, std::function< void(const Client &)> &&onClientConnected, std::function< void(const Client &)> &&onClientDisconnected, std::function< void(const Client &)> &&onClientConnectionFailed)
 
virtual void setPeerConnection (const rtc::scoped_refptr< webrtc::PeerConnectionInterface > &peerConnection)
 
void makePeerCall ()
 
void receivePeerCall (const std::string &sdp)
 
void receivePeerCallAnswer (const std::string &sdp)
 
void receiveIceCandidate (const std::string &sdpMid, int sdpMLineIndex, const std::string &sdp)
 
void OnConnectionChange (webrtc::PeerConnectionInterface::PeerConnectionState newState) override
 
void OnIceCandidate (const webrtc::IceCandidateInterface *candidate) override
 
void OnDataChannel (rtc::scoped_refptr< webrtc::DataChannelInterface > dataChannel) override
 
void OnTrack (rtc::scoped_refptr< webrtc::RtpTransceiverInterface > transceiver) override
 
void OnRemoveTrack (rtc::scoped_refptr< webrtc::RtpReceiverInterface > receiver) override
 
void OnSignalingChange (webrtc::PeerConnectionInterface::SignalingState newState) override
 
void OnIceGatheringChange (webrtc::PeerConnectionInterface::IceGatheringState newState) override
 
void OnCreateSessionDescriptionObserverSuccess (webrtc::SessionDescriptionInterface *desc) override
 
void OnCreateSessionDescriptionObserverFailure (webrtc::RTCError error) override
 
void OnSetSessionDescriptionObserverSuccess () override
 
void OnSetSessionDescriptionObserverFailure (webrtc::RTCError error) override
 
void AddRef () const override
 
rtc::RefCountReleaseStatus Release () const override
 
- Public Member Functions inherited from opentera::CreateSessionDescriptionObserverHelper
void OnSuccess (webrtc::SessionDescriptionInterface *desc) final
 
void OnFailure (webrtc::RTCError error) final
 
- Public Member Functions inherited from opentera::SetSessionDescriptionObserverHelper
void OnSuccess () final
 
void OnFailure (webrtc::RTCError error) final
 

Protected Member Functions

virtual void createAnswer ()
 

Protected Attributes

std::string m_id
 
Client m_peerClient
 
bool m_isCaller
 
SignalingClientm_signalingClient
 
std::function< void(const std::string &)> m_onError
 
std::function< void(const Client &)> m_onClientConnected
 
std::function< void(const Client &)> m_onClientDisconnected
 
std::function< void(const Client &)> m_onClientConnectionFailed
 
rtc::scoped_refptr< webrtc::PeerConnectionInterface > m_peerConnection
 
bool m_onClientDisconnectedCalled
 

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