Closed aome510 closed 2 years ago
Hi. To run in Windows, souvlaki needs a raw window handle also known as HWND. In MacOS and Linux, a window handle isn't required, so the print_events
example should work. That's weird. I can't comment much on the MacOS implementation since I didn't write it (@jpochyla). Maybe it has to do with the thread being blocked. Can you try opening the media controls in another thread and/or reducing the sleep time?
Media control is only available for window processes on MacOS.
Maybe it has to do with the thread being blocked. Can you try opening the media controls in another thread and/or reducing the sleep time?
Still not work AFAICT. I guess the reason is because MacOS needs an open window to listen to the events, as other mentioned.
Will close this issue for now. Thanks.
I'd appreciate if someone with access to MacOS could pin down the behaviour of media controls and window processes, so it can be stated in the crate's documentation and prevent misunderstandings. I'm going to put a warning in the docs for now.
Hi, I'm trying to use this library in MacOS Monterey 12.3.1.
Running
examples/print_events
doesn't work (no media event printed even when I press one, no metadata shown up in the media control). Runningexample/example.rs
works perfectly but I'm not sure I understand the requirement ofwinit
library here.winit
andwinit::event_loop
seem to be the only difference betweenexamples/print_events.rs
andexamples/example.rs
Does
souvlaki
work withoutwinit
, as I see thatwinit
is only included as thedevdependencies
? Am I missing something here?