bug: flet-audio not working inside windows
Duplicate Check
- I have searched the opened issues and there are no duplicates
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
Codeyou 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
Capturesit 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
LogsRuntimeError: 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).playAdditional details
please fix this as soon as possible. thanks
Source: flet-dev/flet