|
| StreamClient (SignalingServerConfiguration signalingServerConfiguration, WebrtcConfiguration webrtcConfiguration, VideoStreamConfiguration videoStreamConfiguration) |
| Creates a stream client. More...
|
|
| StreamClient (SignalingServerConfiguration signalingServerConfiguration, WebrtcConfiguration webrtcConfiguration, VideoStreamConfiguration videoStreamConfiguration, std::shared_ptr< VideoSource > videoSource) |
| Creates a stream client. More...
|
|
| StreamClient (SignalingServerConfiguration signalingServerConfiguration, WebrtcConfiguration webrtcConfiguration, VideoStreamConfiguration videoStreamConfiguration, std::shared_ptr< AudioSource > audioSource) |
| Creates a stream client. More...
|
|
| StreamClient (SignalingServerConfiguration signalingServerConfiguration, WebrtcConfiguration webrtcConfiguration, VideoStreamConfiguration videoStreamConfiguration, std::shared_ptr< VideoSource > videoSource, std::shared_ptr< AudioSource > audioSource) |
| Creates a stream client. More...
|
|
| DECLARE_NOT_COPYABLE (StreamClient) |
|
| DECLARE_NOT_MOVABLE (StreamClient) |
|
bool | isLocalAudioMuted () |
| Indicates if the local audio is muted. More...
|
|
void | muteLocalAudio () |
| Mutes the local audio.
|
|
void | unmuteLocalAudio () |
| Unmutes the local audio.
|
|
void | setLocalAudioMuted (bool muted) |
| Mutes or unmutes the local audio. More...
|
|
bool | isRemoteAudioMuted () |
| Indicates if the remote audio is muted. More...
|
|
void | muteRemoteAudio () |
| Mutes the remote audio.
|
|
void | unmuteRemoteAudio () |
| Unmutes the remote audio.
|
|
void | setRemoteAudioMuted (bool muted) |
| Mutes or unmutes the remote audio. More...
|
|
bool | isLocalVideoMuted () |
| Indicates if the local video is muted. More...
|
|
void | muteLocalVideo () |
| Mutes the local video.
|
|
void | unmuteLocalVideo () |
| Unmutes the local video.
|
|
void | setLocalVideoMuted (bool muted) |
| Mutes or unmutes the local video. More...
|
|
void | setOnAddRemoteStream (const std::function< void(const Client &)> &callback) |
| Sets the callback that is called when a stream is added. More...
|
|
void | setOnRemoveRemoteStream (const std::function< void(const Client &)> &callback) |
| Sets the callback that is called when a stream is removed. More...
|
|
void | setOnVideoFrameReceived (const VideoFrameReceivedCallback &callback) |
| Sets the callback that is called when a video stream frame is received. More...
|
|
void | setOnEncodedVideoFrameReceived (const EncodedVideoFrameReceivedCallback &callback) |
| Sets the callback that is called when an encoded video stream frame is received. More...
|
|
void | setOnAudioFrameReceived (const AudioFrameReceivedCallback &callback) |
| Sets the callback that is called when an audio stream frame is received. More...
|
|
void | setOnMixedAudioFrameReceived (const AudioSinkCallback &callback) |
| Sets the callback that is called when a mixed audio stream frame is received. More...
|
|
| WebrtcClient (SignalingServerConfiguration &&signalingServerConfiguration, WebrtcConfiguration &&webrtcConfiguration, VideoStreamConfiguration &&videoStreamConfiguration) |
|
| DECLARE_NOT_COPYABLE (WebrtcClient) |
|
| DECLARE_NOT_MOVABLE (WebrtcClient) |
|
void | setTlsVerificationEnabled (bool isEnabled) |
|
void | connect () |
| Connects the client the signaling server.
|
|
void | close () |
| Closes all client connections (asynchronous).
|
|
void | closeSync () |
| Closes all client connections (synchronous).
|
|
void | callAll () |
| Calls all room clients.
|
|
void | callIds (const std::vector< std::string > &ids) |
| Calls the specified clients. More...
|
|
void | hangUpAll () |
| Hangs up all clients.
|
|
void | closeAllRoomPeerConnections () |
| Closes all room peer connections.
|
|
bool | isConnected () |
| Indicates if the client is connected to the signaling server. More...
|
|
bool | isRtcConnected () |
| Indicates if the client is connected to at least one client (RTCPeerConnection). More...
|
|
std::string | id () |
| Returns the client id. More...
|
|
std::vector< std::string > | getConnectedRoomClientIds () |
| Returns the connected room client ids. More...
|
|
RoomClient | getRoomClient (const std::string &id) |
| Returns the room client that matches with the specified id. If no room client matches with the id, a default room client is returned. More...
|
|
std::vector< RoomClient > | getRoomClients () |
| Returns the room clients. More...
|
|
void | setOnSignalingConnectionOpened (const std::function< void()> &callback) |
| Sets the callback that is called when the signaling connection opens. More...
|
|
void | setOnSignalingConnectionClosed (const std::function< void()> &callback) |
| Sets the callback that is called when the signaling connection closes. More...
|
|
void | setOnSignalingConnectionError (const std::function< void(const std::string &)> &callback) |
| Sets the callback that is called when a signaling connection error occurs. More...
|
|
void | setOnRoomClientsChanged (const std::function< void(const std::vector< RoomClient > &)> &callback) |
| Sets the callback that is called when the room client changes. More...
|
|
void | setCallAcceptor (const std::function< bool(const Client &)> &callback) |
| Sets the callback that is used to accept or reject a call. More...
|
|
void | setOnCallRejected (const std::function< void(const Client &)> &callback) |
| Sets the callback that is called when a call is rejected. More...
|
|
void | setOnClientConnected (const std::function< void(const Client &)> &callback) |
| Sets the callback that is called when a client peer connection opens. More...
|
|
void | setOnClientDisconnected (const std::function< void(const Client &)> &callback) |
| Sets the callback that is called when a client peer connection closes. More...
|
|
void | setOnClientConnectionFailed (const std::function< void(const Client &)> &callback) |
| Sets the callback that is called when a client peer connection fails. More...
|
|
void | setOnError (const std::function< void(const std::string &error)> &callback) |
| Sets the callback that is called when an error occurs. More...
|
|
void | setLogger (const std::function< void(const std::string &message)> &callback) |
| Sets the callback that is used to log information. More...
|
|
|
std::unique_ptr< PeerConnectionHandler > | createPeerConnectionHandler (const std::string &id, const Client &peerClient, bool isCaller) override |
| Creates the peer connection handler for this client. More...
|
|
template<class T , class... Types> |
void | invokeIfCallable (const std::function< T > &f, Types... args) |
|
void | log (const std::string &message) |
|
std::function< void(const std::string &)> | getOnErrorFunction () |
|
std::function< void(const Client &)> | getOnClientConnectedFunction () |
|
std::function< void(const Client &)> | getOnClientDisconnectedFunction () |
|
std::function< void(const Client &)> | getOnClientConnectionFailedFunction () |
|
rtc::Thread * | getInternalClientThread () |
|
A signaling client to join a WebRTC room and stream a video source.