Simple play/pause script on MacOS
Posted: 14 Nov 2020 20:48
For a personal project I'm trying to hook into VLC for play/pause events. I found the following very simple script on StackOverflow:
I can't get this script to work on MacOS. I've placed it at /Users/<username>/Library/Application Support/org.videolan.vlc/lua/extensions, and I can see it in the extensions UI:
I can see it loads correctly in the logs:
But no logs are printed at all when I play/pause the video. Further more, I dug out a windows PC and tried the same thing there, and it worked perfectly well.
Is this a known feature descrepancy between Windows and MacOS? I've searched around and can't find anyone else who's had similar problems.
I'm on VLC version 3.0.11.1 on the Mac.
Code: Select all
function descriptor()
return {
title = "VLC Dummy Extension",
capabilities = { "playing-listener" }
}
end
function activate()
end
function deactivate()
end
function meta_changed()
end
function playing_changed()
vlc.msg.dbg("[Dummy] Status: " .. vlc.playlist.status())
end
I can see it loads correctly in the logs:
Code: Select all
lua debug: Deactivating 'VLC Dummy Extension'
lua debug: Reactivating extension VLC Dummy Extension
Is this a known feature descrepancy between Windows and MacOS? I've searched around and can't find anyone else who's had similar problems.
I'm on VLC version 3.0.11.1 on the Mac.