Open Solarunit opened 6 months ago
Maybe we can have a new control element that displays a template while subscribing to its properties like we do with the title.
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.
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.
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 %
My idea is inspired by Kodi video info in the right bottom corner. So I want similar labels in controls bar :slightly_smiling_face:
I think it would be nice to have codec and resolution labels that you can add on the controls bar. Something like this: