Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

play_cmd script option #225

Closed
sdfg2 opened this issue Aug 2, 2021 · 1 comment
Closed

play_cmd script option #225

sdfg2 opened this issue Aug 2, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@sdfg2
Copy link

sdfg2 commented Aug 2, 2021

Is your feature request related to a problem? Please describe.
I have setup scripts to send a command to openhab to dim the lights when playback starts, and to raise the lights back up when idle (idle_when_paused is on) or when playback stops. pre_media_cmd works for the initial start of playback, but there's no way to run a script when the playback unpauses.

Describe the solution you'd like
Create a play_cmd to be called when starting playback (after pre-media-cmd), and when un-idling/unpausing.

Describe alternatives you've considered
I had a look through existing mpv scripts, couldn't see anything that could call external scripts based on media state.

@sdfg2 sdfg2 added the enhancement New feature or request label Aug 2, 2021
@iwalton3
Copy link
Member

Will be in next release that I am currently preparing since 10.8 is now out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants