![]() |
Intel® Collaboration Suite for WebRTC
version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for Windows*
|
An asynchronous class for app to communicate with a conference in MCU. More...
#include <owt/conference/conferenceclient.h>
Public Member Functions | |
void | AddObserver (ConferenceClientObserver &observer) |
Add an observer for conferenc client. | |
void | RemoveObserver (ConferenceClientObserver &observer) |
Remove an object from conference client. | |
void | Join (const std::string &token, std::function< void(std::shared_ptr< ConferenceInfo >)> on_success, std::function< void(std::unique_ptr< Exception >)> on_failure) |
Connect to the specified room to join a conference. More... | |
void | Leave (std::function< void()> on_success, std::function< void(std::unique_ptr< Exception >)> on_failure) |
Leave current conference. | |
void | Publish (std::shared_ptr< LocalStream > stream, std::function< void(std::shared_ptr< ConferencePublication >)> on_success, std::function< void(std::unique_ptr< Exception >)> on_failure) |
Publish the stream to the current room. More... | |
void | Publish (std::shared_ptr< LocalStream > stream, const PublishOptions &options, std::function< void(std::shared_ptr< ConferencePublication >)> on_success, std::function< void(std::unique_ptr< Exception >)> on_failure) |
Publish the stream to the current room. More... | |
void | Subscribe (std::shared_ptr< RemoteStream > stream, std::function< void(std::shared_ptr< ConferenceSubscription >)> on_success, std::function< void(std::unique_ptr< Exception >)> on_failure) |
Subscribe a stream from the current room. More... | |
void | Subscribe (std::shared_ptr< RemoteStream > stream, const SubscribeOptions &options, std::function< void(std::shared_ptr< ConferenceSubscription >)> on_success, std::function< void(std::unique_ptr< Exception >)> on_failure) |
Subscribe a stream from the current room. More... | |
void | Send (const std::string &message, std::function< void()> on_success, std::function< void(std::unique_ptr< Exception >)> on_failure) |
Send messsage to all participants in the conference. More... | |
void | Send (const std::string &message, const std::string &receiver, std::function< void()> on_success, std::function< void(std::unique_ptr< Exception >)> on_failure) |
Send messsage to all participants in the conference. More... | |
Static Public Member Functions | |
static std::shared_ptr< ConferenceClient > | Create (const ConferenceClientConfiguration &configuration) |
Create a ConferenceClient instance with specific configuration. More... | |
An asynchronous class for app to communicate with a conference in MCU.
|
static |
Create a ConferenceClient instance with specific configuration.
configuration | Configuration for creating the ConferenceClient. |
void owt::conference::ConferenceClient::Join | ( | const std::string & | token, |
std::function< void(std::shared_ptr< ConferenceInfo >)> | on_success, | ||
std::function< void(std::unique_ptr< Exception >)> | on_failure | ||
) |
Connect to the specified room to join a conference.
token | Includes the room info which is encrypted. |
on_success | Join conference success, on_sucess will be executed with current conference information. |
void owt::conference::ConferenceClient::Publish | ( | std::shared_ptr< LocalStream > | stream, |
std::function< void(std::shared_ptr< ConferencePublication >)> | on_success, | ||
std::function< void(std::unique_ptr< Exception >)> | on_failure | ||
) |
Publish the stream to the current room.
stream | The stream to be published. |
void owt::conference::ConferenceClient::Publish | ( | std::shared_ptr< LocalStream > | stream, |
const PublishOptions & | options, | ||
std::function< void(std::shared_ptr< ConferencePublication >)> | on_success, | ||
std::function< void(std::unique_ptr< Exception >)> | on_failure | ||
) |
Publish the stream to the current room.
stream | The stream to be published. |
options | Options for publishing the stream. |
void owt::conference::ConferenceClient::Send | ( | const std::string & | message, |
std::function< void()> | on_success, | ||
std::function< void(std::unique_ptr< Exception >)> | on_failure | ||
) |
Send messsage to all participants in the conference.
message | The message to be sent. |
void owt::conference::ConferenceClient::Send | ( | const std::string & | message, |
const std::string & | receiver, | ||
std::function< void()> | on_success, | ||
std::function< void(std::unique_ptr< Exception >)> | on_failure | ||
) |
Send messsage to all participants in the conference.
message | The message to be sent. |
receiver | Receiver's user ID. |
void owt::conference::ConferenceClient::Subscribe | ( | std::shared_ptr< RemoteStream > | stream, |
std::function< void(std::shared_ptr< ConferenceSubscription >)> | on_success, | ||
std::function< void(std::unique_ptr< Exception >)> | on_failure | ||
) |
Subscribe a stream from the current room.
stream | The remote stream to be subscribed. |
onSuccess | Success callback with a stream that contains media stream. |
void owt::conference::ConferenceClient::Subscribe | ( | std::shared_ptr< RemoteStream > | stream, |
const SubscribeOptions & | options, | ||
std::function< void(std::shared_ptr< ConferenceSubscription >)> | on_success, | ||
std::function< void(std::unique_ptr< Exception >)> | on_failure | ||
) |
Subscribe a stream from the current room.
stream | The remote stream to be subscribed. |
options | Options for subscribing the stream. |
onSuccess | Success callback with a stream that contains media stream. |