Created
January 25, 2020 01:29
-
-
Save gabrielfern/e37c6d22d7760a4373920a3c3701e256 to your computer and use it in GitHub Desktop.
Useful when using mpv with keep-open option, no loop and mpv-mpris
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function on_eof(name, value) | |
if value == true then | |
mp.set_property("playback-time", 0) | |
end | |
end | |
mp.observe_property("eof-reached", "bool", on_eof) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment