Simple play/pause script on MacOS

Discuss your Lua playlist, album art and interface scripts.
Bspammer
New Cone
New Cone
Posts: 2
Joined: 14 Nov 2020 20:26

Simple play/pause script on MacOS

Postby Bspammer » 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:

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.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Simple play/pause script on MacOS

Postby mederi » 15 Nov 2020 13:33


Bspammer
New Cone
New Cone
Posts: 2
Joined: 14 Nov 2020 20:26

Re: Simple play/pause script on MacOS

Postby Bspammer » 15 Nov 2020 14:09

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


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 3 guests