#include <ravenna_receiver.hpp>
Definition at line 37 of file ravenna_receiver.hpp.
◆ RavennaReceiver() [1/3]
◆ ~RavennaReceiver()
| rav::RavennaReceiver::~RavennaReceiver |
( |
| ) |
|
|
override |
◆ RavennaReceiver() [2/3]
| rav::RavennaReceiver::RavennaReceiver |
( |
const RavennaReceiver & | | ) |
|
|
delete |
◆ RavennaReceiver() [3/3]
| rav::RavennaReceiver::RavennaReceiver |
( |
RavennaReceiver && | | ) |
|
|
deletenoexcept |
◆ do_maintenance()
| void rav::RavennaReceiver::do_maintenance |
( |
| ) |
|
Call regularly from the maintenance thread.
◆ get_configuration()
| const Configuration & rav::RavennaReceiver::get_configuration |
( |
| ) |
const |
|
nodiscard |
- Returns
- The current configuration of the receiver.
◆ get_id()
| Id rav::RavennaReceiver::get_id |
( |
| ) |
const |
|
nodiscard |
- Returns
- The unique ID of this stream receiver. The id is unique across the process.
◆ get_nmos_receiver()
- Returns
- The NMOS receiver of this receiver.
◆ get_sdp()
- Returns
- The SDP for the session.
◆ get_sdp_text()
| std::optional< std::string > rav::RavennaReceiver::get_sdp_text |
( |
| ) |
const |
|
nodiscard |
- Returns
- The SDP text for the session. This is the original SDP text as receiver from the server potentially including things which haven't been parsed into the session_description.
◆ get_uuid()
| const boost::uuids::uuid & rav::RavennaReceiver::get_uuid |
( |
| ) |
const |
|
nodiscard |
- Returns
- The unique UUID of the receiver.
◆ on_announced()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ restore_from_json()
| tl::expected< void, std::string > rav::RavennaReceiver::restore_from_json |
( |
const boost::json::value & | json | ) |
|
|
nodiscard |
Restores the receiver from a JSON representation.
- Parameters
-
| json | The JSON representation of the receiver. |
- Returns
- A result indicating whether the restoration was successful or not.
◆ set_configuration()
| tl::expected< void, std::string > rav::RavennaReceiver::set_configuration |
( |
Configuration | config | ) |
|
|
nodiscard |
Updates the configuration of the receiver.
Only takes into account the fields in the configuration that are set. This allows to update only a subset of the configuration.
- Parameters
-
| config | The configuration changes to apply. |
◆ set_network_interface_config()
Sets the network interface config for the receiver.
- Parameters
-
| network_interface_config | The configuration of the network interface to use. |
◆ set_nmos_device_id()
| void rav::RavennaReceiver::set_nmos_device_id |
( |
const boost::uuids::uuid & | device_id | ) |
|
Sets the NMOS device ID for the receiver.
- Parameters
-
| device_id | The device ID to set. |
◆ set_nmos_node()
| void rav::RavennaReceiver::set_nmos_node |
( |
nmos::Node * | nmos_node | ) |
|
Sets the NMOS node for the receiver.
- Parameters
-
| nmos_node | The NMOS node to set. May be nullptr if NMOS is not used. |
◆ subscribe()
| bool rav::RavennaReceiver::subscribe |
( |
Subscriber * | subscriber | ) |
|
|
nodiscard |
Adds a subscriber to the receiver.
- Parameters
-
| subscriber | The subscriber to add. |
- Returns
- true if the subscriber was added, or false if it was already in the list.
◆ to_boost_json()
| boost::json::object rav::RavennaReceiver::to_boost_json |
( |
| ) |
const |
|
nodiscard |
- Returns
- A JSON representation of the sender.
◆ unsubscribe()
| bool rav::RavennaReceiver::unsubscribe |
( |
const Subscriber * | subscriber | ) |
|
|
nodiscard |
Removes a subscriber from the receiver.
- Parameters
-
| subscriber | The subscriber to remove. |
- Returns
- true if the subscriber was removed, or false if it wasn't found.
◆ k_supported_encodings
The documentation for this class was generated from the following file: