Merge pull request #2265 from pipecat-ai/filipi/small_webrtc_buffer_processor
Fixed an issue in AudioBufferProcessor when using SmallWebRTCTransport
This commit is contained in:
@@ -137,9 +137,9 @@ class SmallWebRTCTrack:
|
||||
"""Receive the next frame from the track.
|
||||
|
||||
Returns:
|
||||
The next frame if the track is enabled, None otherwise.
|
||||
The next frame, except for video tracks, where it returns the frame only if the track is enabled, otherwise, returns None.
|
||||
"""
|
||||
if not self._enabled:
|
||||
if not self._enabled and self._track.kind == "video":
|
||||
return None
|
||||
return await self._track.recv()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user