Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits: d67f152b by Leon Vitanos at 2026-05-13T15:35:12+00:00 qml: show playback-speed-adjusted remaining time Co-authored-by: Mohit Marathe <[email protected]> - - - - - 1 changed file: - modules/gui/qt/player/qml/ControlBar.qml Changes: ===================================== modules/gui/qt/player/qml/ControlBar.qml ===================================== @@ -165,6 +165,32 @@ T.Pane { MainCtx.showRemainingTime = !MainCtx.showRemainingTime } } + + HoverHandler { + id: mediaRemainingTimeHover + } + + Widgets.ToolTipExt { + colorContext.palette: theme.palette + + visible: mediaRemainingTimeHover.hovered && MainCtx.showRemainingTime && Player.rate !== 1 + delay: VLCStyle.delayToolTipAppear + text: { + if (!visible) + return "" + + const playbackSpeed = Math.abs(Player.rate) + const adjustedRemainingTime = Player.remainingTime.scale(1 / playbackSpeed) + ? Player.remainingTime.scale(1 / playbackSpeed) + : Player.remainingTime + + return qsTr("%1 (%2x)") + .arg(adjustedRemainingTime.formatHMS()) + .arg(+Player.rate.toFixed(2)) + } + + x: (parent.width - width) / 2 + } }, SliderBar { id: trackPositionSlider View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d67f152b5a47e6e4ad4e76fc390fa9054e304e49 -- View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d67f152b5a47e6e4ad4e76fc390fa9054e304e49 You're receiving this email because of your account on code.videolan.org.
_______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
