|
|
| ProxyWebRTC (privmx_endpoint_stream_WebRTCInterface webRTCInterface) |
| std::string | createOfferAndSetLocalDescription (const std::string &streamRoomId, const std::string &connectionType) override |
| std::string | createAnswerAndSetDescriptions (const std::string &streamRoomId, const std::string &sdp, const std::string &type, const std::string &connectionType) override |
| void | setAnswerAndSetRemoteDescription (const std::string &streamRoomId, const std::string &sdp, const std::string &type, const std::string &connectionType) override |
| void | updateSessionId (const std::string &streamRoomId, const int64_t sessionId, const std::string &connectionType) override |
| void | closeAll (const std::string &streamRoomId) override |
| void | close (const std::string &streamRoomId, const std::string &connectionType) override |
| void | updateKeys (const std::string &streamRoomId, const std::vector< Key > &keys) override |
◆ close()
| void privmx::endpoint::stream::ProxyWebRTC::close |
( |
const std::string & | streamRoomId, |
|
|
const std::string & | connectionType ) |
|
overridevirtual |
Closes a single PeerConnection of the given Stream Room.
- Parameters
-
| streamRoomId | ID of the Stream Room the connection belongs to |
| connectionType | type of the connection to close ("publisher" or "subscriber") |
Implements privmx::endpoint::stream::WebRTCInterface.
◆ closeAll()
| void privmx::endpoint::stream::ProxyWebRTC::closeAll |
( |
const std::string & | streamRoomId | ) |
|
|
overridevirtual |
◆ createAnswerAndSetDescriptions()
| std::string privmx::endpoint::stream::ProxyWebRTC::createAnswerAndSetDescriptions |
( |
const std::string & | streamRoomId, |
|
|
const std::string & | sdp, |
|
|
const std::string & | type, |
|
|
const std::string & | connectionType ) |
|
overridevirtual |
Sets the given session description as the remote description of the PeerConnection, creates an answer to it and sets that answer as the PeerConnection's local description.
- Parameters
-
| streamRoomId | ID of the Stream Room the connection belongs to |
| sdp | received session description in the SDP format |
| type | type of the received session description ("offer" or "answer") |
| connectionType | type of the connection ("publisher" or "subscriber") |
- Returns
- created answer SDP
Implements privmx::endpoint::stream::WebRTCInterface.
◆ createOfferAndSetLocalDescription()
| std::string privmx::endpoint::stream::ProxyWebRTC::createOfferAndSetLocalDescription |
( |
const std::string & | streamRoomId, |
|
|
const std::string & | connectionType ) |
|
overridevirtual |
Creates an SDP offer for the given PeerConnection and sets it as its local description.
- Parameters
-
| streamRoomId | ID of the Stream Room the connection belongs to |
| connectionType | type of the connection ("publisher" or "subscriber") |
- Returns
- created offer SDP
Implements privmx::endpoint::stream::WebRTCInterface.
◆ setAnswerAndSetRemoteDescription()
| void privmx::endpoint::stream::ProxyWebRTC::setAnswerAndSetRemoteDescription |
( |
const std::string & | streamRoomId, |
|
|
const std::string & | sdp, |
|
|
const std::string & | type, |
|
|
const std::string & | connectionType ) |
|
overridevirtual |
Sets the received answer as the remote description of the PeerConnection.
- Parameters
-
| streamRoomId | ID of the Stream Room the connection belongs to |
| sdp | received session description in the SDP format |
| type | type of the received session description ("offer" or "answer") |
| connectionType | type of the connection ("publisher" or "subscriber") |
Implements privmx::endpoint::stream::WebRTCInterface.
◆ updateKeys()
| void privmx::endpoint::stream::ProxyWebRTC::updateKeys |
( |
const std::string & | streamRoomId, |
|
|
const std::vector< Key > & | keys ) |
|
overridevirtual |
Replaces the keys used to encrypt and decrypt the data sent over the publisher and subscriber Streams.
- Parameters
-
| streamRoomId | ID of the Stream Room to update the keys of |
| keys | new set of encryption keys |
Implements privmx::endpoint::stream::WebRTCInterface.
◆ updateSessionId()
| void privmx::endpoint::stream::ProxyWebRTC::updateSessionId |
( |
const std::string & | streamRoomId, |
|
|
const int64_t | sessionId, |
|
|
const std::string & | connectionType ) |
|
overridevirtual |
Assigns the media server session to the PeerConnection. The session ID is needed to send the PeerConnection's ICE candidates (using trickle) to the server.
- Parameters
-
| streamRoomId | ID of the Stream Room the connection belongs to |
| sessionId | ID of the media server session assigned to the connection |
| connectionType | type of the connection ("publisher" or "subscriber") |
Implements privmx::endpoint::stream::WebRTCInterface.
The documentation for this class was generated from the following file: