File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/speaches/routers/realtime Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,7 @@ async def realtime_webrtc(
293
293
"icegatheringstatechange" ,
294
294
lambda : logger .info (f"ICE gathering state changed to { pc .iceGatheringState } " ),
295
295
)
296
+ # NOTE: will never be called according to https://github.com/aiortc/aiortc/issues/1344
296
297
pc .on (
297
298
"icecandidate" ,
298
299
lambda * args , ** kwargs : logger .info (f"ICE candidate: { args } , { kwargs } . { pc .iceGatheringState } " ),
@@ -318,6 +319,7 @@ async def realtime_webrtc(
318
319
for codec in media .rtp .codecs :
319
320
if codec .name != "opus" :
320
321
logger .info (f"Removing codec: { codec } " )
322
+ continue
321
323
filtered_codecs .append (codec )
322
324
if len (filtered_codecs ) == 0 :
323
325
logger .error ("No appropriate codecs found" )
You can’t perform that action at this time.
0 commit comments