Reconnection support

This commit is contained in:
Patrick Nicolas
2024-06-03 20:59:03 +02:00
parent f63854a2ab
commit 3a5404d191
11 changed files with 97 additions and 14 deletions
+8 -1
View File
@@ -166,7 +166,14 @@ void VideoEncoder::SendData(std::span<uint8_t> data, bool end_of_frame)
}
}
shard.payload = {begin, next};
cnx->send_stream(shard);
try
{
cnx->send_stream(shard);
}
catch (...)
{
// Ignore network errors
}
++shard.shard_idx;
shard.flags = 0;
shard.view_info.reset();