Page 1 of 1

Simple play/pause script on MacOS

Posted: 14 Nov 2020 20:48
by Bspammer
For a personal project I'm trying to hook into VLC for play/pause events. I found the following very simple script on StackOverflow:

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'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:

Image

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
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.

Re: Simple play/pause script on MacOS

Posted: 15 Nov 2020 13:33
by mederi

Re: Simple play/pause script on MacOS

Posted: 15 Nov 2020 14:09
by Bspammer
Thanks for pointing me to that, I'm glad at least it's a known issue and not something I'm doing wrong. It doesn't sound like it's likely to be fixed anytime soon though :(