mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
Lots of bugs
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
import time
|
||||
import fractions
|
||||
import av
|
||||
import asyncio
|
||||
import fractions
|
||||
import threading
|
||||
import time
|
||||
from typing import Callable
|
||||
|
||||
import av
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
AUDIO_PTIME = 0.020
|
||||
|
||||
|
||||
@@ -39,7 +44,7 @@ def player_worker_decode(
|
||||
frame = next(generator)
|
||||
except Exception as exc:
|
||||
if isinstance(exc, StopIteration):
|
||||
print("Not iterating")
|
||||
logger.debug("Stopping audio stream")
|
||||
asyncio.run_coroutine_threadsafe(queue.put(None), loop)
|
||||
thread_quit.set()
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user