Skip to content

OSC - Customization options for default layout #16900

@advice2020

Description

@advice2020

Expected behavior of the wanted feature

0.39

Modifying the OSC by editing the osc.lua file is rather complex for the average user.
I really like the look/simplicity of the default OSC but I feel that most of the elements shown can be accomplished using hotkeys.
For example, I would only like to see the time codes and the seekbar.
Would be nice to offer some customization options that could allow user to make some basic modifications of the default OSC.

The main issue with this idea currently is that the seekbar in the default OSC is not centered, due to having to fit the icons to its right.
Would need solution to being able to center the seekbar for this idea to work properly.

Each item in the OSC could get its own option to turn it on/off, or can make one option and just assign a variable % for each item.
Not exactly but something similar to....
%PL = playlist title found at top of OSC
%P = play
%BF = back and forward icons
%TL = time code left of seekbar
%S = seekbar
%TR = time code right of seekbar
etc.

So if user just wanted time codes and seekbar could type in
%TL %S %TR
with some kind of option prefix, and only these elements would show in the OSC.

For Seekbar, maybe could program to automatically center in MPV window if the two icons to its right are hidden?
Can also add an option to adjust the width of the seekbar.

I know you can do this elsewhere but maybe can also add some basic options for being able to change font sizes of OSC.
-Title font at top of OSC
-Time code fonts
-The two icons to right of seekbar could be linked to the time code font or be their own option as well.

I will stop here because this probably will never be added to MPV.

Thank you to anyone who reads this

I was planning on making this post for a while now but did not think anything would come from it so I held off.
The following post I made recently just made me decide to create this.
#16731

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions