No Audio-Delay for Plex?

Player Version#: 1.93.0.144-9b2f4a13

I’m desperately trying to find a way to add [negative] audio-delay to my Windows player. Using “audio-delay=XXX” in mpv.conf (either in Program Files\Plex or AppData\Local\Plex) does nothing. The [old?] keyboard shortcuts for audio delay don’t work.

Is there ANY way to actually make audio-delay work? I’m aware it can be done in HTPC but I need the mouse-navigation-friendliness of the non-HTPC version.

So the answer is: put a lua script in in the AppData\Local\Plex\scripts folder like this one:

-- Define the function to set the audio delay
function setAudioDelay()
    local delay = -0.1 -- Adjust this value as needed
    mp.set_property("audio-delay", delay)
    mp.msg.info("Audio delay set to " .. delay .. " seconds")
end

-- Call the function when a file is loaded
mp.register_event("file-loaded", setAudioDelay)
2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.