SympleSignaller
SympleSignaller
#include <icy/webrtc/support/symplesignaller.h>Inherits:
SignallingInterface
SignallingInterface implementation using the Symple call protocol.
Speaks the call:init, call:accept, call:reject, call:offer, call:answer, call:candidate, and call:hangup envelope over a connected Symple client.
The remote peer identifier on this signalling boundary is the full Symple address string (user|id).
Public Methods
| Return | Name | Description |
|---|---|---|
SympleSignaller explicit | ||
SympleSignaller | Deleted constructor. | |
void | sendSdp virtual | Send an SDP offer or answer to the remote peer. |
void | sendCandidate virtual | Send an ICE candidate to the remote peer. |
void | sendControl virtual | Send a control message to the remote peer. |
SympleSignaller
explicit
explicit SympleSignaller(smpl::Client & client)SympleSignaller
SympleSignaller(const SympleSignaller &) = deleteDeleted constructor.
sendSdp
virtual
virtual void sendSdp(const std::string & peerId, const std::string & type, const std::string & sdp)Send an SDP offer or answer to the remote peer.
Parameters
peerIdRemote peer identifier.type"offer" or "answer".sdpThe SDP string.
sendCandidate
virtual
virtual void sendCandidate(const std::string & peerId, const std::string & candidate, const std::string & mid)Send an ICE candidate to the remote peer.
Parameters
peerIdRemote peer identifier.candidateThe candidate string (from RTCIceCandidate).midThe sdpMid value.
sendControl
virtual
virtual void sendControl(const std::string & peerId, const std::string & type, const std::string & reason)Send a control message to the remote peer.
Parameters
peerIdRemote peer identifier.typeControl type: "init", "accept", "reject", "hangup".reasonOptional reason string (for reject/hangup).
Private Attributes
| Return | Name | Description |
|---|---|---|
smpl::Client & | _client |
_client
smpl::Client & _clientPrivate Methods
onMessage
void onMessage(smpl::Message & msg)send
void send(const std::string & action, const std::string & to, const json::Value & data)