Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

Click the picture to pause or resume a file; arrows seek 5 s

Veyra Goal Agent7dbfd75149b2
diff --git a/qml/Veyra/Main.qml b/qml/Veyra/Main.qml
index 6a80035b..3cad0ea6 100644
--- a/qml/Veyra/Main.qml
+++ b/qml/Veyra/Main.qml
@@ -445,6 +445,30 @@ Window {
// AppShell VideoSurface: a double click on the picture toggles fullscreen
// (1.4.4 did both directions), unless locked. Windowed, only a double click
// inside the picture counts; with the quick panel up, not one on the panel.
+ // A click on the picture of a playing file pauses or resumes it (field request
+ // 2026-10-02), and takes the keyboard back from a slider so the arrows seek again.
+ // Live sources ignore it: a click to focus the window mid-game must not stop the
+ // capture. The second click of a double click undoes the first; the double click
+ // itself toggles fullscreen below.
+ function pictureContains(p) {
+ return p.x >= videoHost.x && p.y >= videoHost.y && p.x <= videoHost.x + videoHost.width
+ && p.y <= videoHost.y + videoHost.height
+ }
+ TapHandler {
+ id: pictureTap
+ enabled: !root.fullLocked
+ onTapped: (eventPoint, button) => {
+ const p = eventPoint.position
+ if (root.page !== "min" && root.page !== "pro" && root.page !== "node" && !root.fullscreen) return
+ if (dialogs.dialog !== "" || !veyra.hasSource) return
+ if (root.fullscreen && root.quickPanelShown && proPage.overlayContains(p.x, p.y)) return
+ if (!root.fullscreen && !root.pictureContains(p)) return
+ root.contentItem.forceActiveFocus()
+ if (veyra.isCapture || veyra.duration <= 0) return
+ if (veyra.protectionDrawShape.length > 0 || veyra.compareMode === 2) return
+ if (pictureTap.tapCount <= 2) veyra.togglePlayPause()
+ }
+ }
TapHandler {
enabled: !root.fullLocked
onDoubleTapped: (eventPoint, button) => {
@@ -544,8 +568,9 @@ Window {
root.quickPanel = !root.quickPanel
}
}
- Shortcut { sequence: "Left"; onActivated: veyra.seekBy(-10) }
- Shortcut { sequence: "Right"; onActivated: veyra.seekBy(10) }
+ // 5 s steps (field request 2026-10-02).
+ Shortcut { sequence: "Left"; onActivated: veyra.seekBy(-5) }
+ Shortcut { sequence: "Right"; onActivated: veyra.seekBy(5) }
Shortcut { sequence: "Up"; onActivated: veyra.volume = Math.min(1, veyra.volume + 0.05) }
Shortcut { sequence: "Down"; onActivated: veyra.volume = Math.max(0, veyra.volume - 0.05) }
Shortcut { sequence: "Ctrl+O"; onActivated: veyra.openFileDialog() }
diff --git a/qml/Veyra/SettingsPage.qml b/qml/Veyra/SettingsPage.qml
index 6efeb93b..ac36a200 100644
--- a/qml/Veyra/SettingsPage.qml
+++ b/qml/Veyra/SettingsPage.qml
@@ -199,7 +199,7 @@ VPage {
}
VRow {
label: "滑块键盘微调"
- hint: "点一下滑块后用 ← → 调整,每次的幅度;Esc 交还方向键给快进快退"
+ hint: "点一下滑块后用 ← → 调整,每次的幅度;Esc 或单击画面交还方向键给快进快退"
VSeg {
objectName: "set-slider-step"
options: [{ id: "1", label: "1" }, { id: "0.1", label: "0.1" }, { id: "0.01", label: "0.01" }]
@@ -545,7 +545,8 @@ VPage {
VGroup {
Repeater {
model: [
- { a: "后退 / 前进 10 秒", k: "← / →" },
+ { a: "后退 / 前进 5 秒", k: "← / →" },
+ { a: "播放 / 暂停(播放文件时)", k: "单击画面" },
{ a: "音量", k: "↑ / ↓" },
{ a: "打开文件 / 导出页", k: "Ctrl+O / Ctrl+E" },
{ a: "字幕开关 / 主轨 / 副轨", k: "B / T / Y" },
diff --git a/scripts/ui-check/picture-click.qml b/scripts/ui-check/picture-click.qml
new file mode 100644
index 00000000..4d5435a4
--- /dev/null
+++ b/scripts/ui-check/picture-click.qml
@@ -0,0 +1,24 @@
+
+ // ---- click the picture: pause/resume a file; arrows seek 5 s; double click = fullscreen ----
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 1000; running: true; repeat: true
+ property int ticks: 0
+ property real pos: 0
+ function center() { return root.contentItem.mapToGlobal(videoHost.x + videoHost.width / 2, videoHost.y + videoHost.height / 2) }
+ onTriggered: {
+ ++ticks
+ if (ticks === 2) veyra.openUrl("@VIDEO@")
+ if (ticks === 6) { const c = center(); veyra.logUi("uitest", "UITEST_NOTE playing=" + !veyra.paused); veyra.logUi("uitest", "UITEST_CLICK " + c.x + " " + c.y) }
+ if (ticks === 8) { veyra.logUi("uitest", "UITEST_NOTE after click playing=" + !veyra.paused); const c = center(); veyra.logUi("uitest", "UITEST_CLICK " + c.x + " " + c.y) }
+ if (ticks === 10) { veyra.logUi("uitest", "UITEST_NOTE after 2nd click playing=" + !veyra.paused); pos = veyra.position; veyra.logUi("uitest", "UITEST_KEY 39 1") }
+ if (ticks === 11) { veyra.logUi("uitest", "UITEST_NOTE right arrow moved " + (veyra.position - pos).toFixed(2) + " s"); const c = center(); veyra.logUi("uitest", "UITEST_DCLICK " + c.x + " " + c.y) }
+ if (ticks === 13) {
+ veyra.logUi("uitest", "UITEST_NOTE after double click fullscreen=" + root.fullscreen + " playing=" + !veyra.paused)
+ const ok = root.fullscreen && !veyra.paused
+ root.toggleFullscreen()
+ veyra.logUi("uitest", ok ? "UITEST_DONE" : "UITEST_FAIL")
+ running = false
+ }
+ }
+ }