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

Change options based on condition (profile-cond in MPV) #573

Closed
dnngll opened this issue Jun 6, 2023 · 8 comments
Closed

Change options based on condition (profile-cond in MPV) #573

dnngll opened this issue Jun 6, 2023 · 8 comments

Comments

@dnngll
Copy link

dnngll commented Jun 6, 2023

Hello,

is there a way to use the profile-cond, like in MPV? I tried

[audio]
profile-cond=not vid
timeline_size_min=80

in uosc.conf, but that didn't work unfortunately.

Thanks : )

@christoph-heinrich
Copy link
Contributor

That is currently not possible.

Options of scripts can be changed at runtime via script-opts, but we currently don't support that.
There is a PR to add support for that #571, but there is still a lot of work missing to make it actually usable with most options.

@dnngll
Copy link
Author

dnngll commented Jun 9, 2023

Hello @christoph-heinrich ,

thanks for the quick reply. Looking forward to when this will be implemented!

@bananakid
Copy link

@christoph-heinrich, it would be handy to have a *_persistence-like option for all elements/widgets to partially implement this. For instance, I'd hide speed widget and fullscreen button for audio.

@christoph-heinrich
Copy link
Contributor

christoph-heinrich commented Nov 11, 2023

You can change your controls by appending to script-opts in a conditional profile.

[audio-only]
profile-cond=vid == false
profile-restore=copy-equal
script-opts-append=uosc-controls=<your controls config but without speed widget and fullscreen button>
script-opts-append=uosc-progress_size=80

@tomasklaen I think this issue can be closed, or am I missing something?

@bananakid
Copy link

@christoph-heinrich, works perfectly, thank you!

@dnngll
Copy link
Author

dnngll commented Jan 2, 2024

Hello @christoph-heinrich ,

You can change your controls by appending to script-opts in a conditional profile.

[audio-only]
profile-cond=vid == false
profile-restore=copy-equal
script-opts-append=uosc-controls=<your controls config but without speed widget and fullscreen button>
script-opts-append=uosc-progress_size=80

@tomasklaen I think this issue can be closed, or am I missing something?

is there more info on what to do to get what I tried in #573 (comment) ? Or is that still not possible?

Thanks!

@christoph-heinrich
Copy link
Contributor

@dnngll Does the profile I posted not work for you? Simply remove the line with uosc-controls and it should do what you want.

@dnngll
Copy link
Author

dnngll commented Jan 2, 2024

@christoph-heinrich

Nothing changed at first - but then I thought about updating uosc... Everything works now. Thank you so much!

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

No branches or pull requests

4 participants