Improved SRT Receiver source

Failure cause to RETRY to connect. Info visitor informs on status of connection. Icon associated to SRT Broadcast icon.
This commit is contained in:
Bruno Herbelin
2023-04-30 13:30:24 +02:00
parent 088cf97ebf
commit 39d4002491
7 changed files with 1016 additions and 643 deletions

View File

@@ -433,15 +433,27 @@ void InfoVisitor::visit (SrtReceiverSource& s)
if (stm->failed()) {
oss << s.uri() << std::endl << stm->log();
}
else {
if (brief_)
else if (stm->isOpen()) {
if (brief_) {
oss << s.uri() << std::endl;
oss << "Connected." << std::endl;
}
else {
oss << "SRT Receiver " << s.uri() << std::endl;
oss << "H264 (" << stm->decoderName() << ")" << std::endl;
oss << "H264 (" << stm->decoderName() << ")" ;
oss << stm->width() << " x " << stm->height();
}
}
else {
if (brief_) {
oss << s.uri() << std::endl;
oss << "Trying to connect..." << std::endl;
}
else {
oss << "SRT Receiver " << s.uri() << std::endl;
oss << "Connecting...";
}
}
}
else
oss << "Undefined";