The following works in “Plex for Windows”, but not in Plex Web.
Go to the folder
C:\Users\<username>\AppData\Local\Plex\scripts
(the folder C:\Users
is hidden, so you might want to enable the display of hidden files in Windows explorer)
create a new text file in there
open it with notepad.exe
copy the following into your clipboard and paste it into notepad
function speedNormal()
mp.command("set speed 1")
mp.osd_message("normal speed", 0.5)
end
function speedHigher()
mp.command("cycle-values speed 1.25 1.5 2.0 3.0 4.0")
pb_speed = mp.get_property("speed")
mp.osd_message("speed: "..pb_speed, 0.5)
end
function speedSlower()
mp.command("cycle-values speed 0.75 0.5 0.25")
pb_speed = mp.get_property("speed")
mp.osd_message("speed: "..pb_speed, 0.5)
end
mp.add_forced_key_binding("Alt+1", "speedNormal", speedNormal)
mp.add_forced_key_binding("Alt+2", "speedHigher", speedHigher)
mp.add_forced_key_binding("Alt+3", "speedSlower", speedSlower)
Make sure to copy all the text (you can use the little “copy page” icon that appears in the upper right corner of the code block when you move the mouse pointer over it)
save the text and name it speed_keybindings.lua
(i.e. change the file name extension from .txt to .lua)
close Plex for Windows and restart it.
Start playback of a video and try the key combinations Alt+1, Alt+2, and Alt+3.
(you might have to wait for the playback controls overlay to vanish, before you can issue the next key combination)
Inspiration and code shamelessly taken from this thread: Use `mpv` features which are not exposed in Plex for Windows/Mac/Linux and Plex HTPC
You can find a way to implement playback speed hotkeys in Plex HTPC as well in there.