From 203b447d2892254bc3300d72660dde36686932d0 Mon Sep 17 00:00:00 2001 From: Alver Noquiao <50521481+alversion@users.noreply.github.com> Date: Fri, 27 Dec 2019 19:21:59 +0800 Subject: [PATCH] Fix: incSpeed() and decSpeed() key bindings Ref: https://www.raspberrypi.org/documentation/raspbian/applications/omxplayer.md --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b9f0663..298cf75 100644 --- a/index.js +++ b/index.js @@ -148,8 +148,8 @@ function Omx (source, output, loop, initialVolume, showOsd) { omxplayer.quit = () => { writeStdin('q'); }; omxplayer.subtitles = () => { writeStdin('s'); }; omxplayer.info = () => { writeStdin('z'); }; - omxplayer.incSpeed = () => { writeStdin('1'); }; - omxplayer.decSpeed = () => { writeStdin('2'); }; + omxplayer.incSpeed = () => { writeStdin('2'); }; + omxplayer.decSpeed = () => { writeStdin('1'); }; omxplayer.prevChapter = () => { writeStdin('i'); }; omxplayer.nextChapter = () => { writeStdin('o'); }; omxplayer.prevAudio = () => { writeStdin('j'); };