uosc icon indicating copy to clipboard operation
uosc copied to clipboard

Meta in controls bar

Open Solarunit opened this issue 1 year ago • 6 comments

I think it would be nice to have codec and resolution labels that you can add on the controls bar. Something like this:

mpv-codec-info

Solarunit avatar Apr 22 '24 15:04 Solarunit

Maybe we can have a new control element that displays a template while subscribing to its properties like we do with the title.

tomasklaen avatar Apr 22 '24 21:04 tomasklaen

I see It could be a problem with converting mpv resolution property like 3840x1920 to just 4K or 1920x1080 to 1080 HD to make it look more compact on controls bar.

Solarunit avatar Apr 23 '24 15:04 Solarunit

The resolution shorthands could be resolved by providing a custom {resolution} template macro which we format behind the scenes.

This would also need some basic templating features like built in function for formatting stuff, e.g. {human_time(duration)}.

I expect this to take a lot of fiddling and time to implement. Can't promise I ever get to it.

tomasklaen avatar Aug 29 '24 19:08 tomasklaen

I realize this is for control bar and not titlebar but in the meantime this is what I use for titlebar to display video resolution. Some reason can't upload screenshot but looks like below.

64% 00:20:11 00:31:45 00:11:34 https://www.youtube.com/watch?=blahblah 441 kbps 47 kbps 360p

top_bar_alt_title=${percent-pos}% ${playback-time} ${duration} ${playtime-remaining} ${?demuxer-via-network==yes:${path}}${?demuxer-via-network==no:${media-title}} ${?file-size:${file-size}} ${?video-bitrate:${video-bitrate}} ${?audio-bitrate:${audio-bitrate}} ${?video-params/h:${video-params/h}}p

toggle it on/off with shortcut input.conf C script-message-to uosc toggle-elements top_bar #! [Playback] > On/off uosc top bar progress %

mrfragger avatar Sep 10 '24 02:09 mrfragger

My idea is inspired by Kodi video info in the right bottom corner. So I want similar labels in controls bar :slightly_smiling_face:

Solarunit avatar Sep 10 '24 17:09 Solarunit

My idea is inspired by Kodi video info in the right bottom corner. So I want similar labels in controls bar 🙂

i see it good feature better than info shit

Ammar-A7med avatar Feb 21 '25 20:02 Ammar-A7med