You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a script that ensures only one MPV instance plays at any given time. When a new instance begins playback, it should pause any previous window playing.
I'm using the following approach:
Write the Wayland app ID of the current MPV instance to a shared control file.
Other MPV instances check the control file and pause if their ID is not allowed.
I'm using the pause property and wayland-app-id to manage control.
However, the script doesn't seem to work as expected. Could someone help improve this approach or suggest a better method?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a script that ensures only one MPV instance plays at any given time. When a new instance begins playback, it should pause any previous window playing.
I'm using the following approach:
Beta Was this translation helpful? Give feedback.
All reactions