#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).
| 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. |
explicit
explicit SympleSignaller(smpl::Client & client)SympleSignaller(const SympleSignaller &) = deleteDeleted constructor.
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.
peerId Remote peer identifier.
type "offer" or "answer".
sdp The SDP string.
virtual
virtual void sendCandidate(const std::string & peerId, const std::string & candidate, const std::string & mid)Send an ICE candidate to the remote peer.
peerId Remote peer identifier.
candidate The candidate string (from RTCIceCandidate).
mid The sdpMid value.
virtual
virtual void sendControl(const std::string & peerId, const std::string & type, const std::string & reason)Send a control message to the remote peer.
peerId Remote peer identifier.
type Control type: "init", "accept", "reject", "hangup".
reason Optional reason string (for reject/hangup).
| Return | Name | Description |
|---|---|---|
smpl::Client & | _client |
smpl::Client & _clientvoid onMessage(smpl::Message & msg)void send(const std::string & action, const std::string & to, const json::Value & data)