#6821·flet

bug: flet-audio not working inside windows

Author: radin6262Created Sep 5, 2026Updated Sep 8, 2026
Labelsbug

Duplicate Check

Describe the bug

it works perfectly fine inside the browser but when u use flet run and click play it doesn't work and eventually: The application encountered an error: TimeoutException after 0:00:10.000000: Timeout waiting for invoke method listener for Audio(9).play

Traceback (most recent call last): File "D:\PythonProject\Fnaf-Launcher -PC.venv\Lib\site-packages\flet\messaging\session.py", line 450, in dispatch_event await control._trigger_event(event_name, event_data) File "D:\PythonProject\Fnaf-Launcher -PC.venv\Lib\site-packages\flet\controls\base_control.py", line 504, in _trigger_event await event_handler(e) File "D:\PythonProject\Fnaf-Launcher -PC\audio.py", line 17, in play await audio.play() File "D:\PythonProject\Fnaf-Launcher -PC.venv\Lib\site-packages\flet_audio\audio.py", line 112, in play await self._invoke_method( ...<2 lines>... ) File "D:\PythonProject\Fnaf-Launcher -PC.venv\Lib\site-packages\flet\controls\base_control.py", line 448, in _invoke_method return await self.page.session.invoke_method( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ self._i, method_name, arguments, timeout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "D:\PythonProject\Fnaf-Launcher -PC.venv\Lib\site-packages\flet\messaging\session.py", line 507, in invoke_method raise RuntimeError(err) RuntimeError: TimeoutException after 0:00:10.000000: Timeout waiting for invoke method listener for Audio(9).play

Code sample

Code

you can use the example code provided by flet-audio

To reproduce

steps to reproduce: 1. flet run --web it works fine 2. flet run which runs a windows app it just doesn't work and hits the timeout error

Expected behavior

i expected it to just play the audio

Screenshots / Videos

Captures

it has no specific details to capture

Operating System

Windows

Operating system details

Windows 11

Flet version

0.86.5

Regression

I'm not sure / I don't know

Suggestions

i have no suggestions

Logs

Logs
bash
RuntimeError: TimeoutException after 0:00:10.000000: Timeout waiting for invoke method listener for Audio(9).play
Unhandled error in 'on_click' handler
Traceback (most recent call last):
  File "D:\PythonProject\Fnaf-Launcher -PC\.venv\Lib\site-packages\flet\messaging\session.py", line 450, in dispatch_event
    await control._trigger_event(event_name, event_data)
  File "D:\PythonProject\Fnaf-Launcher -PC\.venv\Lib\site-packages\flet\controls\base_control.py", line 504, in _trigger_event
    await event_handler(e)
  File "D:\PythonProject\Fnaf-Launcher -PC\audio.py", line 17, in play
    await audio.play()
  File "D:\PythonProject\Fnaf-Launcher -PC\.venv\Lib\site-packages\flet_audio\audio.py", line 112, in play
    await self._invoke_method(
    ...<2 lines>...
    )
  File "D:\PythonProject\Fnaf-Launcher -PC\.venv\Lib\site-packages\flet\controls\base_control.py", line 448, in _invoke_method
    return await self.page.session.invoke_method(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        self._i, method_name, arguments, timeout
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "D:\PythonProject\Fnaf-Launcher -PC\.venv\Lib\site-packages\flet\messaging\session.py", line 507, in invoke_method
    raise RuntimeError(err)
RuntimeError: TimeoutException after 0:00:10.000000: Timeout waiting for invoke method listener for Audio(9).play

Additional details

please fix this as soon as possible. thanks