Improve logging of video/audio delay and errors

This commit is contained in:
Cameron Gutman
2020-05-01 20:23:44 -07:00
parent b46e06fcf1
commit f596e80575
2 changed files with 9 additions and 2 deletions

View File

@@ -115,6 +115,7 @@ static void ReceiveThreadProc(void* context) {
// assume something is broken and terminate the connection.
waitingForVideoMs += UDP_RECV_POLL_TIMEOUT_MS;
if (waitingForVideoMs >= FIRST_FRAME_TIMEOUT_SEC * 1000) {
Limelog("Terminating connection due to lack of video traffic\n");
ListenerCallbacks.connectionTerminated(ML_ERROR_NO_VIDEO_TRAFFIC);
break;
}
@@ -128,7 +129,7 @@ static void ReceiveThreadProc(void* context) {
// We've received data, so we can stop sending our ping packets
// as quickly, since we're now just keeping the NAT session open.
receivedDataFromPeer = 1;
Limelog("Received first video packet\n");
Limelog("Received first video packet after %d ms\n", waitingForVideoMs);
}
// Convert fields to host byte-order