Increasing the time that we are waiting for the frame.

This commit is contained in:
Filipi Fuchter
2025-03-12 15:36:40 -03:00
parent 93d8ddf4f2
commit 9cad8bfcc6

View File

@@ -185,7 +185,7 @@ class SmallWebRTCClient:
continue
try:
frame = await asyncio.wait_for(self._video_input_track.recv(), timeout=1.0)
frame = await asyncio.wait_for(self._video_input_track.recv(), timeout=2.0)
except asyncio.TimeoutError:
if self._webrtcConnection.is_connected():
logger.warning("Timeout: No video frame received within the specified time.")
@@ -232,7 +232,7 @@ class SmallWebRTCClient:
continue
try:
frame = await asyncio.wait_for(self._audio_input_track.recv(), timeout=1.0)
frame = await asyncio.wait_for(self._audio_input_track.recv(), timeout=2.0)
except asyncio.TimeoutError:
if self._webrtcConnection.is_connected():
logger.warning("Timeout: No audio frame received within the specified time.")