update.
This commit is contained in:
@ -163,6 +163,7 @@ void Streamer::start(const std::string &signalServerAddress, uint16_t signalServ
|
||||
|
||||
void Streamer::push(const uint8_t *data, uint32_t size) {
|
||||
using namespace std::chrono;
|
||||
if (m_d->m_clients.empty()) return;
|
||||
boost::asio::post(m_d->strand, [this, frame = rtc::binary(reinterpret_cast<const rtc::byte *>(data),
|
||||
reinterpret_cast<const rtc::byte *>(data) + size)]() {
|
||||
for (auto &[id, client] : m_d->m_clients) {
|
||||
|
Reference in New Issue
Block a user